public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/zlib-ng/
Date: Thu, 22 May 2025 04:18:18 +0000 (UTC)	[thread overview]
Message-ID: <1747887490.6290d3208cd515e267e28e86a60b94d5fa376308.mgorny@gentoo> (raw)

commit:     6290d3208cd515e267e28e86a60b94d5fa376308
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May 22 04:15:22 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May 22 04:18:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6290d320

dev-python/zlib-ng: New package, v0.5.1

New test dependency of dev-python/aiohttp.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/zlib-ng/Manifest             |  1 +
 dev-python/zlib-ng/metadata.xml         | 11 +++++++
 dev-python/zlib-ng/zlib-ng-0.5.1.ebuild | 55 +++++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+)

diff --git a/dev-python/zlib-ng/Manifest b/dev-python/zlib-ng/Manifest
new file mode 100644
index 000000000000..d7ead4051870
--- /dev/null
+++ b/dev-python/zlib-ng/Manifest
@@ -0,0 +1 @@
+DIST python-zlib-ng-0.5.1.gh.tar.gz 3381700 BLAKE2B 9c9c460c60a10fa5f24816f6f4562f4feeef585c70da34bb0fe0ea2b9c43e62f19f1559a0dd74a48659b02561d3ba505fc3b1b399249a0d8d0603695f7c44db5 SHA512 98d689d6d3462310cdec4d73ec63ee2a8842b54ae5285c7765629b2385a23234bfec45207fedd1e36cca58e7388cb49c34e8bef5f4e102c61e624c80e488492e

diff --git a/dev-python/zlib-ng/metadata.xml b/dev-python/zlib-ng/metadata.xml
new file mode 100644
index 000000000000..703b00e747da
--- /dev/null
+++ b/dev-python/zlib-ng/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>python@gentoo.org</email>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">pycompression/python-zlib-ng</remote-id>
+		<remote-id type="pypi">zlib-ng</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/dev-python/zlib-ng/zlib-ng-0.5.1.ebuild b/dev-python/zlib-ng/zlib-ng-0.5.1.ebuild
new file mode 100644
index 000000000000..2dd282d12990
--- /dev/null
+++ b/dev-python/zlib-ng/zlib-ng-0.5.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3_11 python3_{11..13} )
+
+inherit distutils-r1
+
+MY_P=python-zlib-ng-${PV}
+DESCRIPTION="Drop-in replacement for zlib and gzip modules using zlib-ng"
+HOMEPAGE="
+	https://github.com/pycompression/python-zlib-ng/
+	https://pypi.org/project/zlib-ng/
+"
+# no tests in sdist, as of 0.5.1
+# same upstream as dev-python/isal, so let's see how that report goes:
+# https://github.com/pycompression/python-isal/issues/231
+SRC_URI="
+	https://github.com/pycompression/python-zlib-ng/archive/v${PV}.tar.gz
+		-> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="PSF-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+	sys-libs/zlib-ng:=
+"
+RDEPEND="
+	${DEPEND}
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+src_configure() {
+	export PYTHON_ZLIB_NG_LINK_DYNAMIC=1
+
+	# why people can't use setuptools-scm...
+	sed -i -e '/versioningit/d' setup.py || die
+	sed -i -e 's/versioningit/ignoreme/' pyproject.toml || die
+	echo "[metadata]" >> setup.cfg || die
+	echo "version = ${PV}" >> setup.cfg || die
+	echo "__version__ = '${PV}'" > src/zlib_ng/_version.py || die
+}
+
+python_test() {
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	epytest tests
+}


             reply	other threads:[~2025-05-22  4:18 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-22  4:18 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-22 15:27 [gentoo-commits] repo/gentoo:master commit in: dev-python/zlib-ng/ Michał Górny
2025-05-22 15:27 Michał Górny
2025-05-23  3:22 Sam James
2025-05-23  3:22 Sam James
2025-05-23  3:22 Sam James
2025-05-23  4:48 Sam James
2025-05-24 12:11 Jakov Smolić
2025-06-07 14:46 Sam James
2025-06-17  3:31 WANG Xuerui
2025-06-21  8:14 Sam James
2025-06-22 12:06 Sam James
2025-06-22 12:06 Sam James
2025-06-22 12:06 Sam James
2025-07-12 11:33 Michał Górny
2025-07-12 11:33 Michał Górny
2025-07-12 12:26 Arthur Zamarin
2025-07-12 12:29 Arthur Zamarin
2025-07-12 12:46 Arthur Zamarin
2025-07-12 17:07 Arthur Zamarin
2025-09-11  4:56 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1747887490.6290d3208cd515e267e28e86a60b94d5fa376308.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox