forked from pool/python-nose2
Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| b95fce5a17 |
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 21 10:02:03 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives on SLE-16-based and newer systems only
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 16 13:04:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 4 20:42:07 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-nose2
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,6 +16,11 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-nose2
|
||||
Version: 0.15.1
|
||||
@@ -24,7 +29,7 @@ Summary: The successor to the Python testing framework nose, based on uni
|
||||
License: BSD-2-Clause AND Python-2.0
|
||||
URL: https://github.com/nose-devs/nose2
|
||||
Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
|
||||
# Required for testsuite. Bring on python-wheel-wheel
|
||||
# Required for testsuite. Bring on python-wheel wheel.
|
||||
Source1: https://files.pythonhosted.org/packages/c7/c3/55076fc728723ef927521abaa1955213d094933dc36d4a2008d5101e1af5/wheel-0.42.0-py3-none-any.whl
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module pip}
|
||||
@@ -33,10 +38,15 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Suggests: python-coverage
|
||||
BuildArch: noarch
|
||||
%if %{with libalternatives}
|
||||
BuildRequires: alts
|
||||
Requires: alts
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -63,7 +73,7 @@ export LC_CTYPE=C.UTF8
|
||||
%{python_expand # nose must test itself in an editable install
|
||||
$python -m venv editable-%{$python_bin_suffix} --system-site-packages
|
||||
. editable-%{$python_bin_suffix}/bin/activate
|
||||
pip install --no-index --find-links /usr/lib/python%{$python_bin_suffix}/wheels --find-links ../wheels -e .
|
||||
pip install --no-index --find-links %{_prefix}/lib/python%{$python_bin_suffix}/wheels --find-links ../wheels -e .
|
||||
nose2 -v --pretty-assert
|
||||
deactivate
|
||||
}
|
||||
@@ -74,6 +84,9 @@ deactivate
|
||||
%postun
|
||||
%python_uninstall_alternative nose2
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative nose2
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc AUTHORS README.rst
|
||||
|
||||
Reference in New Issue
Block a user