mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-20 20:01:09 +02:00
dev-python/trove-classifiers: Sync with Gentoo
It's from Gentoo commit d3c4446cc3654fd3c96cc7fab785d54cf10bbd14. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
073e01aab1
commit
5db4ab0b81
@ -1 +1,3 @@
|
|||||||
DIST trove_classifiers-2025.5.9.12.tar.gz 16940 BLAKE2B f6143f341d280eca611269c1a04b7f795d8f8733e97518d81d5872b8e1e13f745f7428737993a5c50285de24f56f899737d05fe073c683ddd69765b6081a6ebe SHA512 ee858f52c08b867fe4845ebb19f9b431308d216b5313e2bc030d63340860205d40125ef6cee218f734ccd49e5ae36011c8e3415f03d0ace182cb518ed5f2318d
|
DIST trove_classifiers-2025.5.9.12.tar.gz 16940 BLAKE2B f6143f341d280eca611269c1a04b7f795d8f8733e97518d81d5872b8e1e13f745f7428737993a5c50285de24f56f899737d05fe073c683ddd69765b6081a6ebe SHA512 ee858f52c08b867fe4845ebb19f9b431308d216b5313e2bc030d63340860205d40125ef6cee218f734ccd49e5ae36011c8e3415f03d0ace182cb518ed5f2318d
|
||||||
|
DIST trove_classifiers-2025.8.26.11.tar.gz 16960 BLAKE2B 890b9ab53dd1addc1bc1d3f73d68e6ff64eaa02f2583a8ef566f8c66c89ea6dbc8a628949cb1bd7ce605f1bd54f8de487787b21ab539b337f6011c97b80944c2 SHA512 36bab8810ecd3be1783adfaf5bcb65aacdd117417e929fcfe73f2a798f71fe34722dc9b2d8dcb6d9e78b8690f83f952f4b780031b063e683c8aa71dac1d6240c
|
||||||
|
DIST trove_classifiers-2025.8.6.13.tar.gz 16932 BLAKE2B f4567cd2362897fe6cacea6c7a554bd1501d5ac176b7cc83d55a53a53599f8996efaa7c0d57f6911ed0a66f441d24127391bfab0f87ff81ea0d0ac4e5c46905e SHA512 14c9c4b082f4f92d02b84103e5fbb205ea8a716635e1db77c549776c6ce5caa46d4891bd79702f80323e0b140f65d2c9e0779cc168717c938fd471c046ae3102
|
||||||
|
@ -0,0 +1,46 @@
|
|||||||
|
# Copyright 2022-2025 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=flit
|
||||||
|
PYTHON_COMPAT=( pypy3_11 python3_{11..14} python3_{13,14}t )
|
||||||
|
|
||||||
|
inherit distutils-r1 pypi
|
||||||
|
|
||||||
|
DESCRIPTION="Canonical source for classifiers on PyPI (pypi.org)"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/pypa/trove-classifiers/
|
||||||
|
https://pypi.org/project/trove-classifiers/
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
|
|
||||||
|
EPYTEST_PLUGINS=()
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
grep -q 'build-backend = "setuptools' pyproject.toml ||
|
||||||
|
die "Upstream changed build-backend, recheck"
|
||||||
|
# write a custom pyproject.toml to ease hatchling bootstrap
|
||||||
|
cat > pyproject.toml <<-EOF || die
|
||||||
|
[build-system]
|
||||||
|
requires = ["flit_core >=3.2,<4"]
|
||||||
|
build-backend = "flit_core.buildapi"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "trove-classifiers"
|
||||||
|
version = "${PV}"
|
||||||
|
description = "Canonical source for classifiers on PyPI (pypi.org)."
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
trove-classifiers = "trove_classifiers.__main__:cli"
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
epytest
|
||||||
|
"${EPYTHON}" -m tests.lib || die
|
||||||
|
}
|
@ -0,0 +1,46 @@
|
|||||||
|
# Copyright 2022-2025 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=flit
|
||||||
|
PYTHON_COMPAT=( pypy3_11 python3_{11..14} python3_{13,14}t )
|
||||||
|
|
||||||
|
inherit distutils-r1 pypi
|
||||||
|
|
||||||
|
DESCRIPTION="Canonical source for classifiers on PyPI (pypi.org)"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/pypa/trove-classifiers/
|
||||||
|
https://pypi.org/project/trove-classifiers/
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
|
|
||||||
|
EPYTEST_PLUGINS=()
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
grep -q 'build-backend = "setuptools' pyproject.toml ||
|
||||||
|
die "Upstream changed build-backend, recheck"
|
||||||
|
# write a custom pyproject.toml to ease hatchling bootstrap
|
||||||
|
cat > pyproject.toml <<-EOF || die
|
||||||
|
[build-system]
|
||||||
|
requires = ["flit_core >=3.2,<4"]
|
||||||
|
build-backend = "flit_core.buildapi"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "trove-classifiers"
|
||||||
|
version = "${PV}"
|
||||||
|
description = "Canonical source for classifiers on PyPI (pypi.org)."
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
trove-classifiers = "trove_classifiers.__main__:cli"
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
epytest
|
||||||
|
"${EPYTHON}" -m tests.lib || die
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user