From: "Cédric Krier" <cedk@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/braintree/
Date: Mon, 21 Mar 2022 11:00:00 +0000 (UTC) [thread overview]
Message-ID: <1647860393.b020a08babaaf9b9945f29711723e317f7b75ba2.cedk@gentoo> (raw)
commit: b020a08babaaf9b9945f29711723e317f7b75ba2
Author: Cédric Krier <cedk <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 21 10:59:27 2022 +0000
Commit: Cédric Krier <cedk <AT> gentoo <DOT> org>
CommitDate: Mon Mar 21 10:59:53 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b020a08b
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 <AT> gentoo.org>
dev-python/braintree/Manifest | 3 +--
dev-python/braintree/braintree-4.12.0.ebuild | 22 ----------------------
...ee-4.14.0.ebuild => braintree-4.14.0-r1.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
similarity index 60%
rename from dev-python/braintree/braintree-4.14.0.ebuild
rename to 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
+}
next reply other threads:[~2022-03-21 11:00 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 11:00 Cédric Krier [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-01 6:45 [gentoo-commits] repo/gentoo:master commit in: dev-python/braintree/ Michał Górny
2025-02-01 6:06 Michał Górny
2025-01-30 4:10 Michał Górny
2025-01-22 7:21 Michał Górny
2024-10-30 3:41 Michał Górny
2024-10-30 3:41 Michał Górny
2024-09-21 7:41 Michał Górny
2024-08-30 10:48 Petr Vaněk
2024-07-24 4:45 Michał Górny
2024-06-17 12:41 Petr Vaněk
2024-06-17 12:41 Petr Vaněk
2024-03-27 3:37 Michał Górny
2024-03-06 21:18 Michał Górny
2024-01-10 4:42 Michał Górny
2023-12-19 6:11 Michał Górny
2023-11-07 19:22 Michał Górny
2023-10-29 5:28 Michał Górny
2023-10-10 18:11 Michał Górny
2023-08-30 3:01 Michał Górny
2023-07-24 11:30 Michał Górny
2023-07-11 5:52 Michał Górny
2023-05-23 5:07 Michał Górny
2023-04-07 4:19 Michał Górny
2023-01-26 7:11 Michał Górny
2023-01-12 13:44 Cédric Krier
2023-01-12 11:38 Michał Górny
2022-11-14 4:34 Michał Górny
2022-10-15 8:04 Michał Górny
2022-10-05 5:53 Arthur Zamarin
2022-07-26 14:11 Michał Górny
2022-06-04 17:48 Michał Górny
2022-05-16 13:03 Michał Górny
2022-04-02 7:39 Arthur Zamarin
2022-02-18 9:19 Michał Górny
2021-09-05 22:02 Cédric Krier
2021-05-06 14:51 Cédric Krier
2021-03-06 9:34 Cédric Krier
2021-01-26 10:00 Michał Górny
2020-11-08 21:41 Cédric Krier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1647860393.b020a08babaaf9b9945f29711723e317f7b75ba2.cedk@gentoo \
--to=cedk@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox