Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions dev-python/pyBigWig/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
DIST pyBigWig-0.3.17.tar.gz 65490 BLAKE2B 5ae3ad5792357ae36082022aa34548fb7ad105909eccc27305064f8f948714f462e1d239c3af7f9b75b84f5658bcb03231d7d1d3b0ebc8025c96d2e7835f1bfb SHA512 b52fec3a85984708660dd454f5569900a5cce7804d02e719bddbdc7ed2f9f4ab1131e55b0a01ae977b18bb0bbd079e13ec887d5df108d8abfebdd04ad56e503f
DIST pyBigWig-0.3.18.tar.gz 66478 BLAKE2B 0d2e20bed5f59fb8c79026f453c4d5c3e4f9b663e96614b3ef8cbb939357c8895edfa92184da018efdd40e14bbf357f13cc32f898d9cf89419382e7be89b01c8 SHA512 e782f059a8c47043498b2c4b1c0b63f3a1863d03f641c469995536bded220714c61fe0a2f1dbe5841152fe54d0d43b544e14ec4999447d4d808e01b452fa5e88
DIST pyBigWig-0.3.24.tar.gz 67280 BLAKE2B 3c6b0129eaf82d848d6bca9c78966cb106b53b50ee9551f2bef88e775f0b97d80248a6f1cd11a5f96819c836a36078d107d57683dd37a63b2e0ad49e5d52af77 SHA512 ff08fc987e9320b6c33d57da92ec8f5dcede2fbbafb0cb6a03eb0537da7312d8b7a4aabd30c7ae1cc7e6c9554b7d08654444b1141ee1df944e6d6de957e3d6c0
25 changes: 0 additions & 25 deletions dev-python/pyBigWig/pyBigWig-0.3.17.ebuild

This file was deleted.

25 changes: 0 additions & 25 deletions dev-python/pyBigWig/pyBigWig-0.3.18.ebuild

This file was deleted.

32 changes: 32 additions & 0 deletions dev-python/pyBigWig/pyBigWig-0.3.24.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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
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
Comment on lines +29 to +31
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if there is a better way than linking

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about setting PYTHONPATH?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem here is that:

  1. The test accesses the file using os.path.dirname(pyBigWig.__file__) + "/pyBigWigTest/test.bigBed"
  2. pyBigWig only exists as .so file in the build directory (without those files)
  3. Setting PYTHONPATH doesn't change the file path construction of the former

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISTUTILS_IN_SOURCE_BUILD=1 might help here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting: DISTUTILS_IN_SOURCE_BUILD is not supported in PEP517 mode

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, let's just keep it as it is then.

}
25 changes: 0 additions & 25 deletions dev-python/pyBigWig/pyBigWig-9999.ebuild

This file was deleted.

Loading