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/zstandard/
Date: Tue, 21 Feb 2023 07:41:54 +0000 (UTC)	[thread overview]
Message-ID: <1676965052.3bbc0e582d8be7f7cd3debd1b5e1c481b31af74c.mgorny@gentoo> (raw)

commit:     3bbc0e582d8be7f7cd3debd1b5e1c481b31af74c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 21 07:21:37 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb 21 07:37:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bbc0e58

dev-python/zstandard: Bump to 0.20.0

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

 dev-python/zstandard/Manifest                |  1 +
 dev-python/zstandard/zstandard-0.20.0.ebuild | 67 ++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/dev-python/zstandard/Manifest b/dev-python/zstandard/Manifest
index eca36ccda64c..d130bef396b6 100644
--- a/dev-python/zstandard/Manifest
+++ b/dev-python/zstandard/Manifest
@@ -1 +1,2 @@
 DIST python-zstandard-0.19.0.gh.tar.gz 683942 BLAKE2B 5b28fb6360147f87fb658d28652e5e43b0e41ff3cc31e46d91b1dcdd5334869f9a10a598f3d1d15a8c0f02afc59d009a8088ba3e81066f1a5f1ad9c05ebd4a1d SHA512 56e7b43161940f182ff5a0745bb6bdb2710c9a61140c4a84b690e0abd18c8b862211ab2b1ba36cfd99fe75bb0ae00af7de798b010b2bd4c5a44d691d4fa0c63d
+DIST python-zstandard-0.20.0.gh.tar.gz 712241 BLAKE2B 6ec393a440eb2a0527e655ee1aec16a47120578bbbb69d2f208b4367be199041887bf02d8feeb74f87992d0ab2b5e668cf8b3d8cd8967bd6dc47d4e052781ebc SHA512 bdbbd829e431a9b1ad1247b83e2e6102314a257a32c92a5c666c5ac050eb115bccd9d358240ac9ab41e975ade13bbbc155c66cb8fb583d2ee8dbd28ae323e4f8

diff --git a/dev-python/zstandard/zstandard-0.20.0.ebuild b/dev-python/zstandard/zstandard-0.20.0.ebuild
new file mode 100644
index 000000000000..5fc27ad9bd17
--- /dev/null
+++ b/dev-python/zstandard/zstandard-0.20.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} pypy3 )
+
+inherit distutils-r1
+
+MY_P=python-zstandard-${PV}
+DESCRIPTION="Zstandard Bindings for Python"
+HOMEPAGE="
+	https://github.com/indygreg/python-zstandard/
+	https://pypi.org/project/zstandard/
+"
+SRC_URI="
+	https://github.com/indygreg/python-zstandard/archive/${PV}.tar.gz
+		-> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+DEPEND="
+	app-arch/zstd:=
+"
+RDEPEND="
+	${DEPEND}
+	$(python_gen_cond_dep '
+		>=dev-python/cffi-1.14.0-r2:=[${PYTHON_USEDEP}]
+	' 'python*')
+"
+BDEPEND="
+	test? (
+		dev-python/hypothesis[${PYTHON_USEDEP}]
+	)
+"
+
+distutils_enable_tests unittest
+
+src_prepare() {
+	# the C backend is repeatedly broken, so force CFFI instead
+	sed -e '/PYTHON_ZSTANDARD_IMPORT_POLICY/s:default:cffi:' \
+		-i zstandard/__init__.py || die
+	# unreliable, fails on x86
+	sed -e 's:test_estimated_compression_context_size:_&:' \
+		-i tests/test_data_structures.py || die
+	# unbundle zstd
+	: > zstd/zstdlib.c || die
+	# it does random preprocessing on that, so we can't use #include
+	cp "${ESYSROOT}/usr/include/zstd.h" zstd/zstd.h || die
+	sed -i -e '/include_dirs/a    libraries=["zstd"],' make_cffi.py || die
+
+	distutils-r1_src_prepare
+
+	DISTUTILS_ARGS=(
+		--no-c-backend
+	)
+}
+
+src_test() {
+	rm -r zstandard || die
+	distutils-r1_src_test
+}


             reply	other threads:[~2023-02-21  7:42 UTC|newest]

Thread overview: 157+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-21  7:41 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-10  6:43 [gentoo-commits] repo/gentoo:master commit in: dev-python/zstandard/ Michał Górny
2024-08-03 22:51 Sam James
2024-08-03 16:48 Jakov Smolić
2024-08-03  8:45 Michał Górny
2024-08-03  8:45 Michał Górny
2024-08-03  6:24 Michał Górny
2024-08-03  6:24 Michał Górny
2024-07-15  9:04 Michał Górny
2024-07-13 19:34 Michał Górny
2024-05-12 12:25 Michał Górny
2024-04-05 16:22 Michał Górny
2023-11-29 16:59 Michał Górny
2023-11-29 16:45 Arthur Zamarin
2023-11-29 15:15 Arthur Zamarin
2023-11-29 14:00 Arthur Zamarin
2023-11-29 12:26 Arthur Zamarin
2023-11-29 11:35 Michał Górny
2023-11-29 11:32 Michał Górny
2023-11-29 10:35 Michał Górny
2023-11-29 10:15 Michał Górny
2023-08-02 15:27 Arthur Zamarin
2023-08-02 14:44 Arthur Zamarin
2023-06-04  4:58 Michał Górny
2023-06-03 20:17 Sam James
2023-06-03 18:35 Arthur Zamarin
2023-06-03 18:26 Arthur Zamarin
2023-06-03 18:09 Arthur Zamarin
2023-06-03 18:09 Arthur Zamarin
2023-06-03 18:09 Arthur Zamarin
2023-05-29 20:53 James Le Cuirot
2023-05-29  9:31 Michał Górny
2023-05-29  9:31 Michał Górny
2023-05-29  9:31 Michał Górny
2023-05-27 13:21 Michał Górny
2023-05-04 17:04 Michał Górny
2023-04-17  5:26 Michał Górny
2023-04-04  4:48 Michał Górny
2023-04-03 19:13 Arthur Zamarin
2023-03-24 14:29 Arthur Zamarin
2023-03-24  3:09 Sam James
2023-03-24  3:09 Sam James
2023-03-24  3:09 Sam James
2023-03-24  3:09 Sam James
2022-10-30  6:39 Michał Górny
2022-07-25  7:17 Michał Górny
2022-07-25  7:11 Agostino Sarubbo
2022-07-25  7:10 Agostino Sarubbo
2022-07-25  7:10 Agostino Sarubbo
2022-07-25  7:09 Agostino Sarubbo
2022-07-25  7:07 Agostino Sarubbo
2022-07-24 19:13 Sam James
2022-06-22 16:41 Michał Górny
2022-06-22 16:02 Arthur Zamarin
2022-06-22 10:16 Agostino Sarubbo
2022-06-22 10:14 Agostino Sarubbo
2022-06-22 10:13 Agostino Sarubbo
2022-06-22 10:10 Agostino Sarubbo
2022-06-21 18:43 Arthur Zamarin
2022-06-21  6:00 Michał Górny
2022-05-19  7:15 Michał Górny
2022-05-19  7:15 Michał Górny
2022-03-07  7:43 Michał Górny
2022-03-06 23:40 Sam James
2022-03-06  7:49 Sam James
2022-02-28 10:13 Agostino Sarubbo
2022-02-27 12:29 Jakov Smolić
2022-01-19  7:26 Arthur Zamarin
2021-11-22 20:44 Michał Górny
2021-11-22 17:31 Arthur Zamarin
2021-11-22 13:45 Sam James
2021-11-22  8:03 Sam James
2021-11-22  8:03 Sam James
2021-11-22  7:51 Agostino Sarubbo
2021-11-21 19:36 Jakov Smolić
2021-10-17  7:15 Michał Górny
2021-05-25  0:50 Joshua Kinard
2021-05-16 15:26 Michał Górny
2021-05-16 15:09 Michał Górny
2021-05-16 12:45 Sam James
2021-05-04  7:03 Agostino Sarubbo
2021-04-28 23:24 Michał Górny
2021-04-01 17:30 Agostino Sarubbo
2021-03-31 13:53 Agostino Sarubbo
2021-03-28 11:50 Sam James
2021-03-25 21:29 Sam James
2021-03-19 20:14 Sam James
2021-03-19 14:38 Michał Górny
2021-03-08 18:59 Michał Górny
2021-03-08 18:46 Michał Górny
2021-03-08 14:48 Michał Górny
2021-03-05 18:58 Sam James
2021-03-02  5:55 Sam James
2021-03-02  0:41 Michał Górny
2021-02-28  9:07 Michał Górny
2021-01-07  1:12 Sam James
2021-01-07  1:08 Sam James
2021-01-07  0:58 Sam James
2021-01-06 22:30 Fabian Groffen
2021-01-06 10:59 Sam James
2021-01-04 23:06 Patrick McLean
2021-01-01 10:16 Michał Górny
2021-01-01  0:59 Michał Górny
2020-12-29 19:48 Michał Górny
2020-12-05 23:37 Patrick McLean
2020-10-21 22:51 Michał Górny
2020-09-20  9:36 Michał Górny
2020-09-19 17:07 Sam James
2020-09-19 16:26 Sam James
2020-08-22  7:13 Michał Górny
2020-07-31  2:38 Sam James
2020-07-30 19:39 Sam James
2020-06-14  8:29 Michał Górny
2020-05-30  6:55 Robin H. Johnson
2020-05-12  6:39 Agostino Sarubbo
2020-05-11  9:27 Agostino Sarubbo
2020-05-11  9:26 Agostino Sarubbo
2020-05-10 17:42 Mart Raudsepp
2020-05-06 20:24 Michał Górny
2020-05-06 16:28 Mikle Kolyada
2020-03-29 12:22 Michał Górny
2020-03-04  5:01 Michał Górny
2020-02-12 10:43 Michał Górny
2020-02-12  7:51 Agostino Sarubbo
2020-02-11 19:51 Agostino Sarubbo
2020-02-11 19:50 Agostino Sarubbo
2020-02-11 19:43 Agostino Sarubbo
2020-02-11 16:01 Agostino Sarubbo
2019-12-29  7:37 Michał Górny
2019-10-06  9:57 Michał Górny
2019-05-12 21:48 Sergei Trofimovich
2019-05-10  3:31 Aaron Bauman
2019-04-28  7:42 Sergei Trofimovich
2019-04-13  3:33 Aaron Bauman
2019-04-07 20:52 Sergei Trofimovich
2019-04-02 12:25 Mikle Kolyada
2019-03-26 21:09 Sergei Trofimovich
2019-03-16 14:01 Mikle Kolyada
2019-03-16 12:48 Agostino Sarubbo
2019-03-16 11:05 Sergei Trofimovich
2019-03-16 11:05 Sergei Trofimovich
2019-03-14 19:41 Sergei Trofimovich
2019-03-13 11:31 Lars Wendler
2018-12-07 16:10 Fabian Groffen
2018-11-27 12:12 Jeroen Roovers
2018-11-26 19:49 Mikle Kolyada
2018-11-19 21:15 Fabian Groffen
2018-11-07 23:03 Sergei Trofimovich
2018-10-17 15:57 Tobias Klausmann
2018-10-15 20:28 Sergei Trofimovich
2018-10-01 22:42 Thomas Deutschmann
2018-06-08  9:18 Fabian Groffen
2017-05-04 17:16 Manuel Rüger
2017-05-02 14:02 Michał Górny
2017-04-25 13:09 Manuel Rüger
2017-03-20 18:41 Manuel Rüger
2017-03-08 15:57 Manuel Rüger

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=1676965052.3bbc0e582d8be7f7cd3debd1b5e1c481b31af74c.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