commit:     e4ada608391fa674bcfed416af096775701633f3
Author:     Michael Schubert <mschu.dev <AT> gmail <DOT> com>
AuthorDate: Sun Jan 26 15:50:33 2025 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Thu Feb  6 12:50:39 2025 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=e4ada608

dev-python/pyBigWig: version bump 0.3.24, add tests, remove outdated ebuilds

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

 dev-python/pyBigWig/pyBigWig-0.3.17.ebuild | 25 ----------------------
 dev-python/pyBigWig/pyBigWig-0.3.18.ebuild | 25 ----------------------
 dev-python/pyBigWig/pyBigWig-0.3.24.ebuild | 33 ++++++++++++++++++++++++++++++
 dev-python/pyBigWig/pyBigWig-9999.ebuild   | 25 ----------------------
 4 files changed, 33 insertions(+), 75 deletions(-)

diff --git a/dev-python/pyBigWig/pyBigWig-0.3.17.ebuild 
b/dev-python/pyBigWig/pyBigWig-0.3.17.ebuild
deleted file mode 100644
index acaca2306..000000000
--- a/dev-python/pyBigWig/pyBigWig-0.3.17.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..11} )
-DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1
-
-DESCRIPTION="quick access to and creation of bigWig files"
-HOMEPAGE="https://github.com/dpryan79/pyBigWig";
-
-if [[ ${PV} == 9999 ]] ; then
-       inherit git-r3
-       EGIT_REPO_URI="https://github.com/dpryan79/pyBigWig";
-else
-       SRC_URI="https://github.com/dpryan79/pyBigWig/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-       KEYWORDS="~amd64 ~x86"
-fi
-
-LICENSE="MIT"
-SLOT="0"
-
-DEPEND="sci-biology/libBigWig"
-RDEPEND="${DEPEND}"

diff --git a/dev-python/pyBigWig/pyBigWig-0.3.18.ebuild 
b/dev-python/pyBigWig/pyBigWig-0.3.18.ebuild
deleted file mode 100644
index acaca2306..000000000
--- a/dev-python/pyBigWig/pyBigWig-0.3.18.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..11} )
-DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1
-
-DESCRIPTION="quick access to and creation of bigWig files"
-HOMEPAGE="https://github.com/dpryan79/pyBigWig";
-
-if [[ ${PV} == 9999 ]] ; then
-       inherit git-r3
-       EGIT_REPO_URI="https://github.com/dpryan79/pyBigWig";
-else
-       SRC_URI="https://github.com/dpryan79/pyBigWig/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-       KEYWORDS="~amd64 ~x86"
-fi
-
-LICENSE="MIT"
-SLOT="0"
-
-DEPEND="sci-biology/libBigWig"
-RDEPEND="${DEPEND}"

diff --git a/dev-python/pyBigWig/pyBigWig-0.3.24.ebuild 
b/dev-python/pyBigWig/pyBigWig-0.3.24.ebuild
new file mode 100644
index 000000000..2b5bd449d
--- /dev/null
+++ b/dev-python/pyBigWig/pyBigWig-0.3.24.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_EXT=1
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+inherit distutils-r1
+
+DESCRIPTION="quick access to and creation of bigWig files"
+HOMEPAGE="https://github.com/deeptools/pyBigWig";
+SRC_URI="https://github.com/deeptools/pyBigWig/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+REPEND="
+       sys-libs/zlib:0=
+       sci-biology/libBigWig
+"
+DEPEND="${RDEPEND}"
+
+distutils_enable_tests pytest
+
+python_test() {
+       local 
pysite="${BUILD_DIR}"/install/${EPREFIX}/usr/lib/${EPYTHON}/site-packages
+       ln -s "${S}"/pyBigWigTest/test.bigBed "${pysite}"/pyBigWigTest || die
+       ln -s "${S}"/pyBigWigTest/test.bw "${pysite}"/pyBigWigTest || die
+       epytest pyBigWigTest/test.py
+}

diff --git a/dev-python/pyBigWig/pyBigWig-9999.ebuild 
b/dev-python/pyBigWig/pyBigWig-9999.ebuild
deleted file mode 100644
index acaca2306..000000000
--- a/dev-python/pyBigWig/pyBigWig-9999.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..11} )
-DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1
-
-DESCRIPTION="quick access to and creation of bigWig files"
-HOMEPAGE="https://github.com/dpryan79/pyBigWig";
-
-if [[ ${PV} == 9999 ]] ; then
-       inherit git-r3
-       EGIT_REPO_URI="https://github.com/dpryan79/pyBigWig";
-else
-       SRC_URI="https://github.com/dpryan79/pyBigWig/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-       KEYWORDS="~amd64 ~x86"
-fi
-
-LICENSE="MIT"
-SLOT="0"
-
-DEPEND="sci-biology/libBigWig"
-RDEPEND="${DEPEND}"

Reply via email to