diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-07-24 13:01:07 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-07-25 18:28:21 -0700 |
commit | 8226176a9ff47d04342d8fd9f48e1249b5d25559 (patch) | |
tree | 32b74d3deea73fc75f224800e0c1ac64d998c7eb /dev-python/pluggy | |
parent | profiles/package.mask: mask new pytest for testing (diff) | |
download | gentoo-8226176a9ff47d04342d8fd9f48e1249b5d25559.tar.gz gentoo-8226176a9ff47d04342d8fd9f48e1249b5d25559.tar.bz2 gentoo-8226176a9ff47d04342d8fd9f48e1249b5d25559.zip |
dev-python/pluggy: bump to 0.12.0
this release switched to importlib_metadata, had to drop keywords
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-python/pluggy')
-rw-r--r-- | dev-python/pluggy/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pluggy/files/pluggy-0.12.0-strip-setuptools_scm.patch | 41 | ||||
-rw-r--r-- | dev-python/pluggy/pluggy-0.12.0.ebuild | 29 |
3 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/pluggy/Manifest b/dev-python/pluggy/Manifest index c98fe5fa1262..e40260eda0d5 100644 --- a/dev-python/pluggy/Manifest +++ b/dev-python/pluggy/Manifest @@ -1,4 +1,5 @@ DIST pluggy-0.11.0.tar.gz 56897 BLAKE2B 2d40ca953fa0ead7516dd81007ef6f1f88b0ebe45512b031fda9ed69c953bca08109f157676ba2ed545ffb1f8f7bb18fa1b8532635d6fc929c62bf0b5de45128 SHA512 8808f5015fa6f33fcb07047c644706bf3acceed1e107dd617395e61aa9765a45e3a641e49c610ab817ebaa2c4f3b32a15bf347579206e979fe6b844ba2f684b5 +DIST pluggy-0.12.0.tar.gz 57658 BLAKE2B 53c35f16fa73ffd115c7988032593e925e538f1a49a36a0db4db406b013f6f68f293ebbe3673243748d5707e72520192775e59cb8e1bbe4f9a448a5f3ba64651 SHA512 a3a64caefc797334b73b0614e467613b99909037a62dcbfbb0cf917788ee8d12af4f43d7c371634ac6eb6f32a5aa08e51aa8179e70b5998d4d055cd7f535129f DIST pluggy-0.5.2.tar.gz 18935 BLAKE2B 8e5bbab9ed0c78a0c6da076ad03618e66780f9ff209f4d08223e7a381eb4d7573727793f4543799e0e557991d4edcdbfd22c0565b69814379806912a4631abf3 SHA512 850b1a7b9e55d46d5deb16b8bc71e3f9d6c26b78fe34379b295a9780f3da8abb3c44f524f175d0392b61fc2d36d66d156db3f499a3c1666e2ff3e3c6344153cb DIST pluggy-0.6.0.tar.gz 19678 BLAKE2B 79db59c5f0ce0dd157630d039ec50643f615789b6b993d84e9ab1bdc9ce04b32df336d88df13f13a16a1f0bd4acb7b900208e98c84f007bdc3654f9a1d5f19a2 SHA512 dd58dabe2e65eee64d62c8748c2bbd99457288e99b819eb12312f2acdb0740ac46fd08f83522bc992297b9f14eec14c216c2c9688580f68393bf6fc609e65812 DIST pluggy-0.7.1.tar.gz 47784 BLAKE2B 49eb28779717ead8963e14101cdfb830feeecff756a59f080e79e70465d48dbbc6e6100305e8b32031cefb0ba06bb10494f29bc8ddd38d4296016ecebaafccc1 SHA512 e19f6c1b3f2e711df1c8b075a2b802751afd218f1b692f08b2434c01d71c402331ff8c937550fbdfece2098f6d6856422d485f193e188916b365ded2e4087697 diff --git a/dev-python/pluggy/files/pluggy-0.12.0-strip-setuptools_scm.patch b/dev-python/pluggy/files/pluggy-0.12.0-strip-setuptools_scm.patch new file mode 100644 index 000000000000..6de5905f1103 --- /dev/null +++ b/dev-python/pluggy/files/pluggy-0.12.0-strip-setuptools_scm.patch @@ -0,0 +1,41 @@ +From dc8f1f4371f20ce0f635b46ab0976d6d76ca0c26 Mon Sep 17 00:00:00 2001 +From: Georgy Yakovlev <gyakovlev@gentoo.org> +Date: Thu, 25 Jul 2019 18:18:59 -0700 +Subject: [PATCH] strip setuptools_scm + +--- + setup.py | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 0f26fa0..9194143 100644 +--- a/setup.py ++++ b/setup.py +@@ -1,4 +1,5 @@ + from setuptools import setup ++import os + + classifiers = [ + "Development Status :: 4 - Beta", +@@ -23,14 +24,16 @@ with open("README.rst", "rb") as fd: + with open("CHANGELOG.rst", "rb") as fd: + long_description += "\n\n" + fd.read().decode("utf-8") + ++with open("src/pluggy/_version.py", 'wt') as fp: ++ fp.write('version = "{}"'.format(os.environ['PV'])) ++ + + def main(): + setup( + name="pluggy", + description="plugin and hook calling mechanisms for python", + long_description=long_description, +- use_scm_version={"write_to": "src/pluggy/_version.py"}, +- setup_requires=["setuptools-scm"], ++ version=os.environ['PV'], + license="MIT license", + platforms=["unix", "linux", "osx", "win32"], + author="Holger Krekel", +-- +2.22.0 + diff --git a/dev-python/pluggy/pluggy-0.12.0.ebuild b/dev-python/pluggy/pluggy-0.12.0.ebuild new file mode 100644 index 000000000000..9f802dd8e770 --- /dev/null +++ b/dev-python/pluggy/pluggy-0.12.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="plugin and hook calling mechanisms for python" +HOMEPAGE="https://pluggy.readthedocs.io/ https://github.com/pytest-dev/pluggy https://pypi.org/project/pluggy/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-python/importlib_metadata[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + )" + +PATCHES=( "${FILESDIR}/${PN}"-0.12.0-strip-setuptools_scm.patch ) + +python_test() { + PYTHONPATH="${BUILD_DIR}/lib" pytest -v || die "tests failed with ${EPYTHON}" +} |