diff options
author | Cédric Krier <cedk@gentoo.org> | 2022-03-21 11:59:27 +0100 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2022-03-21 11:59:53 +0100 |
commit | b020a08babaaf9b9945f29711723e317f7b75ba2 (patch) | |
tree | 3d06e1806b7232cab779afaf1b64b4c34ae23255 /dev-python/braintree | |
parent | dev-lang/python: Stabilize 3.7.13 amd64, #835447 (diff) | |
download | gentoo-b020a08babaaf9b9945f29711723e317f7b75ba2.tar.gz gentoo-b020a08babaaf9b9945f29711723e317f7b75ba2.tar.bz2 gentoo-b020a08babaaf9b9945f29711723e317f7b75ba2.zip |
dev-python/braintree: Add support for Python 3.10
Add tests from github archive and clean old version.
Closes: https://bugs.gentoo.org/835729
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Cédric Krier <cedk@gentoo.org>
Diffstat (limited to 'dev-python/braintree')
-rw-r--r-- | dev-python/braintree/Manifest | 3 | ||||
-rw-r--r-- | dev-python/braintree/braintree-4.12.0.ebuild | 22 | ||||
-rw-r--r-- | dev-python/braintree/braintree-4.14.0-r1.ebuild (renamed from dev-python/braintree/braintree-4.14.0.ebuild) | 13 |
3 files changed, 11 insertions, 27 deletions
diff --git a/dev-python/braintree/Manifest b/dev-python/braintree/Manifest index dc4cfab4c054..0955e5bbc8ee 100644 --- a/dev-python/braintree/Manifest +++ b/dev-python/braintree/Manifest @@ -1,2 +1 @@ -DIST braintree-4.12.0.tar.gz 77385 BLAKE2B bd9e241fe39997265286ea96fd2987f2df71138785543de3dba8257e0437a4a4188d3b53c6c783a3a782ee125264916c09226473ea4142200a0ac91e84a4a70b SHA512 d77e9c6ccd636df501d62f1af51f307fd56d7479c4d6517b9440b00d127aa1e21bd30589dd66e1b8f324cf582894fe25ab3803b880b18c4e41b349142150986b -DIST braintree-4.14.0.tar.gz 79558 BLAKE2B c20e0f1f547d2d74b1c021d3798f214b969c33eec48bb6c85e5b88377dc7e3c7b0941c4749f710c14b6444122db485ed6e98d6a2d35821f69ca34345c4e9f03b SHA512 e407f1e6afb56d03d47686bb416791668ba371f7f49dc0fa5eac6e52bc0733ef24e32ddd261e0280e24403ea82abb10c602994c75b65803e6e5522a4ae88a8ad +DIST braintree-4.14.0-gh.tar.gz 206937 BLAKE2B 449a70c7f83e2ee3cb5c9e74624605387e0c12359e81aa18041c4dd2146c1bbb899cc97c9bcf6348ea1d0494d73d8a2366e41c05479e637d777a636cc1f0cec7 SHA512 d7d77d06c1a210200732e9e8fe4a55eb25f43ca7df9ab00fdbbbf077196c1605ed825976f691440e10b23bf4727b1e8200c5bd6b2cd9a66305110440cde0edce diff --git a/dev-python/braintree/braintree-4.12.0.ebuild b/dev-python/braintree/braintree-4.12.0.ebuild deleted file mode 100644 index e2e3777fe3c7..000000000000 --- a/dev-python/braintree/braintree-4.12.0.ebuild +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright 2020-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{7..9} ) -inherit distutils-r1 - -DESCRIPTION="Braintree Python Library" -HOMEPAGE="https://developers.braintreepayments.com/python/sdk/server/overview" -SRC_URI="mirror://pypi/b/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="test" # Test runs against the development API server - -RDEPEND=">=dev-python/requests-0.11.1[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND}" - -DOCS=(README.md) diff --git a/dev-python/braintree/braintree-4.14.0.ebuild b/dev-python/braintree/braintree-4.14.0-r1.ebuild index 7b5f2df3f290..6cdfcf182545 100644 --- a/dev-python/braintree/braintree-4.14.0.ebuild +++ b/dev-python/braintree/braintree-4.14.0-r1.ebuild @@ -4,21 +4,28 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..9} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 DESCRIPTION="Braintree Python Library" HOMEPAGE="https://developers.braintreepayments.com/python/sdk/server/overview" -SRC_URI="mirror://pypi/b/${PN}/${P}.tar.gz" +# PyPI tarballs don't contain tests +SRC_URI="https://github.com/braintree/braintree_python/archive/${PV}.tar.gz -> ${P}-gh.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" -RESTRICT="test" # Test runs against the development API server RDEPEND=">=dev-python/requests-0.11.1[${PYTHON_USEDEP}]" DEPEND="${RDEPEND}" +S="${WORKDIR}/${PN}_python-${PV}" DOCS=(README.md) + +distutils_enable_tests nose + +python_test() { + distutils-r1_python_test tests/unit +} |