diff --git a/python-biopython.spec b/python-biopython.spec index 42456fe..f3e5232 100644 --- a/python-biopython.spec +++ b/python-biopython.spec @@ -24,7 +24,7 @@ Name: python-%{pypi_name} Version: 1.78 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python tools for computational molecular biology Source0: %{pypi_source} @@ -237,6 +237,7 @@ popd pushd python2 export PYTHONPATH=$RPM_BUILD_ROOT%{python2_sitearch} find . -name 'run_tests.py' | xargs pathfix.py -pn -i "%{__python2}" +find . -name '__init__.py' | xargs rm -f for test in `ls test_*.py | grep -v Tutorial`; do %{__python2} run_tests.py --offline -v ${test} done @@ -247,6 +248,7 @@ popd %if 0%{?with_python3} pushd python3/Tests find . -name 'run_tests.py' | xargs pathfix.py -pn -i "%{__python3}" +find . -name '__init__.py' | xargs rm -f # See https://github.com/biopython/biopython/issues/2128; https://github.com/biopython/biopython/issues/2120 # and https://bugs.python.org/issue24214 %if 0%{?python3_version_nodots} == 38 @@ -265,6 +267,7 @@ popd %if 0%{?with_python3_other} pushd python%{python3_other_pkgversion}/Tests find . -name 'run_tests.py' | xargs pathfix.py -pn -i "%{__python3_other}" +find . -name '__init__.py' | xargs rm -f for test in `ls test_*.py | grep -v Nexus | grep -v Phylo | grep -v Tutorial | grep -v bgzf`; do echo $LANG export PYTHONPATH=$RPM_BUILD_ROOT%{python3_other_sitearch} @@ -314,6 +317,9 @@ popd %license %{module}-%{version}/LICENSE.rst %changelog +* Fri Nov 27 2020 Antonio Trande - 1.78-2 +- Remove __init__.py before testing + * Fri Sep 04 2020 Antonio Trande - 1.78-1 - Release 1.78