2018-05-29 14:47:30 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-biopython
|
|
|
|
#
|
- update to 1.80:
* This release of Biopython supports Python 3.7, 3.8, 3.9, 3.10, 3.11. It
has also been tested on PyPy3.7 v7.3.5.
* Functions ``read``, ``parse``, and ``write`` were added to ``Bio.Align``
to read and write ``Alignment`` objects.
* Because dict retains the item order by default since Python3.6, all
instances of ``collections.OrderedDict`` have been replaced by either standard
``dict`` or where appropriate by ``collections.defaultsdict``.
* The ``Bio.motifs.jaspar.db`` now returns ``tf_family`` and ``tf_class``
as a string array since the JASPAR 2018 release.
* The Local Composition Complexity functions from ``Bio.SeqUtils`` now
uses base 4 log instead of 2 as stated in the original reference Konopka
(2005), * Sequence Complexity and Composition. https://doi.org/10.1038/npg.els.0005260
* Append mode is now supported in ``Bio.bgzf`` (and a bug parsing blocked
GZIP files with an internal empty block fixed).
* The experimental warning was dropped from ``Bio.phenotype`` (which was
new in Biopython 1.67).
* Sequences now have a ``defined`` attribute that returns a boolean
indicating if the underlying data is defined or not.
* The ``Bio.PDB`` module now includes a structural alignment module, using
the combinatorial extension algorithm of Shindyalov and Bourne, commonly
known as CEAlign. The module allows for two structures to be aligned based solely
on their 3D conformation, ie. in a sequence-independent manner. The method
is particularly powerful when the structures shared a very low degree of
sequence similarity. The new module is available in ``Bio.PDB.CEAligner`` with an
interface similar to other 3D superimposition modules.
* A new module ``Bio.PDB.qcprot`` implements the QCP superposition
algorithm in pure Python, deprecating the existing C implementation. This leads to a
slight performance improvement and to much better maintainability. The
refactored ``qcprot.QCPSuperimposer`` class has small changes to its API, to better
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-biopython?expand=0&rev=17
2023-01-04 14:21:39 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-05-29 14:47:30 +00: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 09:46:29 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-29 14:47:30 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-11-20 20:18:30 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-05-29 14:47:30 +00: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 10:10:38 +00:00
|
|
|
%define skip_python2 1
|
2021-02-21 06:56:38 +00:00
|
|
|
%define skip_python36 1
|
2018-05-29 14:47:30 +00:00
|
|
|
Name: python-biopython
|
2023-12-27 09:27:26 +00:00
|
|
|
Version: 1.82
|
2018-05-29 14:47:30 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Tools for Computational Molecular Biology
|
2022-03-27 14:09:13 +00:00
|
|
|
License: BSD-3-Clause AND MIT
|
|
|
|
URL: https://biopython.org/
|
2019-01-21 09:46:29 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/b/biopython/biopython-%{version}.tar.gz
|
|
|
|
Source100: python-biopython-rpmlintrc
|
2018-05-29 14:47:30 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module numpy-devel}
|
2019-01-21 09:46:29 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-05-29 14:47:30 +00:00
|
|
|
BuildRequires: %{python_module xml}
|
2019-01-21 09:46:29 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-29 14:47:30 +00: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 20:18:30 +00:00
|
|
|
%setup -q -n biopython-%{version}
|
2018-05-29 14:47:30 +00:00
|
|
|
find -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/.*$/ d' {} 2>/dev/null ';'
|
2020-11-03 15:59:55 +00:00
|
|
|
# Example scripts cannot be in a subdirectory
|
2022-03-27 14:09:13 +00:00
|
|
|
mv -v Doc/examples examples
|
2018-05-29 14:47:30 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
%python_install
|
2019-01-21 09:46:29 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2018-05-29 14:47:30 +00:00
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
2019-11-20 20:18:30 +00:00
|
|
|
%pytest
|
2018-05-29 14:47:30 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc CONTRIB.rst DEPRECATED.rst NEWS.rst README.rst
|
2020-11-03 15:59:55 +00:00
|
|
|
%doc Doc/ examples/
|
2018-05-29 14:47:30 +00:00
|
|
|
%license LICENSE.rst
|
|
|
|
%{python_sitearch}/Bio/
|
|
|
|
%{python_sitearch}/BioSQL/
|
|
|
|
%{python_sitearch}/biopython-%{version}-py*.egg-info
|
|
|
|
|
|
|
|
%changelog
|