| |
@@ -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 @@
|
| |
%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 @@
|
| |
%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 <mhroncok@redhat.com> - 2.1.0-2
|
| |
+ - Run tests in %%check
|
| |
+
|
| |
* Fri Dec 24 2021 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.0-1
|
| |
- Update to 2.1.0.
|
| |
- Use new Python packaging guidelines.
|
| |