From 0193c749a62d6166537af33ab08e673790651bbc Mon Sep 17 00:00:00 2001 From: sagitter Date: Jun 22 2018 10:31:16 +0000 Subject: Enable additional tests (upstream bug #855) --- diff --git a/python-biopython.spec b/python-biopython.spec index fbeaec6..c4defbd 100644 --- a/python-biopython.spec +++ b/python-biopython.spec @@ -2,14 +2,6 @@ %global with_python3 1 %endif -%if 0%{?rhel} && 0%{?rhel} <= 6 -%{!?__python2: %global __python2 /usr/bin/python2} -%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} -%global with_python3 0 -%global python2_version 2.6 -%endif - %if 0%{?rhel} && 0%{?rhel} == 7 %global with_python3 0 %endif @@ -26,7 +18,7 @@ Name: python-biopython Version: 1.71 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Python tools for computational molecular biology Source0: https://github.com/biopython/biopython/archive/biopython-171.tar.gz#/biopython-biopython-171.tar.gz @@ -193,7 +185,7 @@ popd %if 0%{?with_python3} pushd python3/Tests find . -name 'run_tests.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|' -for test in `ls test_*.py | grep -v chapter | grep -v NCBIXML | grep -v Nexus | grep -v Phylo | grep -v SeqIO | grep -v Tutorial`; do +for test in `ls test_*.py | grep -v Nexus | grep -v Phylo | grep -v Tutorial`; do echo $LANG export PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch} %{__python3} run_tests.py --offline -v ${test} @@ -228,6 +220,9 @@ popd %license python2/LICENSE %changelog +* Fri Jun 22 2018 Antonio Trande - 1.71-5 +- Enable additional tests (upstream bug #855) + * Thu Jun 21 2018 Antonio Trande - 1.71-4 - Patched for AlignIO test failure (python-3.7 issue)