diff --git a/python-infinity.changes b/python-infinity.changes index 96a184f..1f17501 100644 --- a/python-infinity.changes +++ b/python-infinity.changes @@ -5,6 +5,7 @@ Mon Nov 7 09:49:08 UTC 2022 - pgajdos@suse.com - added patches fix https://github.com/kvesteri/infinity/issues/7 + python-infinity-no-six.patch +- Fix running the test suite ------------------------------------------------------------------- Sat Jun 27 02:40:34 UTC 2020 - Todd R diff --git a/python-infinity.spec b/python-infinity.spec index 137314c..1afe2bd 100644 --- a/python-infinity.spec +++ b/python-infinity.spec @@ -27,14 +27,14 @@ URL: https://github.com/kvesteri/infinity Source: https://files.pythonhosted.org/packages/source/i/infinity/infinity-%{version}.tar.gz # https://github.com/kvesteri/infinity/issues/7 Patch0: python-infinity-no-six.patch -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with test} BuildRequires: %{python_module flake8 >= 2.4.0} BuildRequires: %{python_module isort >= 4.2.2} BuildRequires: %{python_module pytest >= 2.2.3} -BuildRequires: %{python_module six >= 1.4.1} %endif BuildArch: noarch @@ -44,26 +44,25 @@ BuildArch: noarch All-in-one infinity value for Python. Can be compared to any object. %prep -%setup -q -n infinity-%{version} -%patch0 -p1 +%autosetup -p1 -n infinity-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %if %{with test} %check -%python_exec test_infinity.py +%pytest %endif %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE -%{python_sitelib}/__pycache__ -%{python_sitelib}/*.py -%{python_sitelib}/infinity*-info +%{python_sitelib}/__pycache__/infinity*.pyc +%{python_sitelib}/infinity.py +%{python_sitelib}/infinity-%{version}*-info %changelog