commit: 2742b126141ea9495cc35fc8bf1e0fcc4bbeaacd
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 6 04:40:36 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jun 6 05:48:54 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2742b126
dev-python/tomlkit: Bump to 0.13.3
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/tomlkit/Manifest | 1 +
dev-python/tomlkit/tomlkit-0.13.3.ebuild | 52 ++++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+)
diff --git a/dev-python/tomlkit/Manifest b/dev-python/tomlkit/Manifest
index 59800bcee3bb..ff95e1151ea4 100644
--- a/dev-python/tomlkit/Manifest
+++ b/dev-python/tomlkit/Manifest
@@ -1 +1,2 @@
DIST tomlkit-0.13.2.tar.gz 192885 BLAKE2B
c95d24e0ec61cb90dfdd3fe7a07f8187fdfdee1b60d6d3e5a1af08e6d319e24c2447107cd3e49455a3f1cd29a50bde2e09f3a57708ce7349d1e9bd6957e46c9d
SHA512
65b45468de25a6b9f22c3fe3468301902e1e439de580e74f15f5a24985546a4bfe47642b6014a25590eb176fedbe468828d7bc84c9c3b65ab418c071f0902957
+DIST tomlkit-0.13.3.tar.gz 185207 BLAKE2B
e4248dd22357295b4315abb28abb1e2949499fcc2f451058205876ffd67b4f45e0a773de9f73f07ec3a44dd8d066d7ee6bb2ea9d2067db2b76adba9b5391982b
SHA512
bdb679d64ad09f89b8ae8c6b8406d24b805562e4d80a1a0644a533b15eafe8bf5b3451754d71d453ca581d43bcc598473499dab29176d52b2ff0589ff59bbec9
diff --git a/dev-python/tomlkit/tomlkit-0.13.3.ebuild
b/dev-python/tomlkit/tomlkit-0.13.3.ebuild
new file mode 100644
index 000000000000..067dbbb42e70
--- /dev/null
+++ b/dev-python/tomlkit/tomlkit-0.13.3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Style preserving TOML library"
+HOMEPAGE="
+ https://github.com/python-poetry/tomlkit/
+ https://pypi.org/project/tomlkit/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64
~riscv ~s390 ~sparc ~x86"
+
+BDEPEND="
+ test? (
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+src_configure() {
+ grep -q 'build-backend = "poetry' pyproject.toml ||
+ die "Upstream changed build-backend, recheck"
+ # write a custom pyproject.toml to ease setuptools bootstrap
+ cat > pyproject.toml <<-EOF || die
+ [build-system]
+ requires = ["flit_core >=3.2,<4"]
+ build-backend = "flit_core.buildapi"
+
+ [project]
+ name = "tomlkit"
+ version = "${PV}"
+ description = "Style preserving TOML library"
+ EOF
+
+ # some brilliant idea about forcing 1970 dates in sdist
+ # which are older than what zip can handle...
+ find -exec touch {} + || die
+}
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}