summaryrefslogtreecommitdiff
path: root/dev-python/platformdirs
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/platformdirs')
-rw-r--r--dev-python/platformdirs/Manifest2
-rw-r--r--dev-python/platformdirs/platformdirs-4.12.2.ebuild62
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-python/platformdirs/Manifest b/dev-python/platformdirs/Manifest
index 2c3766977032..475f16bab08e 100644
--- a/dev-python/platformdirs/Manifest
+++ b/dev-python/platformdirs/Manifest
@@ -14,3 +14,5 @@ DIST platformdirs-4.12.0.tar.gz 58964 BLAKE2B df81467e591fd665e33ceaad67a5709eee
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
+DIST platformdirs-4.12.2.tar.gz 59353 BLAKE2B 96ee0e36f5c7dac74f0a04ede52890cfed560ee127e75b95c5729c2fe93ec7c6c4d9a79dc523425ba3a8edcba597628209cd6e1d6a5709751bf7c27717380fac SHA512 1c1c3c93de8ba3bb6a035dc62cc627bb77034516252eaeb1ea5a349ff9ed52df9b2002cf72a1a91c420f1eb9e4ded58c9102171ecef6a0b51017fd94e1fde0a8
+DIST platformdirs-4.12.2.tar.gz.provenance 9777 BLAKE2B b63dc96908d4f9dce9ff919c7c66b59c9fb1876263c0b50878121031a5a1a995882117f333996e1c11dbb5c495ba5d2469dc4bffbfc91b0c8d4137b78109fe16 SHA512 e0873b3e3ac8a5259bbd9bcd1707f0bf3bdff4628534fa808ec4723040599cfea90a7a42a4af659b816e64113eab914a4fc279abc7c50f227dd9f62070394166
diff --git a/dev-python/platformdirs/platformdirs-4.12.2.ebuild b/dev-python/platformdirs/platformdirs-4.12.2.ebuild
new file mode 100644
index 000000000000..64fa02613d59
--- /dev/null
+++ b/dev-python/platformdirs/platformdirs-4.12.2.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
+}