public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ruamel-yaml-clib/
Date: Wed,  1 Jun 2022 06:34:24 +0000 (UTC)	[thread overview]
Message-ID: <1654065105.c1c4378d8cc03f6f757d8ffe93c94b74f4fb00fa.sam@gentoo> (raw)

commit:     c1c4378d8cc03f6f757d8ffe93c94b74f4fb00fa
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  1 06:02:57 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun  1 06:31:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1c4378d

dev-python/ruamel-yaml-clib: recythonise for Python 3.11 support

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/ruamel-yaml-clib/Manifest               |  1 +
 .../ruamel-yaml-clib-0.2.6-r2.ebuild               | 43 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/dev-python/ruamel-yaml-clib/Manifest b/dev-python/ruamel-yaml-clib/Manifest
index 94851d7359d6..1256252a4162 100644
--- a/dev-python/ruamel-yaml-clib/Manifest
+++ b/dev-python/ruamel-yaml-clib/Manifest
@@ -1 +1,2 @@
 DIST ruamel.yaml.clib-0.2.6.tar.gz 180695 BLAKE2B 54d0e00544c1716971022257bece3a6c8f83c9188b52e15a136381f5fdf00a519fc5b74792c614a2908ffe68f20fb165732cb814458dadb8498660f28ea67939 SHA512 12307a3c3bae09cf65d9672894c9a869a7ed5483ca3afb9ee39d8bcbf1948b012a0dbf570e315cc8b9a8b55184de9e10324953ec4819d214379e01522ee13b20
+DIST ruamel.yaml.clib-0.2.6.tar.xz 140244 BLAKE2B 8bf4792e8145d8d6220ee1669ee8d87434be8fe419a41671ca4fc9432e219b22c5305ab3fe5388cbe982e2881218c29f45ddbd54e566faf8ea839ba0941d08f4 SHA512 8fb8ca1acf440791f0af96c0f3a9489a4d9399ee51fdfaedc446320852f569bf5bbf71a92b7a1372d0b3302dedfec89531c1726c03b8790997414feb11962731

diff --git a/dev-python/ruamel-yaml-clib/ruamel-yaml-clib-0.2.6-r2.ebuild b/dev-python/ruamel-yaml-clib/ruamel-yaml-clib-0.2.6-r2.ebuild
new file mode 100644
index 000000000000..7c1fa45c1171
--- /dev/null
+++ b/dev-python/ruamel-yaml-clib/ruamel-yaml-clib-0.2.6-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_PN="${PN//-/.}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="C-based reader/scanner and emitter for dev-python/ruamel-yaml"
+HOMEPAGE="
+	https://pypi.org/project/ruamel.yaml.clib/
+	https://sourceforge.net/projects/ruamel-yaml-clib/
+"
+# Lacks .pyx files for cythonizing for py3.11
+#SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+SRC_URI="mirror://sourceforge/ruamel-dl-tagged-releases/${MY_P}.tar.xz"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
+
+src_configure() {
+	local cython_tmp_dir="${T}"/ruamel.yaml.clib
+	local base_name="_ruamel_yaml" || die
+
+	# Needed to recythonise for Python 3.11
+	# Can likely drop after next release (after 0.2.6)
+	rm ${base_name}.c || die
+
+	mkdir "${cython_tmp_dir}" || die
+	mv ${base_name}.pyx "${cython_tmp_dir}/" || die
+	cythonize -3 "${cython_tmp_dir}"/${base_name}.pyx || die
+	mv ${cython_tmp_dir}/* . || die
+	rmdir ${cython_tmp_dir} || die
+}


             reply	other threads:[~2022-06-01  6:34 UTC|newest]

Thread overview: 87+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-01  6:34 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-23 21:25 [gentoo-commits] repo/gentoo:master commit in: dev-python/ruamel-yaml-clib/ Sam James
2024-11-09 10:46 Sam James
2024-11-09  9:57 Arthur Zamarin
2024-11-09  9:50 Sam James
2024-11-09  8:59 Sam James
2024-11-09  8:59 Sam James
2024-10-21  4:35 Michał Górny
2024-10-20  3:11 Michał Górny
2024-05-18 13:57 Michał Górny
2023-12-08 14:24 Arthur Zamarin
2023-11-30 21:43 James Le Cuirot
2023-11-06 10:19 Michał Górny
2023-11-06  7:09 Arthur Zamarin
2023-11-05 20:07 Sam James
2023-11-05 20:07 Sam James
2023-11-05 20:07 Sam James
2023-11-05 20:07 Sam James
2023-11-05 19:12 Arthur Zamarin
2023-11-05 19:10 Arthur Zamarin
2023-11-05 19:10 Arthur Zamarin
2023-10-04 17:43 Michał Górny
2023-09-01 19:26 Arthur Zamarin
2023-05-27  4:41 Michał Górny
2023-05-26 17:44 Michał Górny
2023-05-02 17:18 Michał Górny
2023-03-02  9:34 Marek Szuba
2022-12-17  7:08 Michał Górny
2022-12-16 21:21 Arthur Zamarin
2022-12-16 20:52 Arthur Zamarin
2022-12-16 20:08 Arthur Zamarin
2022-12-16 20:05 Arthur Zamarin
2022-12-16 20:04 Arthur Zamarin
2022-12-16 20:04 Arthur Zamarin
2022-12-16 19:43 Arthur Zamarin
2022-10-21 15:16 Michał Górny
2022-07-02 19:26 Michał Górny
2022-07-02 18:18 Sam James
2022-07-02 16:05 Jakov Smolić
2022-07-02 15:03 Jakov Smolić
2022-07-02 13:43 Arthur Zamarin
2022-07-02 13:16 Arthur Zamarin
2022-07-02 12:13 Arthur Zamarin
2022-07-02 12:07 Arthur Zamarin
2022-06-05  5:48 Michał Górny
2022-04-26  6:43 Michał Górny
2022-04-25 20:20 Arthur Zamarin
2022-04-24 17:47 Arthur Zamarin
2022-04-22 18:18 Arthur Zamarin
2022-04-22 16:51 Arthur Zamarin
2022-04-20 17:04 Arthur Zamarin
2022-04-20 14:12 Jakov Smolić
2022-04-20 14:12 Jakov Smolić
2022-04-13 14:46 Sam James
2022-04-10  8:58 Michał Górny
2021-08-03 15:36 Agostino Sarubbo
2021-07-31 22:23 Sam James
2021-07-31 22:23 Sam James
2021-07-31 22:23 Sam James
2021-07-05  6:04 Michał Górny
2021-06-25 22:29 Michał Górny
2021-06-22 13:10 Marek Szuba
2021-05-13 19:11 Marek Szuba
2021-01-12 12:04 Sam James
2021-01-07 12:47 Sam James
2020-11-23 16:39 Sergei Trofimovich
2020-11-04 10:42 Sergei Trofimovich
2020-11-02 10:34 Michał Górny
2020-10-28  6:49 Andrey Utkin
2020-10-25 19:46 Thomas Deutschmann
2020-10-20  5:06 Sam James
2020-10-19 20:13 Sam James
2020-09-30 12:21 Marek Szuba
2020-09-28 17:41 Sergei Trofimovich
2020-09-13  9:19 Sam James
2020-09-05  6:08 Michał Górny
2020-08-31  4:52 Sam James
2020-08-30 21:24 Andrey Utkin
2020-08-10 19:25 Sergei Trofimovich
2020-08-09 16:56 Sergei Trofimovich
2020-07-17 20:10 Marek Szuba
2020-06-21  6:23 Michał Górny
2020-06-06 19:31 Mart Raudsepp
2020-05-21  8:06 Agostino Sarubbo
2020-05-19 15:47 Marek Szuba
2020-04-28 13:58 Marek Szuba
2020-04-24 14:54 Marek Szuba

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=1654065105.c1c4378d8cc03f6f757d8ffe93c94b74f4fb00fa.sam@gentoo \
    --to=sam@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