2022-05-28 09:26:43 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-hatchling
|
|
|
|
#
|
2024-01-26 10:39:00 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2022-05-28 09:26:43 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-26 22:41:05 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2022-05-28 09:26:43 +02:00
|
|
|
Name: python-hatchling
|
2024-06-24 14:19:27 +02:00
|
|
|
Version: 1.25.0
|
2022-05-28 09:26:43 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Build backend used by Hatch
|
|
|
|
License: MIT
|
|
|
|
URL: https://hatch.pypa.io/latest/
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/h/hatchling/hatchling-%{version}.tar.gz
|
2023-06-21 19:26:27 +02:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2022-05-28 09:26:43 +02:00
|
|
|
BuildRequires: %{python_module packaging >= 21.3}
|
2022-09-15 09:49:44 +02:00
|
|
|
BuildRequires: %{python_module pathspec >= 0.10.1}
|
2022-05-28 09:26:43 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pluggy >= 1.0.0}
|
|
|
|
BuildRequires: %{python_module tomli >= 1.2.2 if %python-base < 3.11}
|
2023-04-04 14:34:22 +02:00
|
|
|
BuildRequires: %{python_module trove-classifiers}
|
2022-05-28 09:26:43 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-packaging >= 21.3
|
2022-09-15 09:49:44 +02:00
|
|
|
Requires: python-pathspec >= 0.10.1
|
2022-05-28 09:26:43 +02:00
|
|
|
Requires: python-pluggy >= 1.0.0
|
2023-04-04 14:34:22 +02:00
|
|
|
Requires: python-trove-classifiers
|
2024-03-20 04:43:40 +01:00
|
|
|
Requires: (python-tomli >= 1.2.2 if python-base < 3.11)
|
2022-05-28 09:26:43 +02:00
|
|
|
Requires(post): update-alternatives
|
2024-01-26 10:39:00 +01:00
|
|
|
Requires(postun): update-alternatives
|
2022-05-28 09:26:43 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is the extensible, standards compliant build backend used by Hatch.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n hatchling-%{version} -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/hatchling
|
|
|
|
|
2022-06-13 17:53:20 +02:00
|
|
|
%check
|
2022-06-13 17:51:19 +02:00
|
|
|
# The tests provided in the tarball relies on internet access to run
|
|
|
|
# (git clone, pip install ...), so they cannot work on obs
|
|
|
|
# see tests/downstream/integrate.py for details
|
|
|
|
|
2022-05-28 09:26:43 +02:00
|
|
|
%post
|
|
|
|
%python_install_alternative hatchling
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative hatchling
|
|
|
|
|
|
|
|
%files %{python_files}
|
2022-05-28 09:31:19 +02:00
|
|
|
%doc README.md
|
2022-05-28 09:26:43 +02:00
|
|
|
%license LICENSE.txt
|
|
|
|
%{python_sitelib}/hatchling
|
|
|
|
%{python_sitelib}/hatchling-%{version}.dist-info
|
|
|
|
%python_alternative %{_bindir}/hatchling
|
|
|
|
|
|
|
|
%changelog
|