python-biopython/python-biopython.spec
Tomáš Chvátal 52977e93ef Accepting request 819377 from home:mcalabkova:branches:devel:languages:python:numeric
- Update to version 1.77
  * **We have dropped support for Python 2 now.**
  * ``pairwise2`` now allows the input of parameters with keywords and returns the
    alignments as a list of ``namedtuples``.
  * The codon tables have been updated to NCBI genetic code table version 4.5,
    which adds Cephalodiscidae mitochondrial as table 33.
  * Updated ``Bio.Restriction`` to the January 2020 release of REBASE.
  * A major contribution by Rob Miller to ``Bio.PDB`` provides new methods to
    handle protein structure transformations using dihedral angles (internal
    coordinates). The new framework supports lossless interconversion between
    internal and cartesian coordinates, which, among other uses, simplifies the
    analysis and manipulation of coordinates of proteins structures.
  * ``PDBParser`` and ``PDBIO`` now support PQR format file parsing and input/
    output.
  * In addition to the mainstream ``x86_64`` aka ``AMD64`` CPU architecture, we
    now also test every contribution on the ``ARM64``, ``ppc64le``, and ``s390x``
    CPUs under Linux thanks to Travis CI. Further post-release testing done by
    Debian and other packagers and distributors of Biopython also covers these
    CPUs.
  * ``Bio.motifs.PositionSpecificScoringMatrix.search()`` method has been
    re-written: it now applies ``.calculate()`` to chunks of the sequence
    to maintain a low memory footprint for long sequences.
  * Additionally, a number of small bugs and typos have been fixed with further
    additions to the test suite. There has been further work to follow the Python
    PEP8, PEP257 and best practice standard coding style, and more of the code
    style has been reformatted with the ``black`` tool.

OBS-URL: https://build.opensuse.org/request/show/819377
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-biopython?expand=0&rev=9
2020-07-08 10:10:38 +00:00

87 lines
2.7 KiB
RPMSpec

#
# spec file for package python-biopython
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Tests require a network connection
%bcond_with test
%define skip_python2 1
Name: python-biopython
Version: 1.77
Release: 0
Summary: Python Tools for Computational Molecular Biology
License: MIT AND BSD-3-Clause
URL: http://www.biopython.org
Source0: https://files.pythonhosted.org/packages/source/b/biopython/biopython-%{version}.tar.gz
Source100: python-biopython-rpmlintrc
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: python-rpm-macros
Requires: python-numpy
Requires: python-xml
Recommends: python-matplotlib
Recommends: python-mysql
Recommends: python-networkx
Recommends: python-psycopg2
Recommends: python-pydot
Recommends: python-pygraphviz
Recommends: python-rdflib
Recommends: python-reportlab
%python_subpackages
%description
The Biopython Project is an international association of developers of freely
available Python tools for computational molecular biology.
%prep
%setup -q -n biopython-%{version}
# remove all execute bits from documentation and fix line endings
find -type f -exec chmod -x {} 2>/dev/null ';'
find -type f -exec sed -i 's/\r//' {} 2>/dev/null ';'
# remove she-bang lines in .py files to keep rpmlint happy
find -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' {} 2>/dev/null ';'
sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' Scripts/Structure/hsexpo
%build
export LANG=en_US.UTF-8
%python_build
%install
export LANG=en_US.UTF-8
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%if %{with test}
%check
export LANG=en_US.UTF-8
%pytest
%endif
%files %{python_files}
%doc CONTRIB.rst DEPRECATED.rst NEWS.rst README.rst
%doc Doc/
%license LICENSE.rst
%{python_sitearch}/Bio/
%{python_sitearch}/BioSQL/
%{python_sitearch}/biopython-%{version}-py*.egg-info
%changelog