commit:     4c37bf8a5f4a73903bc9513016ce79b056cbaa6c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  7 01:54:05 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul  7 03:14:56 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c37bf8a

dev-python/platformdirs: Bump to 3.8.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/platformdirs/Manifest                  |  1 +
 dev-python/platformdirs/platformdirs-3.8.1.ebuild | 49 +++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/dev-python/platformdirs/Manifest b/dev-python/platformdirs/Manifest
index 63125dfde14b..6b0a6f755190 100644
--- a/dev-python/platformdirs/Manifest
+++ b/dev-python/platformdirs/Manifest
@@ -4,3 +4,4 @@ DIST platformdirs-3.5.3.tar.gz 17780 BLAKE2B 
bffcc38623022f24175d1cb7097e65f7320
 DIST platformdirs-3.6.0.tar.gz 18187 BLAKE2B 
22e6da0d01e3862518052eba5a20efca4bb365619a6acdbd7722367b5acc4724a06f3baa8a57e8ba2d1957d9be35fd0074db89cc5732596e05bd44c2b5248a41
 SHA512 
f760e0fec11ca040e2138fc6c8423f9a39106fdf1f41811a19598892fbda31dc75cdeb4138e6355d87bbeeb879fd42ac2eee6e337e6093e59150ee26e73e4d41
 DIST platformdirs-3.7.0.tar.gz 18322 BLAKE2B 
dc1d68c0149e29d043373904616d9d82aea12b62da639cd2daf1d2134b28338200bfd44bdd1750d8ff0202608e92764023dbd9f899f4602d074e246fd3eb10ab
 SHA512 
a7c392787f7db55393888fc5a5e2b7ace131a3ed09d063169630a5cd86f0a9ec5569b2b5de599d2844f3bad439b6a36deb61cbc209faa0913c30c0803ad48ac2
 DIST platformdirs-3.8.0.tar.gz 18451 BLAKE2B 
cac717c3968fd20b7bdac464443cedcdc50b04b732ae8a212fcb946170ad1553ffae82cbdca05c2cf01ebbc4383216cd0f0afe84cddc2ce6107f10fd40213542
 SHA512 
64937f3e9e03a9ec8dc2068777dfe553ec09cef62ce53a753608bd9a73e0afaa4489c98046e7b4b3fdbded237cf2813bfd306a6d5ad5788031b6857d8d4fa430
+DIST platformdirs-3.8.1.tar.gz 18533 BLAKE2B 
d1d669fe76e52637f59c32ddb93920988821a1f1720d6b91042f80abedafc1d6dbcd5f744f22f5502121dc0b12285001cbde63e923e8159f139342a9497459e2
 SHA512 
85d7781e4ef0755bf9a7a4d90b92ea06f497081ec4c5438780f12876a1006b2e591c1b182f6648cad19039d1bd7611cf0c2215015653bafbad2cc529f27d94e7

diff --git a/dev-python/platformdirs/platformdirs-3.8.1.ebuild 
b/dev-python/platformdirs/platformdirs-3.8.1.ebuild
new file mode 100644
index 000000000000..70e821d796fb
--- /dev/null
+++ b/dev-python/platformdirs/platformdirs-3.8.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="A small Python module for determining appropriate 
platform-specific dirs"
+HOMEPAGE="
+       https://pypi.org/project/platformdirs/
+       https://github.com/platformdirs/platformdirs/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
+
+BDEPEND="
+       test? (
+               dev-python/appdirs[${PYTHON_USEDEP}]
+               dev-python/pytest-mock[${PYTHON_USEDEP}]
+       )
+"
+
+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
+}

Reply via email to