Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/twython/
Date: Sat, 26 Feb 2022 11:39:48
Message-Id: 1645875578.4793680d705569f3362b956fc2c94fc48a43c4c4.mgorny@gentoo
1 commit: 4793680d705569f3362b956fc2c94fc48a43c4c4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 26 11:24:41 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 26 11:39:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4793680d
7
8 dev-python/twython: Migrate to PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/twython/twython-3.9.1-r1.ebuild | 41 ++++++++++++++++++++++++++++++
13 1 file changed, 41 insertions(+)
14
15 diff --git a/dev-python/twython/twython-3.9.1-r1.ebuild b/dev-python/twython/twython-3.9.1-r1.ebuild
16 new file mode 100644
17 index 000000000000..6e483bc423d5
18 --- /dev/null
19 +++ b/dev-python/twython/twython-3.9.1-r1.ebuild
20 @@ -0,0 +1,41 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="An easy way to access Twitter data with Python"
32 +HOMEPAGE="https://github.com/ryanmcgrath/twython"
33 +SRC_URI="
34 + https://github.com/ryanmcgrath/twython/archive/v${PV}.tar.gz
35 + -> ${P}.gh.tar.gz"
36 +
37 +SLOT="0"
38 +LICENSE="MIT"
39 +KEYWORDS="~amd64 ~x86"
40 +
41 +RDEPEND="
42 + >=dev-python/requests-2.1.0[${PYTHON_USEDEP}]
43 + >=dev-python/requests-oauthlib-0.4.0[${PYTHON_USEDEP}]
44 +"
45 +BDEPEND="
46 + test? (
47 + dev-python/responses[${PYTHON_USEDEP}]
48 + )
49 +"
50 +
51 +distutils_enable_tests pytest
52 +
53 +EPYTEST_DESELECT=(
54 + # tests are largely unmaintained and outdated
55 + tests/test_core.py::TwythonAPITestCase::test_get_lastfunction_header_should_return_header
56 + tests/test_core.py::TwythonAPITestCase::test_request_should_handle_400_for_missing_auth_data
57 + tests/test_core.py::TwythonAPITestCase::test_request_should_handle_400_that_is_not_auth_related
58 + tests/test_core.py::TwythonAPITestCase::test_request_should_handle_401
59 + tests/test_core.py::TwythonAPITestCase::test_request_should_handle_rate_limit
60 + tests/test_core.py::TwythonAPITestCase::test_sends_correct_accept_encoding_header
61 +)