mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-04 04:57:07 -08:00
47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
Bash
# Copyright 2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYPI_VERIFY_REPO=https://github.com/pypa/setuptools-scm
|
|
PYTHON_COMPAT=( pypy3_12 python3_{12..15} python3_{14..15}t )
|
|
|
|
inherit distutils-r1 pypi
|
|
|
|
DESCRIPTION="Core VCS versioning functionality from setuptools-scm"
|
|
HOMEPAGE="
|
|
https://github.com/pypa/setuptools-scm/
|
|
https://pypi.org/project/vcs-versioning/
|
|
"
|
|
|
|
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"
|
|
|
|
RDEPEND="
|
|
>=dev-python/packaging-26.2[${PYTHON_USEDEP}]
|
|
"
|
|
BDEPEND="
|
|
${RDEPEND}
|
|
test? (
|
|
>=dev-python/setuptools-scm-10.1.1[${PYTHON_USEDEP}]
|
|
)
|
|
"
|
|
|
|
EPYTEST_PLUGINS=( pytest-timeout )
|
|
EPYTEST_XDIST=1
|
|
distutils_enable_tests pytest
|
|
|
|
EPYTEST_DESELECT=(
|
|
# the usual nondescript gpg-agent failure
|
|
testing_vcs/test_git.py::test_git_getdate_signed_commit
|
|
)
|
|
|
|
src_prepare() {
|
|
distutils-r1_src_prepare
|
|
|
|
# increase the test timeout
|
|
sed -i -e '/timeout/s:10:60:' src/vcs_versioning/_test_utils.py || die
|
|
}
|