From 37f543e27859d6e23d74db1258964cd047785738 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Sep 14 2018 00:29:49 +0000 Subject: Disable writing bytecode when running tests to avoid packaging pycache files --- diff --git a/python-pytest-timeout.spec b/python-pytest-timeout.spec index 26698d2..5ed30c8 100644 --- a/python-pytest-timeout.spec +++ b/python-pytest-timeout.spec @@ -6,7 +6,7 @@ know why the test suite hangs. Name: python-%{pypi_name} Version: 1.3.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: py.test plugin to abort hanging tests License: MIT @@ -52,15 +52,14 @@ Requires: python3-pytest %py3_install %check -PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} +PYTHONPATH=%{buildroot}%{python2_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{python2_version} +PYTHONPATH=%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 py.test-%{python3_version} %files -n python2-%{pypi_name} %doc README %license LICENSE %{python2_sitelib}/pytest_timeout* -%{python2_sitelib}/__pycache__/pytest_timeout* %files -n python3-%{pypi_name} %doc README @@ -69,6 +68,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} %{python3_sitelib}/__pycache__/pytest_timeout* %changelog +* Fri Sep 14 2018 Scott Talbert - 1.3.1-2 +- Disable writing bytecode when running tests to avoid packaging pycache files + * Tue Jul 24 2018 Scott Talbert - 1.3.1-1 - New upstream release 1.3.1