mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
dev-python/platformdirs: Bump to 4.14.8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -8,3 +8,5 @@ DIST platformdirs-4.14.5.tar.gz 71464 BLAKE2B df5114b95e083c562e0756417e399df95d
|
||||
DIST platformdirs-4.14.5.tar.gz.provenance 9571 BLAKE2B f8a7e853519c2433b1c3f6d68c4fc35009490bc0b40dc157f6dbc2132c98790b56336bdc1c5326f0c4822bc0889e7a0ec44b78441661c1c1bb86dca9282c71e2 SHA512 22514d3665317ceb4ba616697ae7e771a6fe3305da9deabefade232ed385b61bf15f348d506d262f6e32af1a21e2a755ed68f4a103be47d63cc4efb5aa4826e4
|
||||
DIST platformdirs-4.14.7.tar.gz 75132 BLAKE2B 03664977179629251ad4deb5dd8ad63607b557630cdbd7c12ecf67e3d03dc61c7e8d12c71ef823d379de5bc74642497b0738375b02cc39a6397de8901231ded8 SHA512 045c303f9ebc7d5cd034bf7d55668211b3f179463ec21201abb6aeb6661c642b56bd3d3104b399a2eecfb5618b81b393f7ccd35ac2848883ba7a7c9a9e5628cc
|
||||
DIST platformdirs-4.14.7.tar.gz.provenance 9865 BLAKE2B 199a1f68f5522c3c452414ad3f15c5961f1ba60d83386b98afbb506571a2e8035bacc63ed04ae16ec50e68a2aa6476d0b9c5fdb7a9a1da9851ed9bb3bf612bc6 SHA512 cd17dcf2bef40ad4a899ff626180fcdd33d47b32b2c4e318f2ddba4b7d4eb414d75384bf09f47c74a7e27833eb5548d448d582cf81230d76aeb17d77182f20f0
|
||||
DIST platformdirs-4.14.8.tar.gz 87203 BLAKE2B 26b9481d52036a1bc73821998eb7622ba34d768871bc5ad21796e668e8623b8f4c945d89e477b330a0fc7099d98ab87cee6d4319019c582258d50a9ae104395d SHA512 cb81b1f2b5734d72274c05eb9bb17b20bc649feceeb1b22558a441b7c229f549fd0bf92d62e9e25dcb7eb6d224bd5b59894c17c177fc9ec9806947570aad6bfb
|
||||
DIST platformdirs-4.14.8.tar.gz.provenance 9759 BLAKE2B f2ff18e6e9560689388c1288b8e16f8b634db22e37981431a630a27205eac62f98122211a43e4a2e8bf8395f19edc8a2282388d75b8e6ca215c1841c470d4114 SHA512 a91718a09fafd47f60be0300394a10ebaf47c6d9d039a3249b64e010209c47cc964fdb0eee0219992e1344d501e1fb5b5e2faf7c3cef1eebe132a1ab3fb15807
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
# 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=( pypy3_12 python3_{12..15} python3_{14..15}t )
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
# workaround upstream enforcing pseudosecurity on test env
|
||||
local -x TMPDIR=/tmp
|
||||
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user