Disable writing bytecode when running tests to avoid packaging pycache files
This commit is contained in:
parent
f36fea25d0
commit
37f543e278
@ -6,7 +6,7 @@ know why the test suite hangs.
|
|||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 1.3.1
|
Version: 1.3.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: py.test plugin to abort hanging tests
|
Summary: py.test plugin to abort hanging tests
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -52,15 +52,14 @@ Requires: python3-pytest
|
|||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version}
|
PYTHONPATH=%{buildroot}%{python2_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{python2_version}
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version}
|
PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{python3_version}
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-%{pypi_name}
|
%files -n python2-%{pypi_name}
|
||||||
%doc README
|
%doc README
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python2_sitelib}/pytest_timeout*
|
%{python2_sitelib}/pytest_timeout*
|
||||||
%{python2_sitelib}/__pycache__/pytest_timeout*
|
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name}
|
||||||
%doc README
|
%doc README
|
||||||
@ -69,6 +68,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version}
|
|||||||
%{python3_sitelib}/__pycache__/pytest_timeout*
|
%{python3_sitelib}/__pycache__/pytest_timeout*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 14 2018 Scott Talbert <swt@techie.net> - 1.3.1-2
|
||||||
|
- Disable writing bytecode when running tests to avoid packaging pycache files
|
||||||
|
|
||||||
* Tue Jul 24 2018 Scott Talbert <swt@techie.net> - 1.3.1-1
|
* Tue Jul 24 2018 Scott Talbert <swt@techie.net> - 1.3.1-1
|
||||||
- New upstream release 1.3.1
|
- New upstream release 1.3.1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user