diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-03-03 06:33:34 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-03-03 06:53:13 +0100 |
commit | 20a310b95d42e4ccef8eaa539c7654c39394a0cb (patch) | |
tree | ce2c4b5ed8ee6ac8acf45190b83fadce909883ca /dev-python/setuptools-scm | |
parent | dev-python/setuptools_scm: Use pypi.eclass (diff) | |
download | gentoo-20a310b95d42e4ccef8eaa539c7654c39394a0cb.tar.gz gentoo-20a310b95d42e4ccef8eaa539c7654c39394a0cb.tar.bz2 gentoo-20a310b95d42e4ccef8eaa539c7654c39394a0cb.zip |
Rename dev-python/{setuptools_scm → setuptools-scm}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/setuptools-scm')
-rw-r--r-- | dev-python/setuptools-scm/Manifest | 1 | ||||
-rw-r--r-- | dev-python/setuptools-scm/metadata.xml | 13 | ||||
-rw-r--r-- | dev-python/setuptools-scm/setuptools-scm-7.1.0.ebuild | 58 |
3 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/setuptools-scm/Manifest b/dev-python/setuptools-scm/Manifest new file mode 100644 index 000000000000..1098d86add27 --- /dev/null +++ b/dev-python/setuptools-scm/Manifest @@ -0,0 +1 @@ +DIST setuptools_scm-7.1.0.tar.gz 71904 BLAKE2B be5ae215dadcc290290762b732434258409ecc2d71cdf1332ffe73431effae7cbc33e052a718efd952be79350171ed3e468492fc719bc08750dc23364fb0ee9d SHA512 bd7260672c213db6b8c5842dbb6ac69e69ce040777865c935033971f65d905bd8e6b54e174190a924e452c302e69d4c1de231cbc8f603176ba013a739840dad3 diff --git a/dev-python/setuptools-scm/metadata.xml b/dev-python/setuptools-scm/metadata.xml new file mode 100644 index 000000000000..c5b76d75363f --- /dev/null +++ b/dev-python/setuptools-scm/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">setuptools-scm</remote-id> + <remote-id type="github">pypa/setuptools_scm</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/setuptools-scm/setuptools-scm-7.1.0.ebuild b/dev-python/setuptools-scm/setuptools-scm-7.1.0.ebuild new file mode 100644 index 000000000000..87fa9e5896d7 --- /dev/null +++ b/dev-python/setuptools-scm/setuptools-scm-7.1.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep +EAPI=7 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} pypy3 ) + +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 ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +RDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{8..10}) + dev-python/typing-extensions[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-vcs/git + !sparc? ( + dev-vcs/mercurial + ) + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # the usual nondescript gpg-agent failure + testing/test_git.py::test_git_getdate_signed_commit + + # fetching from the Internet + testing/test_regressions.py::test_pip_download + ) + + if has_version dev-python/nose; then + EPYTEST_DESELECT+=( + # https://bugs.gentoo.org/892639 + testing/test_integration.py::test_pyproject_support + ) + fi + + epytest +} |