dev-python/setuptools-scm: Sync with Gentoo

It's from Gentoo commit 74cb28bc1b23e3169b8aef60bf9b1b9c57d00eef.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2025-10-13 07:07:40 +00:00 committed by Krzesimir Nowak
parent 427ad95461
commit 7e73ad909d
2 changed files with 55 additions and 0 deletions

View File

@ -1,2 +1,4 @@
DIST setuptools_scm-8.3.1.tar.gz 78088 BLAKE2B 6cedb55fc16830d12a28fe5b662c371b134bc4d7ef0e6de446b71152e5d83a031cf763b0753042c96745e82bf9dc42fa7cfee05a9a7e7824a4cf659b0a401a51 SHA512 e924abf81c7ee466241c5d66c39b416c8b308f01df9e1498c55ad6ed9812fbf883d8bcafd6fdcdcb96c5ec42b868ae04088de1870ca09a650fa07eb3ea9901c8
DIST setuptools_scm-9.2.0.tar.gz 201229 BLAKE2B b2633c1a4f5a8a4b0ff23bf9b866e9bcb5f5c7b3a5fff9159d207b7405f8e3d76efddf3dda6a3083efdbd83bd3ff9d3399ebd2bcbe87598a93d36494ac169753 SHA512 da76f5440d03cadc545d0ed4275476c2d5b42013a100ee3948e77a05fdb61087fe208785bbb460d96423da7f6849b5eab45914f0054b21fd1d0c36ce0eac1795
DIST setuptools_scm-9.2.1.tar.gz 202821 BLAKE2B 5780ac8ad0e1c35b9a1d34ecfba6d7c8a0776153356d66371aa24700ba2b1849ee7097652d8566123fc975bd81fd69e7201e636dfa06bb3aa05b8d79ce0fabe8 SHA512 a50559e6d12474056a30dec8276c637302ce33e54f88ce508ef0a93158ed8b15d07e108dc907e3ad2e315444643639177ef049759003ef34d6cc1243d21e312e
DIST setuptools_scm-9.2.1.tar.gz.provenance 9513 BLAKE2B d885e11b12bf8087fbf1f134c11f05210f5fc25a2b0b3e2084d7a48da07eeb62ee5b68df229eff2fd3c00856e56216d4e1c2c2220b4ae7c7870020723aa314b5 SHA512 2c0bb8ade54e92d304333e04cacdc40ecb35cad2a5f024a0b349dc2a295ea327fdb93cc24ba155e71cd308cfca404f7288c4e5f2dd1b6eab2daafed24669f676

View File

@ -0,0 +1,53 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
EAPI=8
DISTUTILS_USE_PEP517=standalone
PYPI_VERIFY_REPO=https://github.com/pypa/setuptools-scm
PYTHON_COMPAT=( python3_{11..14} python3_{13,14}t pypy3_11 )
inherit distutils-r1 pypi
DESCRIPTION="Manage versions by scm tags via setuptools"
HOMEPAGE="
https://github.com/pypa/setuptools-scm/
https://pypi.org/project/setuptools-scm/
"
LICENSE="MIT"
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"
# there's an optional dep on rich for cute logs
RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]
>=dev-python/setuptools-64[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/build[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
dev-vcs/git
)
"
EPYTEST_PLUGINS=( pytest-timeout )
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# the usual nondescript gpg-agent failure
testing/test_git.py::test_git_getdate_signed_commit
# fetching from the Internet
testing/test_integration.py::test_xmlsec_download_regression
testing/test_regressions.py::test_pip_download
# calls flake8, unpredictable
testing/test_functions.py::test_dump_version_flake8
# incompatible with current mypy version
testing/test_functions.py::test_dump_version_mypy
)