diff options
| author | Crucible <crucible@localhost> | 2026-10-16 03:06:02 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-10-16 03:06:02 -0500 |
| commit | c38023a8fad627dc9baa8ab92d01156d5448b897 (patch) | |
| tree | b40b18d1ce1748ec35c2d7a2c212d6bc959e72a1 /dev-python/platformdirs | |
| parent | 5213c17484fd91256aee081e04094d9bca897128 (diff) | |
| download | srcux-c38023a8fad627dc9baa8ab92d01156d5448b897.tar.gz srcux-c38023a8fad627dc9baa8ab92d01156d5448b897.tar.xz srcux-c38023a8fad627dc9baa8ab92d01156d5448b897.zip | |
Publish srcux candidate 0000000709-20261016-030224
Diffstat (limited to 'dev-python/platformdirs')
| -rw-r--r-- | dev-python/platformdirs/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/platformdirs/platformdirs-4.13.3.ebuild | 62 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-python/platformdirs/Manifest b/dev-python/platformdirs/Manifest index f650e8c1a5e2..fa87e323222d 100644 --- a/dev-python/platformdirs/Manifest +++ b/dev-python/platformdirs/Manifest @@ -18,3 +18,5 @@ DIST platformdirs-4.12.4.tar.gz 60010 BLAKE2B fc3753f290a1d353b3faaf013a2b4d974e DIST platformdirs-4.12.4.tar.gz.provenance 9900 BLAKE2B e204a46f856a98e38643287554056231edd241294d45ef4e007b88edd6f789af2fbf6fe14a30cdb997141f86380618c2faabe8630724c97ffeec94a4644e2d3b SHA512 d7e8dd55b785ef2bf08c50490fddee1729d4bc38c02e37e6e4fdb984a96c2734e5d14da4faa795b28aa509c51377ba88ed8235bb188152196065e722257f7d80 DIST platformdirs-4.13.0.tar.gz 61094 BLAKE2B b75cd5ec0567804dbd1d17c94c47f7d0a42cfae31f26b57a279e3a620a7dd200a323eac14d71d896f808a5cfa855626a0034f6b40e6c005f6e31314a39b1fc13 SHA512 98aae5c205a61e707921f8635d80dd866324aec91ef17f15adf3cf65660ed9e83f11d51edf7187d98e51ee535d0843a7268da225196fe6e5de2c297f170cd429 DIST platformdirs-4.13.0.tar.gz.provenance 9853 BLAKE2B 8979b27b8cc88bbb93ba3b4724ef8b48589cc63b358985174080e034509219b729c18bb6e338ff9dd0b398627572bf88b3fbf80814ba0269c91e4dfc76964a4c SHA512 466c7045f45c6e54a39fb00898e10a7f9d2d1c4ff57549cd41c9d42a2d01b356f9c925cca5ec6698e218683dc218f04a8491d0e2cf808c08ff57d551257527ab +DIST platformdirs-4.13.3.tar.gz 61559 BLAKE2B 67f308693abce309111ede5f65cddee40193acbdb1bd914f8a99f703b7a91311b21923ddcf004fad9fe4b6549ec967639ca1cdc5f15e6d9ec4e2035a13647e43 SHA512 6bff0c7f0039fd9a4c2c0173b4e52d4725ef0f93af627380baa5657312431b24d9e77600bfb032ff1668b7dd095421017a5eff886557fb03ea24463adefe69e9 +DIST platformdirs-4.13.3.tar.gz.provenance 10088 BLAKE2B 144d56f2fe91878dcc528008b48d2face6276a675002ce364eae633694dd865b5ea4f49184b544a2bd55e6e0d5651642b2d6f64ef8285aca9af689693840f0db SHA512 ecd0ae36a2885b1edf1caec3a0975a292346e534ed234e707f4b6fb79de410bdc758a4ff0637d62ef1452c8aa2d2aa751d4a8fcb8548c3c85ba4eeebb8d6b699 diff --git a/dev-python/platformdirs/platformdirs-4.13.3.ebuild b/dev-python/platformdirs/platformdirs-4.13.3.ebuild new file mode 100644 index 000000000000..64fa02613d59 --- /dev/null +++ b/dev-python/platformdirs/platformdirs-4.13.3.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 +} |
