From 0be7876bb52244ca5679b62e475ab31998727545 Mon Sep 17 00:00:00 2001 From: Crucible Date: Sun, 27 Sep 2026 01:07:12 -0500 Subject: Publish srcux candidate 0000000476-20260927-010506 --- dev-python/platformdirs/Manifest | 12 +---- .../platformdirs/platformdirs-4.11.10.ebuild | 50 ------------------- .../platformdirs/platformdirs-4.11.14.ebuild | 50 ------------------- dev-python/platformdirs/platformdirs-4.11.3.ebuild | 50 ------------------- dev-python/platformdirs/platformdirs-4.11.4.ebuild | 50 ------------------- dev-python/platformdirs/platformdirs-4.11.9.ebuild | 50 ------------------- dev-python/platformdirs/platformdirs-4.12.0.ebuild | 56 ++++++++++++++++++++++ 7 files changed, 58 insertions(+), 260 deletions(-) delete mode 100644 dev-python/platformdirs/platformdirs-4.11.10.ebuild delete mode 100644 dev-python/platformdirs/platformdirs-4.11.14.ebuild delete mode 100644 dev-python/platformdirs/platformdirs-4.11.3.ebuild delete mode 100644 dev-python/platformdirs/platformdirs-4.11.4.ebuild delete mode 100644 dev-python/platformdirs/platformdirs-4.11.9.ebuild create mode 100644 dev-python/platformdirs/platformdirs-4.12.0.ebuild (limited to 'dev-python/platformdirs') diff --git a/dev-python/platformdirs/Manifest b/dev-python/platformdirs/Manifest index 42affdaf08c9..fe4bee368f88 100644 --- a/dev-python/platformdirs/Manifest +++ b/dev-python/platformdirs/Manifest @@ -1,22 +1,14 @@ -DIST platformdirs-4.11.10.tar.gz 39389 BLAKE2B a9c3e5329d40d215d12c6895c5384ba0194ca5a870afa964ca659b00a71b8f12a8bff5aceddedd5c31cffbd0825da4ac8b3d0ed96ad4abb549ebe593e3137427 SHA512 189bda44a41e0f727dabce31b94eaa3a6ac1db214784d33ec133810e2e38b347f39efd849c8a0112c1b101d52e06c37e63912577ed3bb13aa07d5e8c939c1522 -DIST platformdirs-4.11.10.tar.gz.provenance 9727 BLAKE2B 68b894e86840f698e0b4fcc0c8738dc49419d4a7412841f56f2f6170071287b8e89add4e7c8e45d4d2a92d4695f07f0bbf7be8f398c7e0abe2322ab3a4d13ee6 SHA512 b807a7850cf218f5fd159f50811b54f745d5739cf2ffe5d9073853023c9a0b1eb8db902e943b68b623538a8debdad2739d5be55ce68d4ee9804275b77f5ad336 DIST platformdirs-4.11.11.tar.gz 39949 BLAKE2B d2859626de4bde78e374803f075f100e2461293a4b51bfea0da514dac248c01e432237cb7af29c106fba723a172567b1408e106657fe98a7c1507636e1bf520e SHA512 79a795a2afcc6f63278ac10f704d4bab22af0dcfe75ceed15cb8edb59a7aede5a0d6fa0c852a1dd805c2fb54963496cd5a1c503efc04e39e08bd4d27d895d29f DIST platformdirs-4.11.11.tar.gz.provenance 9911 BLAKE2B 186d2f4f51ebd4f88a32e16fb55502250179c937a2ca15c893ab0721c8407695b271e06a46b7903e95e229480572d946380e6cbf2a37ad1b26f30a1e5ee67339 SHA512 bb64f31a340a8d6220b837df9d6ccb56b879fa8a55d0716beed4e35516e8844bda9ab95097c9567276526cdb65871f09143cc2f2207d08e4b7b6598bfa10eb09 DIST platformdirs-4.11.12.tar.gz 40016 BLAKE2B d8f5b81cdde33623e59b21c5309d357e5a8edd80a4dbb2767a3379552e7414678e64aef3b44167c79e514cbc2afb9c1435f3a206bda1af6f02ff4278c0012a7b SHA512 89315faa27605b8f60788d7610c639f6dc8794a7e444c5fe9dfb06da72bb6520e05366da6968f8bcc0384f43d4294abd68f40e7912a1e75a94b09d4f0582dfca DIST platformdirs-4.11.12.tar.gz.provenance 9617 BLAKE2B fd02ecf2e8bceb5f143d5184e8a242ddcce1b981af46f679de638714096c0e30ba8cc6040e594680a049c9ef5544e324503f95ddc372c885dda7365687a43491 SHA512 7b588b06856b2a61c83bc0607325befb42b95146db61ec34d6620dd07f93a74b07c9e055576271e40f4082383b009317707c39edef8eaa8b10480e62f49c1bfa -DIST platformdirs-4.11.14.tar.gz 45301 BLAKE2B cbb1cf6980d7aab45525a46438a8accc2eb188a30c652fe9ae66e9a1f8858d1a287e7b898be54f1f0221777bfbe3b5bfe016314be1973f223b5acbb6faa53ea4 SHA512 8d386d0535728f51b7a2eacf7f994e986becc55515472c58bb244bb324c47354427ac704984afe01bf956d52c4832768be5a2cad5d464fc7e57131b219c38e09 -DIST platformdirs-4.11.14.tar.gz.provenance 9805 BLAKE2B 532406b48218fb89b03be35e52b1d2567a72897a23952fe17d8b085f7c55fb7b8df8e5c6a7f7f14188a1ee64febee56b7cfaf75d68b392bb87c202fad2b79c09 SHA512 465302f0476f2f11439339c1ee5ff17304022f1930351afa86a1dfcb1e0cd0ee4e943ec74af61d54dd9984fcc53034766a1da3a5efebd56b5c8ae3d912a22b89 DIST platformdirs-4.11.15.tar.gz 46059 BLAKE2B 69da625f4bad69e17c1739c0f4133ff619671f0c592035c91b98b7fe88d6da2b9c6a98e11a52c1d6368f7a383da4c0ce32bbeaeb1e24a191533c6f8f1db00144 SHA512 0e8f7b7fa2fe817695e61a4df091346cf56e0493ab80abe0871df5c88be7a0e96f63f64451e8848da53e5bda7cd33296a1e8475f847a68c4798f59771fe0d855 DIST platformdirs-4.11.15.tar.gz.provenance 9958 BLAKE2B c85324fdb9dc97ab5d29503da0916a13f3416f31362466182d9bd62cb1f0ce5bb55a6b350ceec05e600e7fb3e5895222517e2cd84610ff4670bf350fcf8f18f4 SHA512 7a18eb7c497cd2af7ad0dd1903c5b482d05d814fade6e3aefbc6363056de78ec2607eb46c9a416d47a701e995ae3c784efbb3df3e3bcc09af795ff3a3c0707e3 -DIST platformdirs-4.11.3.tar.gz 33050 BLAKE2B c838822e0d5a9391d13fbf240c3006ade7094c2a2ad7c5b9904fce23c48ea9db6e851d04c887a80f37fee3bd0612e010ae58516751c050fb881c8ec6da1ab22e SHA512 0d90ccbb4f75bc2c0eda42223d475c688c59214fd696ff4690abd022322d9883816bc7c33765da8c9a792afc04ab21faa08c69dcbe027f7cbdcb4087e5baa2a1 -DIST platformdirs-4.11.3.tar.gz.provenance 9777 BLAKE2B 9b4f683aaab5b99f085f560e4ff21e3a9533b892e974e8e39aef047ee2021ff416ff88af6db98c6fd284ef592a926b425c8b7c05f5cb0f4b8d5c23bb59ac8229 SHA512 97833d43052e8b2c303f204f8291cfb39bc1b399c2ecfbeabe18b54e5d20bb8920c802013fc43060c9e4f2ed7f359c5a5c763dc8cb14e9ba8bc52f328a64fa34 -DIST platformdirs-4.11.4.tar.gz 34079 BLAKE2B daf5b088aa61382c1cbcbda0eebb23b9b4e7071472589ee1cc61c04f5386952d1be1b3090198104c4749c09c0fe5fcf8677ddfd31c1f8efe34219ef1a9708b3d SHA512 557782bd9f2af016372e9406a05a55194259303ae63ee90f684595f9a5dfbe0cc8ba11252135ebf31cb5a93bef740487581b4ca852f467ef781287cda15e4a0c -DIST platformdirs-4.11.4.tar.gz.provenance 9840 BLAKE2B a0988dc801b4d8bc449aeb7db45e9760e410dc58e9ac8bce7a8e0d48ce2d57deda740312c822b018a517073779af4e105d9f10a5a060eb20465f1ca17d47d71b SHA512 307d1916679a68ec9affd36b1ccd49a331058f87673ab0b630e8b21318561db98aad97d45ee6a0b6d3c9544d557d18330de86718379ccb699432922cd418714e DIST platformdirs-4.11.5.tar.gz 34823 BLAKE2B f293190f29e9fa5417bd2eb4ce0f1039481abe86729b1a652fabf29e3aa6ad708ed1f962cf96011f764a561d4fb914b6a17baf8f006911fd82a0c99b8826d263 SHA512 6238abd47f5d3ec6f5b87db98bc3a051e521594c280decf3f4f0403e2c43e07fa3b3802d40637b7414d322b8e0ed64853377b0b547a580654a3cbc198bd4f61e DIST platformdirs-4.11.5.tar.gz.provenance 9871 BLAKE2B 026412ddd8cf20de7dc7b43c2cb02cb4812a537bcba18dcec5680d70ac8bb2deae31798fab48f288009dbf0360f94c72fe04332a38d415bc1cb59353c7de0293 SHA512 69e8fcfb25ac561c65562fa08205876fe47ea59d98f8fa53378871af81a0b213d6f3d13df883b54823687d8e91c031a666fda7588b280aa644ea1c4352c9c812 DIST platformdirs-4.11.7.tar.gz 35127 BLAKE2B 1cd3f4461c0f1c2c1c7ac62491d23a7d57ad14fb4f1a58f0ce78f72ea6fd9cc7ac2428dad2129a3ca70335377085a7854cd4d45ec229b178c65339377d3f439d SHA512 717cfe7407e3afcbd9a115d4a7758d8e70c96f7b26479c8d3144bc41aebe87852197b534a86c11c0c3ed01687955aacd049c656062fb3ca4e802476872a65197 DIST platformdirs-4.11.7.tar.gz.provenance 9640 BLAKE2B 2cbc679cbcabea84ba9533d4aedd50a9339f2c727823dab79726aa8d005fb8a4e65995b65b6df3d9924290d4c8f9e3266a459353eb713509af967d4536fe0acd SHA512 814547814683965b3285c82b66747b7c712ef01ec92e90be5ef4b50d9bb0e103cbcdc848dd7b27c2aa95dccbb4f813c64bc3dd76cb51bc9ce69b518cf3540f18 DIST platformdirs-4.11.8.tar.gz 37182 BLAKE2B 223120ca204637bfa8b1f13182ea73aaf03d9d0abd6cba6a190e587fb9c3a7c27678ebe2893a662ada540e2de1fcd35e8bcd1b6caf52c0e8b0d696aeb522d6fd SHA512 eaca02bb4fd5526b68cd820cdddfbb2fc9a837d8a7c0f18afd2871b134738ec180406e9f886ad318b7c1812a751055f958756ccdd8942681fe78b0976c2f6eb5 DIST platformdirs-4.11.8.tar.gz.provenance 9930 BLAKE2B 3039cea46b90560c85320e0f6dfc5d851efb047df90b3596ea1144bc3e1f09355a355b992885571459d18d7bfd9035f30092efed476f2c1c11e0d3c5a109ac3b SHA512 ec6d06cdf399f660f639fc741839244094cc6028c037b9ab24e66cdda1e91aa2ee7819d5b02c4e3adfa651d4cd0cd37374da580bbf5424ef973719e2cfa48606 -DIST platformdirs-4.11.9.tar.gz 38345 BLAKE2B d48ceea33fc0cbdbaa072092a6dc19063bf4292cc94c41688872d3e638a99daded24abd92b1c23d0e7c45222ca88584f38459e027e33fb927d2d17a256c397b5 SHA512 c21b022f6678c87ccfc9d3a75cf9cbf31e9bc0a66436797f913ae34d52006f18113f89ec85d90baf455178fedd06acd8c1be6a4f1e0414940b83deb19342479d -DIST platformdirs-4.11.9.tar.gz.provenance 9648 BLAKE2B 6e3c3f560bcd74f9af5e70342001ae5d3f0a06477095f60bd02a8451a3aef0bfd518784f3e5b0939006904018c5943474ed586968e0c397d84100048d7ade318 SHA512 3e38f8c53d1f173b276381d2e175585700a1eed1df478f9f64e447aa969c58a426cd8a4a92847e736bf3d2d6ea9f1f366127a447f4cf0850f65531a79a346891 +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 diff --git a/dev-python/platformdirs/platformdirs-4.11.10.ebuild b/dev-python/platformdirs/platformdirs-4.11.10.ebuild deleted file mode 100644 index 97987e113428..000000000000 --- a/dev-python/platformdirs/platformdirs-4.11.10.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# 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 -} diff --git a/dev-python/platformdirs/platformdirs-4.11.14.ebuild b/dev-python/platformdirs/platformdirs-4.11.14.ebuild deleted file mode 100644 index 97987e113428..000000000000 --- a/dev-python/platformdirs/platformdirs-4.11.14.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# 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 -} diff --git a/dev-python/platformdirs/platformdirs-4.11.3.ebuild b/dev-python/platformdirs/platformdirs-4.11.3.ebuild deleted file mode 100644 index efc02002085f..000000000000 --- a/dev-python/platformdirs/platformdirs-4.11.3.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# 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 -} diff --git a/dev-python/platformdirs/platformdirs-4.11.4.ebuild b/dev-python/platformdirs/platformdirs-4.11.4.ebuild deleted file mode 100644 index 97987e113428..000000000000 --- a/dev-python/platformdirs/platformdirs-4.11.4.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# 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 -} diff --git a/dev-python/platformdirs/platformdirs-4.11.9.ebuild b/dev-python/platformdirs/platformdirs-4.11.9.ebuild deleted file mode 100644 index 97987e113428..000000000000 --- a/dev-python/platformdirs/platformdirs-4.11.9.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# 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 -} diff --git a/dev-python/platformdirs/platformdirs-4.12.0.ebuild b/dev-python/platformdirs/platformdirs-4.12.0.ebuild new file mode 100644 index 000000000000..6a120d0eaf3a --- /dev/null +++ b/dev-python/platformdirs/platformdirs-4.12.0.ebuild @@ -0,0 +1,56 @@ +# 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() { + # 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