1 |
commit: b091d6a6ad5c70f8d72ab62932bfbbdcb090f2dd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 17 06:17:28 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 17 06:17:44 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b091d6a6 |
7 |
|
8 |
dev-python/twython: Bump to 3.9.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/twython/Manifest | 1 + |
13 |
dev-python/twython/twython-3.9.1.ebuild | 37 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 38 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/twython/Manifest b/dev-python/twython/Manifest |
17 |
index 5dd6430e989..ba0c3360882 100644 |
18 |
--- a/dev-python/twython/Manifest |
19 |
+++ b/dev-python/twython/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST twython-3.7.0.gh.tar.gz 373183 BLAKE2B a84e10c1d61736af3e93f265d92104dac15d5f7a43d7fbdce4e8c58b641f671a1c4c10f44c5b6d6ce9f0646860d35c14414b17e84daeb74f6e2c8871207b6fd4 SHA512 33eb35ea811ec1964fcd51fad54ba53d60e6caf3b5b7d11ae138f7228be9fb1eca7a02b1c6699a62cc2f6c39e035cb5a28f53ef67a98d019cdf91c9874867871 |
22 |
+DIST twython-3.9.1.gh.tar.gz 372933 BLAKE2B 3db7f37e284ec83546e4f93a23e34c21ce9853e6206b62353e36b738ba591acadc55fd3dbbdf8cf7d74e63ab9966b9cdc7f49c5caa06e165bb7107b350509835 SHA512 e64d623dfa7ba2e81e09f9d8e784851b44201493d128ec576c4b5a9abc88debf1ca78f8a12933e0cd0a6b495012fa951bb62ea5d92db11186b37747b8576174f |
23 |
|
24 |
diff --git a/dev-python/twython/twython-3.9.1.ebuild b/dev-python/twython/twython-3.9.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..88ff3fa034f |
27 |
--- /dev/null |
28 |
+++ b/dev-python/twython/twython-3.9.1.ebuild |
29 |
@@ -0,0 +1,37 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="An easy way to access Twitter data with Python" |
39 |
+HOMEPAGE="https://github.com/ryanmcgrath/twython" |
40 |
+SRC_URI=" |
41 |
+ https://github.com/ryanmcgrath/twython/archive/v${PV}.tar.gz |
42 |
+ -> ${P}.gh.tar.gz" |
43 |
+ |
44 |
+SLOT="0" |
45 |
+LICENSE="MIT" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ >=dev-python/requests-2.1.0[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/requests-oauthlib-0.4.0[${PYTHON_USEDEP}]" |
51 |
+BDEPEND=" |
52 |
+ test? ( dev-python/responses[${PYTHON_USEDEP}] )" |
53 |
+ |
54 |
+distutils_enable_tests pytest |
55 |
+ |
56 |
+python_test() { |
57 |
+ local deselect=( |
58 |
+ # tests are largely unmaintained and outdated |
59 |
+ tests/test_core.py::TwythonAPITestCase::test_get_lastfunction_header_should_return_header |
60 |
+ tests/test_core.py::TwythonAPITestCase::test_request_should_handle_400_for_missing_auth_data |
61 |
+ tests/test_core.py::TwythonAPITestCase::test_request_should_handle_400_that_is_not_auth_related |
62 |
+ tests/test_core.py::TwythonAPITestCase::test_request_should_handle_401 |
63 |
+ tests/test_core.py::TwythonAPITestCase::test_request_should_handle_rate_limit |
64 |
+ ) |
65 |
+ epytest ${deselect[@]/#/--deselect } |
66 |
+} |