forked from pool/python-hatch
Accepting request 1291688 from devel:languages:python
- Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1291688 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hatch?expand=0&rev=18
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 10 12:33:57 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 26 09:36:32 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
Thu Jun 26 09:36:32 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
@@ -24,6 +24,7 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
%bcond_without libalternatives
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-hatch%{psuffix}
|
Name: python-hatch%{psuffix}
|
||||||
Version: 1.14.1
|
Version: 1.14.1
|
||||||
@@ -41,10 +42,10 @@ BuildRequires: %{python_module base >= 3.8}
|
|||||||
BuildRequires: %{python_module hatch-vcs >= 0.3}
|
BuildRequires: %{python_module hatch-vcs >= 0.3}
|
||||||
BuildRequires: %{python_module hatchling >= 1.26.3}
|
BuildRequires: %{python_module hatchling >= 1.26.3}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires: alts
|
||||||
Requires(postun): update-alternatives
|
|
||||||
Requires: git-core
|
Requires: git-core
|
||||||
Requires: python-click >= 8.0.6
|
Requires: python-click >= 8.0.6
|
||||||
Requires: python-hatchling >= 1.21.0
|
Requires: python-hatchling >= 1.21.0
|
||||||
@@ -135,11 +136,8 @@ donttest+=" or test_pyenv or test_no_open or test_open"
|
|||||||
%pytest -v -k "not ($donttest)" --ignore tests/cli/build/test_build.py
|
%pytest -v -k "not ($donttest)" --ignore tests/cli/build/test_build.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative hatch
|
%python_libalternatives_reset_alternative hatch
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative hatch
|
|
||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
Reference in New Issue
Block a user