From a58e8d7242aed9876897f1617632006b5df8580f Mon Sep 17 00:00:00 2001 From: sagitter Date: May 25 2020 17:19:45 +0000 Subject: Release 1.77 --- diff --git a/.gitignore b/.gitignore index ace7439..213a5bb 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ biopython-1.54.tar.gz /biopython-1.74.tar.gz /biopython-1.75.tar.gz /biopython-1.76.tar.gz +/biopython-1.77.tar.gz diff --git a/python-biopython.spec b/python-biopython.spec index 6f0c7ae..b59e34f 100644 --- a/python-biopython.spec +++ b/python-biopython.spec @@ -1,7 +1,8 @@ -%if 0%{?rhel} && 0%{?rhel} > 7 +%if 0%{?fedora} || 0%{?rhel} > 7 %global with_python3 1 %endif +# Careful, the releases 1.77+ do not longer support Python 2. %if 0%{?rhel} && 0%{?rhel} == 7 %global with_python2 1 %endif @@ -12,23 +13,20 @@ %global py2_prefix python2 %endif -%if 0%{?fedora} -%global with_python3 1 -%endif - %if 0%{?python3_version_nodots} == 38 %global with_check 1 %else %global with_check 1 %endif -%global module biopython +%global pypi_name biopython +%global module %{pypi_name} -Name: python-biopython -Version: 1.76 -Release: 3%{?dist} +Name: python-%{pypi_name} +Version: 1.77 +Release: 1%{?dist} Summary: Python tools for computational molecular biology -Source0: https://files.pythonhosted.org/packages/source/b/%{module}/%{module}-%{version}.tar.gz +Source0: %{pypi_source} Patch0: %{name}-1.76_python39.patch @@ -217,7 +215,7 @@ popd pushd python3 %{__python3} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT --install-data=%{_datadir}/python-biopython -find Scripts -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|' +find Scripts -name '*.py' | xargs pathfix.py -pn -i "%{__python3}" popd %endif @@ -225,7 +223,7 @@ popd pushd python%{python3_other_pkgversion} %{__python3_other} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT --install-data=%{_datadir}/python-biopython -find Scripts -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3_other}|' +find Scripts -name '*.py' | xargs pathfix.py -pn -i "%{__python3_other}" popd %endif @@ -233,7 +231,7 @@ popd pushd python2 %{__python2} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT --install-data=%{_datadir}/python-biopython -find Scripts -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python2}|' +find Scripts -name '*.py' | xargs pathfix.py -pn -i "%{__python2}" popd %endif @@ -244,7 +242,7 @@ popd %if 0%{?with_python2} pushd python2 export PYTHONPATH=$RPM_BUILD_ROOT%{python2_sitearch} -find . -name 'run_tests.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python2}|' +find . -name 'run_tests.py' | xargs pathfix.py -pn -i "%{__python2}" for test in `ls test_*.py | grep -v Tutorial`; do %{__python2} run_tests.py --offline -v ${test} done @@ -254,7 +252,7 @@ popd # See https://github.com/biopython/biopython/issues/855; https://github.com/biopython/biopython/issues/1889 %if 0%{?with_python3} pushd python3/Tests -find . -name 'run_tests.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|' +find . -name 'run_tests.py' | xargs pathfix.py -pn -i "%{__python3}" # 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 @@ -272,7 +270,7 @@ popd # See https://github.com/biopython/biopython/issues/855 %if 0%{?with_python3_other} pushd python%{python3_other_pkgversion}/Tests -find . -name 'run_tests.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3_other}|' +find . -name 'run_tests.py' | xargs pathfix.py -pn -i "%{__python3_other}" 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} @@ -307,7 +305,10 @@ popd %if 0%{?with_python3_other} %files -n python%{python3_other_pkgversion}-%{module} %doc python%{python3_other_pkgversion}/Scripts -%doc python%{python3_other_pkgversion}/CONTRIB.rst python%{python3_other_pkgversion}/DEPRECATED.rst python%{python3_other_pkgversion}/NEWS.rst python%{python3_other_pkgversion}/README.rst +%doc python%{python3_other_pkgversion}/CONTRIB.rst +%doc python%{python3_other_pkgversion}/DEPRECATED.rst +%doc python%{python3_other_pkgversion}/NEWS.rst +%doc python%{python3_other_pkgversion}/README.rst %license python%{python3_other_pkgversion}/LICENSE.rst %{python3_other_sitearch}/*egg-info %{python3_other_sitearch}/Bio/ @@ -319,6 +320,9 @@ popd %license %{module}-%{version}/LICENSE.rst %changelog +* Mon May 25 2020 Antonio Trande - 1.77-1 +- Release 1.77 + * Sat Feb 29 2020 Antonio Trande - 1.76-3 - Patched for Python-3.9 diff --git a/sources b/sources index a1fa924..4325b2c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (biopython-1.76.tar.gz) = cd98e5cff151f8f286e9bf9763cf4b61bceb80b2696c5ac98aae6ee180f2ab2493bd1e1852a0fd5f27c71550f8a609e5163b1c1900ae32314dd76e36b6f06de0 +SHA512 (biopython-1.77.tar.gz) = 6f4b03d46c591e1f49dd1e76bcc4ac5c9aaa2bf748c9dd37ffc5de5a613fbeed38f89b418c01601dd99c65b13b2e294bc8d81ffafc42a9ff1b309c84f840d0d5