diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-01-31 07:46:42 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-01-31 07:46:42 +0100 |
commit | bbf8ce0195b93715fb255e6d69b83a89085770f6 (patch) | |
tree | a45d4ef76b0afdfdd7a6012a04c29c703f3638d1 /dev-python/platformdirs | |
parent | package.mask: Mask >=dev-python/pytest-8 (diff) | |
download | gentoo-bbf8ce0195b93715fb255e6d69b83a89085770f6.tar.gz gentoo-bbf8ce0195b93715fb255e6d69b83a89085770f6.tar.bz2 gentoo-bbf8ce0195b93715fb255e6d69b83a89085770f6.zip |
dev-python/platformdirs: Bump to 4.2.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/platformdirs')
-rw-r--r-- | dev-python/platformdirs/Manifest | 1 | ||||
-rw-r--r-- | dev-python/platformdirs/platformdirs-4.2.0.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/platformdirs/Manifest b/dev-python/platformdirs/Manifest index 1df500dc440b..41e868b2e58a 100644 --- a/dev-python/platformdirs/Manifest +++ b/dev-python/platformdirs/Manifest @@ -1 +1,2 @@ DIST platformdirs-4.1.0.tar.gz 19760 BLAKE2B d2deeb3d8300a92af0c0d69bcee2c02210d0cd32925ba7fdbd992723e13deba2a432bc7cb5eaf83ca9f576888d54d237b17028b25554bd65f044e61c0a353384 SHA512 f9cc171e7861cd9018be179963fc5d0316dc39a953b67dccf946937077704eb80955cca0d51c0edd8b4f931f705f719767f2b888be4276278891a099b5928fa2 +DIST platformdirs-4.2.0.tar.gz 20055 BLAKE2B 07338fc1ad6f5edf3dfe9de9e74326af4c22a4b6db0979a2b0926d248e7bc27f6f40e9e47e62979657c0804e3d296dfba5b18f57fa64b1fdcd205d52ae21fe17 SHA512 615742163cc4eb0ee97c4dba069d59a08e0056e05a3fbeab32dcab854ed56976e8707dd70afd65dbd0732bf1ad1a42c565fb3d980b7b668aa2cdecc5cc1de4f0 diff --git a/dev-python/platformdirs/platformdirs-4.2.0.ebuild b/dev-python/platformdirs/platformdirs-4.2.0.ebuild new file mode 100644 index 000000000000..a4620b76de0d --- /dev/null +++ b/dev-python/platformdirs/platformdirs-4.2.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 2021-2024 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 +} |