commit:     e8c40b21f7eb4ba36ac7f8e6bd0ca4d691f6c722
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 15 03:45:30 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Aug 15 03:47:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8c40b21

dev-python/tomlkit: Bump to 0.13.2

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

 dev-python/tomlkit/Manifest              |  1 +
 dev-python/tomlkit/tomlkit-0.13.2.ebuild | 48 ++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/dev-python/tomlkit/Manifest b/dev-python/tomlkit/Manifest
index 4aa0a70c607c..5c0dbabf5fe2 100644
--- a/dev-python/tomlkit/Manifest
+++ b/dev-python/tomlkit/Manifest
@@ -1,2 +1,3 @@
 DIST tomlkit-0.13.0.tar.gz 191792 BLAKE2B 
f5f865b49f9850281d01de2c2ba9c2d8685a10a5cd0f17c475d120978472485a5bd607dc4b283221eab69fc6e214259feafdbe85c8237fe9c80b49007523bb69
 SHA512 
46c5a771ff401e0b300dbd13708d78b63415653b87eb649898bf0bd58cedeb110622ff2f0ade0ad1cd517610229ba0f59b4d520cf2fa1eea6522ea0bc042317e
 DIST tomlkit-0.13.1.tar.gz 192625 BLAKE2B 
1f1ebc96819eb742429d7d8a71b8f3aecdd964f0700052bb2f71ede866c5f97b25745bf95898d7b1005c881d3fdbb36c4cb872126a3be8192cb9c859eb153fbe
 SHA512 
32023020de48d0eacd0ce886870b9a53defdb403b396eb03d0c026c221460eeede1f018586ae141d690722485446be0215582182809c590d1af9825e840b58ad
+DIST tomlkit-0.13.2.tar.gz 192885 BLAKE2B 
c95d24e0ec61cb90dfdd3fe7a07f8187fdfdee1b60d6d3e5a1af08e6d319e24c2447107cd3e49455a3f1cd29a50bde2e09f3a57708ce7349d1e9bd6957e46c9d
 SHA512 
65b45468de25a6b9f22c3fe3468301902e1e439de580e74f15f5a24985546a4bfe47642b6014a25590eb176fedbe468828d7bc84c9c3b65ab418c071f0902957

diff --git a/dev-python/tomlkit/tomlkit-0.13.2.ebuild 
b/dev-python/tomlkit/tomlkit-0.13.2.ebuild
new file mode 100644
index 000000000000..32ec3c8a18ae
--- /dev/null
+++ b/dev-python/tomlkit/tomlkit-0.13.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+
+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 ~ia64 ~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
+}
+
+python_test() {
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest
+}

Reply via email to