commit:     a164bf307ec935fd566a4342aa9b691dcb470964
Author:     Michael Schubert <mschu.dev <AT> gmail <DOT> com>
AuthorDate: Tue Jul 16 09:57:43 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Jul 18 11:30:33 2024 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=a164bf30

sci-biology/bx-python: version bump 0.12.0, enable tests

Signed-off-by: Michael Schubert <mschu.dev <AT> gmail.com>
Closes: https://github.com/gentoo/sci/pull/1287
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-biology/bx-python/bx-python-0.12.0.ebuild | 41 +++++++++++++++++++++++++++
 sci-biology/bx-python/bx-python-0.8.9.ebuild  | 35 -----------------------
 sci-biology/bx-python/bx-python-0.9.0.ebuild  | 35 -----------------------
 sci-biology/bx-python/bx-python-9999.ebuild   | 35 -----------------------
 sci-biology/bx-python/files/no-doctest.patch  |  9 ++++++
 sci-biology/bx-python/metadata.xml            |  4 ---
 6 files changed, 50 insertions(+), 109 deletions(-)

diff --git a/sci-biology/bx-python/bx-python-0.12.0.ebuild 
b/sci-biology/bx-python/bx-python-0.12.0.ebuild
new file mode 100644
index 000000000..1a00b0395
--- /dev/null
+++ b/sci-biology/bx-python/bx-python-0.12.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_EXT=1
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1
+
+DESCRIPTION="Library for rapid implementation of genome scale analyses"
+HOMEPAGE="https://github.com/bxlab/bx-python";
+SRC_URI="https://github.com/bxlab/bx-python/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
+DEPEND="dev-python/cython[${PYTHON_USEDEP}]"
+
+# doctests have external deps
+PATCHES=(
+       "${FILESDIR}/no-doctest.patch"
+)
+
+distutils_enable_tests pytest
+
+# https://github.com/bxlab/bx-python/issues/101
+EPYTEST_DESELECT=(
+       lib.linux-x86_64-cpython-312/bx/binned_array_tests.py::test_file_lzo
+       
lib.linux-x86_64-cpython-312/bx/binned_array_tests.py::test_binned_array_writer
+)
+
+python_test() {
+       cd "${BUILD_DIR}/build" || die
+       ln -s "${S}/pytest.ini" . || die
+       ln -s "${S}/test_data" . || die
+       epytest
+}

diff --git a/sci-biology/bx-python/bx-python-0.8.9.ebuild 
b/sci-biology/bx-python/bx-python-0.8.9.ebuild
deleted file mode 100644
index 6cffba1be..000000000
--- a/sci-biology/bx-python/bx-python-0.8.9.ebuild
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..10} )
-
-inherit distutils-r1
-
-DESCRIPTION="Library for rapid implementation of genome scale analyses"
-HOMEPAGE="https://github.com/bxlab/bx-python";
-SRC_URI="https://github.com/bxlab/bx-python/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-# Tests require dev-python/pytest-cython (currently not in ::gentoo or 
::science)
-# (and might need some more work beyond that)
-RESTRICT=test
-
-RDEPEND="
-       dev-python/numpy[${PYTHON_USEDEP}]
-       dev-python/six[${PYTHON_USEDEP}]
-"
-BDEPEND="
-       dev-python/cython[${PYTHON_USEDEP}]
-"
-
-# has file collision with sci-biology/RSeQC
-
-# ToDo: fix doc building:
-# Reason: TemplateNotFound('i')
-#distutils_enable_sphinx doc/source
-
-distutils_enable_tests pytest

diff --git a/sci-biology/bx-python/bx-python-0.9.0.ebuild 
b/sci-biology/bx-python/bx-python-0.9.0.ebuild
deleted file mode 100644
index 6cffba1be..000000000
--- a/sci-biology/bx-python/bx-python-0.9.0.ebuild
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..10} )
-
-inherit distutils-r1
-
-DESCRIPTION="Library for rapid implementation of genome scale analyses"
-HOMEPAGE="https://github.com/bxlab/bx-python";
-SRC_URI="https://github.com/bxlab/bx-python/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-# Tests require dev-python/pytest-cython (currently not in ::gentoo or 
::science)
-# (and might need some more work beyond that)
-RESTRICT=test
-
-RDEPEND="
-       dev-python/numpy[${PYTHON_USEDEP}]
-       dev-python/six[${PYTHON_USEDEP}]
-"
-BDEPEND="
-       dev-python/cython[${PYTHON_USEDEP}]
-"
-
-# has file collision with sci-biology/RSeQC
-
-# ToDo: fix doc building:
-# Reason: TemplateNotFound('i')
-#distutils_enable_sphinx doc/source
-
-distutils_enable_tests pytest

diff --git a/sci-biology/bx-python/bx-python-9999.ebuild 
b/sci-biology/bx-python/bx-python-9999.ebuild
deleted file mode 100644
index b29975b58..000000000
--- a/sci-biology/bx-python/bx-python-9999.ebuild
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..10} )
-
-inherit distutils-r1 git-r3
-
-DESCRIPTION="Library for rapid implementation of genome scale analyses"
-HOMEPAGE="https://github.com/bxlab/bx-python";
-EGIT_REPO_URI="https://github.com/bxlab/bx-python";
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS=""
-# Tests require dev-python/pytest-cython (currently not in ::gentoo or 
::science)
-# (and might need some more work beyond that)
-RESTRICT=test
-
-RDEPEND="
-       dev-python/numpy[${PYTHON_USEDEP}]
-       dev-python/six[${PYTHON_USEDEP}]
-"
-BDEPEND="
-       dev-python/cython[${PYTHON_USEDEP}]
-"
-
-# has file collision with sci-biology/RSeQC
-
-# ToDo: fix doc building:
-# Reason: TemplateNotFound('i')
-#distutils_enable_sphinx doc/source
-
-distutils_enable_tests pytest

diff --git a/sci-biology/bx-python/files/no-doctest.patch 
b/sci-biology/bx-python/files/no-doctest.patch
new file mode 100644
index 000000000..d0c2b2e62
--- /dev/null
+++ b/sci-biology/bx-python/files/no-doctest.patch
@@ -0,0 +1,9 @@
+diff --git a/pytest.ini b/pytest.ini
+index e77e08f..4184247 100644
+--- a/pytest.ini
++++ b/pytest.ini
+@@ -1,4 +1,3 @@
+ [pytest]
+-addopts = --doctest-cython --doctest-modules
+ python_files = *_tests.py
+ testpaths = lib script_tests/

diff --git a/sci-biology/bx-python/metadata.xml 
b/sci-biology/bx-python/metadata.xml
index f1fc4360e..2ead27d78 100644
--- a/sci-biology/bx-python/metadata.xml
+++ b/sci-biology/bx-python/metadata.xml
@@ -5,10 +5,6 @@
                <email>[email protected]</email>
                <name>Michael Schubert</name>
        </maintainer>
-       <maintainer type="project">
-               <email>[email protected]</email>
-               <name>Gentoo Biology Project</name>
-       </maintainer>
        <upstream>
                <remote-id type="github">bxlab/bx-python</remote-id>
                <remote-id type="pypi">bx-python</remote-id>

Reply via email to