In %check, test if the module at least imports
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 0.0.6
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Tox plugin to run tests in current Python environment
|
||||
|
||||
License: MIT
|
||||
@@ -32,7 +32,7 @@ The tox-current-env plugin allows to run tests in current Python environment.
|
||||
|
||||
%generate_buildrequires
|
||||
# Don't use %%pyproject_buildrequires -t/-e to avoid a build dependency loop
|
||||
%pyproject_buildrequires
|
||||
%pyproject_buildrequires -r
|
||||
|
||||
|
||||
%build
|
||||
@@ -43,9 +43,10 @@ The tox-current-env plugin allows to run tests in current Python environment.
|
||||
%pyproject_install
|
||||
|
||||
|
||||
#check
|
||||
%check
|
||||
# the tests currently only work within actual tox and with various Python
|
||||
# versions installed, so we skip them.
|
||||
# versions installed, so we skip them and do an import check only instead:
|
||||
%py3_check_import %{pypi_under}
|
||||
|
||||
|
||||
%files -n python%{python3_pkgversion}-%{pypi_name}
|
||||
@@ -56,6 +57,9 @@ The tox-current-env plugin allows to run tests in current Python environment.
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Aug 05 2021 Miro Hrončok <mhroncok@redhat.com> - 0.0.6-4
|
||||
- In %%check, test if the module at least imports
|
||||
|
||||
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-3
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
Reference in New Issue
Block a user