2018-05-29 16:47:30 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-biopython
|
|
|
|
#
|
2021-02-21 07:56:38 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-05-29 16:47:30 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-21 10:46:29 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-29 16:47:30 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-11-20 21:18:30 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-05-29 16:47:30 +02:00
|
|
|
# Tests require a network connection
|
|
|
|
%bcond_with test
|
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 12:10:38 +02:00
|
|
|
%define skip_python2 1
|
2021-02-21 07:56:38 +01:00
|
|
|
%define skip_python36 1
|
2018-05-29 16:47:30 +02:00
|
|
|
Name: python-biopython
|
2021-02-21 07:56:38 +01:00
|
|
|
Version: 1.78
|
2018-05-29 16:47:30 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Tools for Computational Molecular Biology
|
Accepting request 717710 from home:TheBlackCat:branches:devel:languages:python:numeric
- Update to version 1.74
* Our core sequence objects (``Seq``, ``UnknownSeq``, and ``MutableSeq``) now
have a string-like ``.join()`` method.
* The NCBI now allows longer accessions in the GenBank file LOCUS line, meaning
the fields may not always follow the historical column based positions. We
no longer give a warning when parsing these. We now allow writing such files
(although with a warning as support for reading them is not yet widespread).
* Support for the ``mysqlclient`` package, a fork of MySQLdb, has been added.
* We now capture the IDcode field from PDB Header records.
* ``Bio.pairwise2``'s pretty-print output from ``format_alignment`` has been
optimized for local alignments: If they do not consist of the whole sequences,
only the aligned section of the sequences are shown, together with the start
positions of the sequences (in 1-based notation). Alignments of lists will now
also be prettily printed.
* ``Bio.SearchIO`` now supports parsing the text output of the HHsuite protein
sequence search tool. The format name is ``hhsuite2-text`` and
``hhsuite3-text``, for versions 2 and 3 of HHsuite, respectively.
* ``Bio.SearchIO`` HSP objects has a new attribute called ``output_index``. This
attribute is meant for capturing the order by which the HSP were output in the
parsed file and is set with a default value of -1 for all HSP objects. It is
also used for sorting the output of ``QueryResult.hsps``.
* ``Bio.SeqIO.AbiIO`` has been updated to preserve bytes value when parsing. The
goal of this change is make the parser more robust by being able to extract
string-values that are not utf-8-encoded. This affects all tag values, except
for ID and description values, where they need to be extracted as strings
to conform to the ``SeqRecord`` interface. In this case, the parser will
attempt to decode using ``utf-8`` and fall back to the system encoding if that
fails. This change affects Python 3 only.
* ``Bio.motifs.mast`` has been updated to parse XML output files from MAST over
the plain-text output file. The goal of this change is to parse a more
structured data source with minimal loss of functionality upon future MAST
releases. Class structure remains the same plus an additional attribute
``Record.strand_handling`` required for diagram parsing.
* ``Bio.Entrez`` now automatically retries HTTP requests on failure. The
maximum number of tries and the sleep between them can be configured by
changing ``Bio.Entrez.max_tries`` and ``Bio.Entrez.sleep_between_tries``.
(The defaults are 3 tries and 15 seconds, respectively.)
* All tests using the older print-and-compare approach have been replaced by
unittests following Python's standard testing framework.
* On the documentation side, all the public modules, classes, methods and
functions now have docstrings (built in help strings). Furthermore, the PDF
version of the *Biopython Tutorial and Cookbook* now uses syntax coloring
for code snippets.
* Additionally, a number of small bugs and typos have been fixed with further
additions to the test suite, and there has been further work to follow the
Python PEP8, PEP257 and best practice standard coding style.
OBS-URL: https://build.opensuse.org/request/show/717710
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-biopython?expand=0&rev=5
2019-07-23 03:28:49 +02:00
|
|
|
License: MIT AND BSD-3-Clause
|
2019-11-20 21:18:30 +01:00
|
|
|
URL: http://www.biopython.org
|
2019-01-21 10:46:29 +01:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/b/biopython/biopython-%{version}.tar.gz
|
|
|
|
Source100: python-biopython-rpmlintrc
|
2018-05-29 16:47:30 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module numpy-devel}
|
2019-01-21 10:46:29 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-05-29 16:47:30 +02:00
|
|
|
BuildRequires: %{python_module xml}
|
2019-01-21 10:46:29 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-29 16:47:30 +02:00
|
|
|
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
|
2019-11-20 21:18:30 +01:00
|
|
|
%setup -q -n biopython-%{version}
|
2018-05-29 16:47:30 +02:00
|
|
|
find -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' {} 2>/dev/null ';'
|
2020-11-03 16:59:55 +01:00
|
|
|
# Example scripts cannot be in a subdirectory
|
|
|
|
mv -v Doc/examples examples
|
2018-05-29 16:47:30 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
%python_install
|
2019-01-21 10:46:29 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2018-05-29 16:47:30 +02:00
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
2019-11-20 21:18:30 +01:00
|
|
|
%pytest
|
2018-05-29 16:47:30 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc CONTRIB.rst DEPRECATED.rst NEWS.rst README.rst
|
2020-11-03 16:59:55 +01:00
|
|
|
%doc Doc/ examples/
|
2018-05-29 16:47:30 +02:00
|
|
|
%license LICENSE.rst
|
|
|
|
%{python_sitearch}/Bio/
|
|
|
|
%{python_sitearch}/BioSQL/
|
|
|
|
%{python_sitearch}/biopython-%{version}-py*.egg-info
|
|
|
|
|
|
|
|
%changelog
|