diff --git a/python-apipkg.spec b/python-apipkg.spec index b54ecf2..b8a5dca 100644 --- a/python-apipkg.spec +++ b/python-apipkg.spec @@ -2,7 +2,7 @@ Name: python-%{srcname} Version: 2.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A Python namespace control and lazy-import mechanism License: MIT @@ -29,7 +29,8 @@ Summary: %{summary} %autosetup -n %{srcname}-%{version} %generate_buildrequires -%pyproject_buildrequires +export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} +%pyproject_buildrequires -t %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} @@ -40,11 +41,17 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_install %pyproject_save_files apipkg +%check +%tox + %files -n python3-%{srcname} -f %{pyproject_files} %doc CHANGELOG README.rst %license LICENSE %changelog +* Tue Jan 18 2022 Miro HronĨok - 2.1.0-2 +- Run tests in %%check + * Fri Dec 24 2021 Thomas Moschny - 2.1.0-1 - Update to 2.1.0. - Use new Python packaging guidelines.