diff options
| -rw-r--r-- | dev-python/versioningit/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/versioningit/versioningit-3.2.0.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/versioningit/Manifest b/dev-python/versioningit/Manifest index ffeb6d17cc90..6919d7c9b523 100644 --- a/dev-python/versioningit/Manifest +++ b/dev-python/versioningit/Manifest @@ -1 +1,2 @@ DIST versioningit-3.1.3.tar.gz 213327 BLAKE2B 7263a22ab0f6dd08f66de6a13bfc15d7bafd6d4af67a90169d19c1ebc82e5381cf64edb786c940416367434ec2540d7faa64d71dec109d67bb181aaf4419890f SHA512 829d595803853e18159f4109bb10fe8335529e9c7c31ebe5948d551e88811453705637e98d8de349972f1bc37c33d3ccdf6546343c13670c7a7672a03bd14cff +DIST versioningit-3.2.0.tar.gz 217086 BLAKE2B 7989ce8fbdf469fefbd9d26533ee212f8e0fb62e7d29af51df3f7cd42e6f5845db0264ce50d044cd53e22c18469295660a7bffe83e8571d5ee4466516838ee61 SHA512 084a457b7142139f71121f76769adf2ba1672339cdd90e0c3c02a611c19d8db7b0833f9ec4395af57ea794592e2fda1815f4de4a86a7d6fd2996f2b2fba9f70c diff --git a/dev-python/versioningit/versioningit-3.2.0.ebuild b/dev-python/versioningit/versioningit-3.2.0.ebuild new file mode 100644 index 000000000000..8ea4a52f385b --- /dev/null +++ b/dev-python/versioningit/versioningit-3.2.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_FULLY_TESTED=( pypy3_11 python3_{11..13} ) +PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" python3_14 ) + +inherit distutils-r1 pypi + +DESCRIPTION="A setuptools plugin for versioning based on git tags" +HOMEPAGE=" + https://github.com/jwodder/versioningit/ + https://pypi.org/project/versioningit/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/packaging-17.1[${PYTHON_USEDEP}] + dev-vcs/git +" +BDEPEND=" + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/pydantic[${PYTHON_USEDEP}] + ' "${PYTHON_FULLY_TESTED[@]}") + ) +" + +EPYTEST_IGNORE=( + # Tries to do wheel/pip installs + test/test_end2end.py +) + +distutils_enable_tests pytest + +python_test() { + if ! has "${EPYTHON/./_}" "${PYTHON_FULLY_TESTED[@]}"; then + EPYTEST_IGNORE+=( + # Needs pydantic + test/test_methods/test_hg.py + test/test_methods/test_git.py + ) + fi + + epytest -o addopts= +} |
