From c5a9b07f13fb47e9869f0433ea92068acfe47038 Mon Sep 17 00:00:00 2001 From: Crucible Date: Tue, 29 Sep 2026 03:05:07 -0500 Subject: Publish srcux candidate 0000000520-20260929-030310 --- dev-python/platformdirs/Manifest | 2 + dev-python/platformdirs/platformdirs-4.12.1.ebuild | 62 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 dev-python/platformdirs/platformdirs-4.12.1.ebuild (limited to 'dev-python/platformdirs') diff --git a/dev-python/platformdirs/Manifest b/dev-python/platformdirs/Manifest index fe4bee368f88..2c3766977032 100644 --- a/dev-python/platformdirs/Manifest +++ b/dev-python/platformdirs/Manifest @@ -12,3 +12,5 @@ DIST platformdirs-4.11.8.tar.gz 37182 BLAKE2B 223120ca204637bfa8b1f13182ea73aaf0 DIST platformdirs-4.11.8.tar.gz.provenance 9930 BLAKE2B 3039cea46b90560c85320e0f6dfc5d851efb047df90b3596ea1144bc3e1f09355a355b992885571459d18d7bfd9035f30092efed476f2c1c11e0d3c5a109ac3b SHA512 ec6d06cdf399f660f639fc741839244094cc6028c037b9ab24e66cdda1e91aa2ee7819d5b02c4e3adfa651d4cd0cd37374da580bbf5424ef973719e2cfa48606 DIST platformdirs-4.12.0.tar.gz 58964 BLAKE2B df81467e591fd665e33ceaad67a5709eee8eb54e84d7246d23ccd2cc9e60f3b595721131389e041c5d752610d97fddd6d6ef6301447be0b6b0c02d19a27bb8fe SHA512 75429dabf2e94ae72394dc60431fbb63a1d9f1236cd9809e72992b18ca5d055e52cf64622f21dea829842732a9e8df95a06516ec2897c7db611837e16ca08401 DIST platformdirs-4.12.0.tar.gz.provenance 9793 BLAKE2B 0911eb42eccd899592ccfc05541699824b09f125fb5e14379c9c51aac852aa197b7cdbeb800d89926b203e89ade26c67cb8a85b9d971d0ccefa66dca8fee2dff SHA512 a0a42d7f3bb0a2d09802e190ecd189aa86ed6bd002d01f4af736b3755aebb0770bb26edfe622d8d6abfe609660e588376baa44aa5aa9ecec250d672e4dde136d +DIST platformdirs-4.12.1.tar.gz 59427 BLAKE2B daca3b5be360410512e60e521c1b57fe42b63737ecf945b0e1a12772823a5e1e138ce2ea68b1ae2e75836ad7d8e1f738842d28690f1b9f52b690836ec86816bb SHA512 41cf98423ddff05b72e01711fc5322e9f51cbd458b8b728c65b541dea5b8251347765842b9fd8184b6a9f77b20fc312a9674c3c3f97ea851a73e538c909d08b1 +DIST platformdirs-4.12.1.tar.gz.provenance 9507 BLAKE2B 87aa1065feb9c85d3f4fbf130e20c2a5222c34ee7d77259d4d1df36a12bad8411ac86e252812d42fcb839a50646e709c578b2507ed6a6f3e6a932e21887963c3 SHA512 e779fb8f11453a52f7b0e44ce46b28383978b42e183ba926d54311f102061cff1b4c1c7f9ace7d4e7f63621b09dee7a5ae6b58adcde28f91cab5c771d5979e2f diff --git a/dev-python/platformdirs/platformdirs-4.12.1.ebuild b/dev-python/platformdirs/platformdirs-4.12.1.ebuild new file mode 100644 index 000000000000..64fa02613d59 --- /dev/null +++ b/dev-python/platformdirs/platformdirs-4.12.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 2021-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit-core +PYPI_VERIFY_REPO=https://github.com/tox-dev/platformdirs +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A small Python module for determining appropriate platform-specific dirs" +HOMEPAGE=" + https://pypi.org/project/platformdirs/ + https://github.com/tox-dev/platformdirs/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" + +BDEPEND=" + test? ( + dev-python/appdirs[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( pytest-mock ) +distutils_enable_tests pytest + +src_configure() { + grep -q 'build-backend = "hatchling' 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 = "${PN}" + version = "${PV}" + description = 'A small Python package for determining appropriate platform-specific dirs, e.g. a "user data dir".' + EOF + # sigh + cat > src/platformdirs/version.py <<-EOF || die + __version__ = version = '${PV}' + __version_tuple__ = version_tuple = (${PV//./, }) + EOF +} + +python_test() { + local EPYTEST_DESELECT=( + # failing on -Werror, because upstream doesn't bother using + # new pytest + tests/test_pytest_plugin.py::test_import_before_pytest_main + ) + + # have to disable removing tmp_paths since upstream mocks are + # incomplete and break teardown + epytest -p platformdirs.pytest_plugin -o tmp_path_retention_policy=all +} -- cgit v1.3