diff options
| author | Crucible <crucible@localhost> | 2026-10-08 03:05:01 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-10-08 03:05:01 -0500 |
| commit | ac0126af4bbed1cc9dd34c9d8394875eb06f1ad9 (patch) | |
| tree | c8fc2b7a985f8e35ead87530c62bfeb3edb46472 /dev-python/platformdirs | |
| parent | 4f8f07779b4dd78123821b104e43fd1eb15281dd (diff) | |
| download | srcux-ac0126af4bbed1cc9dd34c9d8394875eb06f1ad9.tar.gz srcux-ac0126af4bbed1cc9dd34c9d8394875eb06f1ad9.tar.xz srcux-ac0126af4bbed1cc9dd34c9d8394875eb06f1ad9.zip | |
Publish srcux candidate 0000000587-20261008-030306
Diffstat (limited to 'dev-python/platformdirs')
| -rw-r--r-- | dev-python/platformdirs/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/platformdirs/platformdirs-4.12.4.ebuild | 62 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-python/platformdirs/Manifest b/dev-python/platformdirs/Manifest index b361cf0a398f..e31ee2a2f67f 100644 --- a/dev-python/platformdirs/Manifest +++ b/dev-python/platformdirs/Manifest @@ -16,3 +16,5 @@ DIST platformdirs-4.12.2.tar.gz 59353 BLAKE2B 96ee0e36f5c7dac74f0a04ede52890cfed DIST platformdirs-4.12.2.tar.gz.provenance 9777 BLAKE2B b63dc96908d4f9dce9ff919c7c66b59c9fb1876263c0b50878121031a5a1a995882117f333996e1c11dbb5c495ba5d2469dc4bffbfc91b0c8d4137b78109fe16 SHA512 e0873b3e3ac8a5259bbd9bcd1707f0bf3bdff4628534fa808ec4723040599cfea90a7a42a4af659b816e64113eab914a4fc279abc7c50f227dd9f62070394166 DIST platformdirs-4.12.3.tar.gz 59538 BLAKE2B c70282025e61d0a46767b51bf731b5bd7ef124e6a1306139e98ce26345f5beff96f7e4d2ba266dab00738d91b8fdd9561ee96e0e44dc88cb74da07b71afc8863 SHA512 15e8446d68d934fb1295a3c85ffb33551fa0d54b832e32a59c26d8605b17c0f5bbf5b34374a0647c1fe4f71edb3a435bdbdb3c833ea1680e73fc67929dcf64b9 DIST platformdirs-4.12.3.tar.gz.provenance 9636 BLAKE2B 45435c79304e89cf1d65a3ea2b9998fd31c40c662e8ba2f83b622d1f5d877f02a188c707129abccfcc249e2e37843fa1389c5b788b885377984777b08738902a SHA512 6e557d5014f9f1360a1d5459331e08779b9786e779fcc12d16d0ff5c632de65d5e0db9b485c5954e4bec52888bffb16570dc4a3bb0921b14474a21ea362dcc85 +DIST platformdirs-4.12.4.tar.gz 60010 BLAKE2B fc3753f290a1d353b3faaf013a2b4d974e61cf81b063dd991749ef8a9d344d714e1fabb1f1f35bfda395c62364aa714b826e3b12b8c9578c60cbeb2ccd070b32 SHA512 161ff116ef13ed6c2948dd4827da0ad824772b66c68d88cbe44ea888ba7bb782db9d49711c506a5b106b19dce40ac27e437e9a5fab63697128e258a947863cd2 +DIST platformdirs-4.12.4.tar.gz.provenance 9900 BLAKE2B e204a46f856a98e38643287554056231edd241294d45ef4e007b88edd6f789af2fbf6fe14a30cdb997141f86380618c2faabe8630724c97ffeec94a4644e2d3b SHA512 d7e8dd55b785ef2bf08c50490fddee1729d4bc38c02e37e6e4fdb984a96c2734e5d14da4faa795b28aa509c51377ba88ed8235bb188152196065e722257f7d80 diff --git a/dev-python/platformdirs/platformdirs-4.12.4.ebuild b/dev-python/platformdirs/platformdirs-4.12.4.ebuild new file mode 100644 index 000000000000..64fa02613d59 --- /dev/null +++ b/dev-python/platformdirs/platformdirs-4.12.4.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 +} |
