diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-12-14 09:28:11 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-12-14 09:35:38 +0100 |
commit | 3fdfed4575cb637d2cd84fe328b8a9df10e1409c (patch) | |
tree | af61802a33cbcc8ca34ca0b56599c8a0984c7004 /dev-python/setuptools_scm | |
parent | dev-python/pytools: Bump to 2020.4.4 (diff) | |
download | gentoo-3fdfed4575cb637d2cd84fe328b8a9df10e1409c.tar.gz gentoo-3fdfed4575cb637d2cd84fe328b8a9df10e1409c.tar.bz2 gentoo-3fdfed4575cb637d2cd84fe328b8a9df10e1409c.zip |
dev-python/setuptools_scm: Bump to 5.0.1
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/setuptools_scm-5.0.1.ebuild | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/setuptools_scm/Manifest b/dev-python/setuptools_scm/Manifest index c191c7bc40e9..4ded01287b40 100644 --- a/dev-python/setuptools_scm/Manifest +++ b/dev-python/setuptools_scm/Manifest @@ -1,2 +1,3 @@ DIST setuptools_scm-4.1.2.tar.gz 48784 BLAKE2B 258fab119d3c37c17bd173e4ac34d338a222cee5f55f6b4756f2cb7feeb09e366f8578eead56caeeebc02d1b048199c0b560609e5aecacb23870398ae86f0cf7 SHA512 3d9d1e0479f00f6159b57f9e5b24e34df035d2009ec50d3779c77b1246aabc6d816f2a2d3e6651791316009e39dfcc8a1b84b779077c39501b9de5740abe6af6 DIST setuptools_scm-5.0.0.tar.gz 51575 BLAKE2B 60f1faefe48eda74836ad4927fa851b014a7ead7da1dcd04d102052944fb4f48e18680b9e334d2c3578fa610b3ef7efc76bb0cfc9feb0fe51868290a7abcf180 SHA512 4e8dcb1528e48e76804e3c5eec97f2052b509b672d2671545e1dcd6a1c9604bfd1ad32fc7aecc5f4c48841dda0e36b083632463b2f14b263e857482ab4df19f6 +DIST setuptools_scm-5.0.1.tar.gz 51679 BLAKE2B 33f43b437b675291ded4408dd5e68ffbf4615938f963516c0047ead023b2f2a50b28a0d91c7c72a8bdff678d9b8b292aeec36bf418b43f8d039f13560b1fbeb6 SHA512 055403539a26caeb119f3d6623e7b32ef52ccc11a39757fdd9b265ba191265346be5a062a5926a381ba47bbd1a666ffa632653ee6055050689cc38fe0f90cd0f diff --git a/dev-python/setuptools_scm/setuptools_scm-5.0.1.ebuild b/dev-python/setuptools_scm/setuptools_scm-5.0.1.ebuild new file mode 100644 index 000000000000..4235e649c0d6 --- /dev/null +++ b/dev-python/setuptools_scm/setuptools_scm-5.0.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Manage versions by scm tags via setuptools" +HOMEPAGE=" + https://github.com/pypa/setuptools_scm/ + https://pypi.org/project/setuptools-scm/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + !!<dev-python/setuptools_scm-2 + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + dev-vcs/git + !sparc? ( dev-vcs/mercurial ) )" + +python_prepare_all() { + # network access + sed -i -e 's:test_pip_download:_&:' testing/test_regressions.py || die + # all fetch specific setuptools versions + rm testing/test_setuptools_support.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + distutils_install_for_testing + pytest -v -v -x || die "Tests fail with ${EPYTHON}" +} |