diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
commit | deba8115d2c2af26df42966b91ef04ff4dd79cde (patch) | |
tree | 9a48f42594e1a9e6b2020d5535a784314434d7a7 /dev-python/versioneer | |
parent | 38423c67c8a23f6a1bc42038193182e2da3116eb (diff) |
gentoo resync : 14.05.2020
Diffstat (limited to 'dev-python/versioneer')
-rw-r--r-- | dev-python/versioneer/Manifest | 2 | ||||
-rw-r--r-- | dev-python/versioneer/files/versioneer-0.18-fix_test_git.patch | 21 | ||||
-rw-r--r-- | dev-python/versioneer/versioneer-0.18-r1.ebuild | 38 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/versioneer/Manifest b/dev-python/versioneer/Manifest index 1be90c4a0d5f..cb9aad3ce0f4 100644 --- a/dev-python/versioneer/Manifest +++ b/dev-python/versioneer/Manifest @@ -1,3 +1,5 @@ +AUX versioneer-0.18-fix_test_git.patch 788 BLAKE2B e910a651eec861ee5fffd9f7f05860b468154fe741f1b04504221149f48ca8bc241ba383fabafce6199387839daf7373aa9912456ce9ac688db295ebe7d437d7 SHA512 44ff35bad67b41c7be786a9d8f3b6958fffb71d598eb17ce172defbf1dbda9ac40ecbfeb790900a4a8052905fc510ee5b640039fa0fcaf408ef73c3e01eea57b DIST versioneer-0.18.tar.gz 40552 BLAKE2B 640c010958a0178ec5ec5f06c986d83e3bc2f49df95583c4c90d3058449dcca5c7b5421ee5f2f56905b1d949bfe3bfbd87fb23ebc868ede591d078d811ccc2b3 SHA512 8d4522932b1f6aa1c13211008a57a572d54ea677cbdecd7d563ef8f77c76ed5d59f58f2e3be38a01e8cd102c264baf5c8949e9c17ea98d686ac497f8ad8b0011 +EBUILD versioneer-0.18-r1.ebuild 886 BLAKE2B e2cf102685b296fbc49b68f57a70c57981e9f6692ce7d90010846ac0c2257b8451e0e67ff27ebe703d6eb336162c688fc87be2162ce18de51e2afd10d52ab9b3 SHA512 380e93ce573e6f4ad012d9c5e59435fee126d2db59c65c145ae0a9343dafb8999143dbe422f21aef87a89e5feb24f8e8bc8a4faf12dbc3705b05ac609c5ef470 EBUILD versioneer-0.18.ebuild 797 BLAKE2B 29682ad7ff23ff788e256a60de4defb63e31e58efd010a899a34a4ddb85a882c0ad7dde1b42e5ef2f6f246063be2749d71d838bd4fd18abeee35a6d4543896c6 SHA512 f7658d3d3f256292040928597d9241d75dc1d13eddbd33a272bb5de537ffb0f4a1a5b4fb1614f6dc6bb60ab491ef0b3e856cfa22b3aeaa213ed9fa7c1847a55c MISC metadata.xml 414 BLAKE2B 409cab20af609a75c5795436650c1c5f83715a9f966a243089fc54fee8b726705e90a220193cfa0a61ee947599377853edd245384423bef20a925e60ea99f65d SHA512 000b7ccae83bf3951a36e8c5743759c7f02d812ed808bacb4365bbb317c16475c1b443b22b174b3411243603bbf53844cfec67aebc61350e82261cc98a99f7d0 diff --git a/dev-python/versioneer/files/versioneer-0.18-fix_test_git.patch b/dev-python/versioneer/files/versioneer-0.18-fix_test_git.patch new file mode 100644 index 000000000000..35c45979e6f1 --- /dev/null +++ b/dev-python/versioneer/files/versioneer-0.18-fix_test_git.patch @@ -0,0 +1,21 @@ +--- a/test/git/test_git.py 2020-04-11 23:36:18.858361255 -0700 ++++ b/test/git/test_git.py 2020-04-11 23:47:01.929316371 -0700 +@@ -8,7 +8,8 @@ + import tempfile + + +-from pkg_resources import parse_version, SetuptoolsLegacyVersion ++from pkg_resources import parse_version ++from packaging.version import LegacyVersion + + sys.path.insert(0, "src") + import common +@@ -590,7 +591,7 @@ + def assertPEP440(self, got, state, tree, runtime): + where = "/".join([state, tree, runtime]) + pv = parse_version(got) +- self.assertFalse(isinstance(pv, SetuptoolsLegacyVersion), ++ self.assertFalse(isinstance(pv, LegacyVersion), + "%s: '%s' was not pep440-compatible" + % (where, got)) + self.assertEqual(str(pv), got, diff --git a/dev-python/versioneer/versioneer-0.18-r1.ebuild b/dev-python/versioneer/versioneer-0.18-r1.ebuild new file mode 100644 index 000000000000..7836f1d23a3f --- /dev/null +++ b/dev-python/versioneer/versioneer-0.18-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Easy VCS-based management of project version strings" +HOMEPAGE="https://pypi.org/project/versioneer/ https://github.com/warner/python-versioneer" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="public-domain" +KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + dev-python/packaging[${PYTHON_USEDEP}] + dev-vcs/git + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-0.18-fix_test_git.patch" +) + +python_test() { + esetup.py make_versioneer + + git config --global user.email "you@example.com" + git config --global user.name "Your Name" + + ${PYTHON} test/git/test_git.py -v || die +} |