commit: 8e9d5fb97afee7947f499f42cd1b879cf88da853 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Feb 13 04:25:44 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Feb 13 04:43:40 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e9d5fb9
dev-python/platformdirs: Bump to 4.7.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/platformdirs/Manifest | 2 + dev-python/platformdirs/platformdirs-4.7.0.ebuild | 50 +++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/dev-python/platformdirs/Manifest b/dev-python/platformdirs/Manifest index 8319378c54a5..f626ec123a86 100644 --- a/dev-python/platformdirs/Manifest +++ b/dev-python/platformdirs/Manifest @@ -1,3 +1,5 @@ DIST platformdirs-4.5.0.tar.gz 21632 BLAKE2B 06de7250dd254e03c29d32d2dbb9da65078c480e2cbdafe3dafd5602182b4472f5078d66a30a04e22c8493904097a60c82ac734b1d0ba304088b0180878dbf7f SHA512 cefe512f8f6cbe989eacdffbbb98a964000855cca46faade62180837d7e21dd6c43eb172211e55fd04090df04e2ef416d49e92d7ccc3a0253ce2a88fc3fb9358 DIST platformdirs-4.5.1.tar.gz 21715 BLAKE2B f987cafe13a440716d73c6f98183bc1b4ae7d778931a81a4f140273d9fd1bc51e56633ff4a4381dbc2050284d9d0fa085ab54adbf504807c715f3441b8c8dab3 SHA512 33651a2aba8e844027d22f1e7a48fb32750a81a8d73807a4f10f37f1ba7ee8c8d3b2c391920328fb34fce1d3653e6d7f097a2c5e09b350a8ebfb6f21e3b1c488 DIST platformdirs-4.5.1.tar.gz.provenance 9300 BLAKE2B ede576d4aa1a03871bd448efcd9613a209651bfcd91681a7afd680cf8f75e5dd8fbe6bca298a9cb51807da06f32fd80b27ba6adedf8b504c556724bfc18c3bf9 SHA512 6ad9983c790a1765ac70544f1ab04ecae0697d883fb355b6771688ac1b564e3b0fa7e8f538e586315d8a1e2f8e970b5818ba254546c6ed578ecbc56d6bfa42b0 +DIST platformdirs-4.7.0.tar.gz 23118 BLAKE2B d34ca4b0bdd0ab7a4ec95c5422c6bfa6250d5303366e1d925034e0c13fb49f97ee1632f5e7b633cf71ed2e12380386e010a8c62514a76ba61b7f6b26b0660333 SHA512 d5e28eb05c73c7a0187ccfa9df9b3819804fcb92ba4237f3c788d1d8722d1ec0fea54708c1d976077e4189b2187bf8f19657f05dc51a515ffa53c07da07e93ca +DIST platformdirs-4.7.0.tar.gz.provenance 9603 BLAKE2B c447cf6506e949e8581ee8be02c04ce744f1073e9b01bc3df0e2c30d03b83c1ac3e846077a2ecdbd7efeae385bbd7e1dadf2acfd72adc38bf8bffe8b937357b3 SHA512 67ab398c3993028f1439a1caaf90962574c949efd7edd1617addf85d0fe4aa344f6bfc94ac9077bcd8a9cb75cd40b91759b602c510223c4b9ca2f9843cbc92e0 diff --git a/dev-python/platformdirs/platformdirs-4.7.0.ebuild b/dev-python/platformdirs/platformdirs-4.7.0.ebuild new file mode 100644 index 000000000000..559e2ecad514 --- /dev/null +++ b/dev-python/platformdirs/platformdirs-4.7.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 2021-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYPI_VERIFY_REPO=https://github.com/tox-dev/platformdirs +PYTHON_COMPAT=( python3_{11..14} python3_{13,14}t pypy3_11 ) + +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 +}
