1 |
commit: d781a3885407619876ba4686ed76cf6a869e0fa0 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 11 15:06:35 2020 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 15:29:38 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d781a388 |
7 |
|
8 |
dev-python/isort: bump to 5.6.3, add Python 3.9 support, drop PyPy3 |
9 |
|
10 |
pylama's tests require mypy which doesn't support PyPy3. |
11 |
|
12 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
13 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
14 |
|
15 |
dev-python/isort/Manifest | 1 + |
16 |
dev-python/isort/isort-5.6.3.ebuild | 51 +++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 52 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/isort/Manifest b/dev-python/isort/Manifest |
20 |
index b741e9cae55..b716e2ff9e4 100644 |
21 |
--- a/dev-python/isort/Manifest |
22 |
+++ b/dev-python/isort/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST isort-4.3.15.tar.gz 67949 BLAKE2B e78960518928cd74c15733bbc14bf066798ecbcc3e906754c10e352e7b88843451a1d0616d1b450100c77e95974f863951d640c9568277e867fcdfba8f44abdb SHA512 a5774d4f3c49c978e9043e52681e80011591422e60178d72074142725d9d7fa5065553686fd42bffe9e71b38b2b5bdaaa6f20e32cd8dbe33beb9431c397d78e5 |
25 |
DIST isort-4.3.21_p2.tar.gz 158539 BLAKE2B 316703ca754c939e4af0db4a1060fb13a5164797a672b3faeb585a81fa0c86453fb0f1953b789661588cd0f04267a28837d46a88093a838391f752afa43e9f8b SHA512 fc2aa00c87196864864d2516b8be7acdedcf40d71d1931510e4b878dbd2b6da0b579661b50221f03f4aa5560c8bf23d5e1e10a2694d2b741ca09a92e40a4c687 |
26 |
+DIST isort-5.6.3.tar.gz 161712 BLAKE2B ffbc2977016807d2bd5b1644377efad021af2ad27fd0e27feae1e5dfdfd112c7b5bf4b296ebf47ea6bfcbfe7f56cf3bfa8e1e7cf03963935660e678223397afb SHA512 fa2d9be306d03fc802aab3915bee2c41f4fe0c28353d9d99aa6604755e1602027cd81afca92b4302f80497c88a9dcb2701ec02ca55a5f9a2866669a68368d957 |
27 |
|
28 |
diff --git a/dev-python/isort/isort-5.6.3.ebuild b/dev-python/isort/isort-5.6.3.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..b8b55a23b14 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/isort/isort-5.6.3.ebuild |
33 |
@@ -0,0 +1,51 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{7..9} ) |
40 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="A python utility/library to sort imports" |
45 |
+HOMEPAGE="https://pypi.org/project/isort/" |
46 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+ |
52 |
+BDEPEND=" |
53 |
+ test? ( |
54 |
+ dev-python/black[${PYTHON_USEDEP}] |
55 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
56 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
57 |
+ dev-python/pylama[${PYTHON_USEDEP}] |
58 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
59 |
+ ) |
60 |
+" |
61 |
+ |
62 |
+distutils_enable_tests pytest |
63 |
+ |
64 |
+python_test() { |
65 |
+ # Some tests run the "isort" command |
66 |
+ distutils_install_for_testing |
67 |
+ local skipped_tests=( |
68 |
+ # Fails without -s, run it separately to avoid unnecessary output |
69 |
+ tests/unit/test_importable.py |
70 |
+ # Excluded from upstream's test script |
71 |
+ tests/unit/test_deprecated_finders.py |
72 |
+ # Require "example_isort_formatting_plugin", we're not going |
73 |
+ # to add an example package just to run a few tests |
74 |
+ tests/unit/test_literal.py::test_value_assignment_list |
75 |
+ tests/unit/test_ticketed_features.py::test_isort_supports_formatting_plugins_issue_1353 |
76 |
+ tests/unit/test_ticketed_features.py::test_isort_literals_issue_1358 |
77 |
+ # Same here: requires "example_shared_isort_profile" |
78 |
+ tests/unit/test_ticketed_features.py::test_isort_supports_shared_profiles_issue_970 |
79 |
+ ) |
80 |
+ pytest -s tests/unit/test_importable.py \ |
81 |
+ || die "Tests failed with ${EPYTHON}" |
82 |
+ pytest -vv tests/unit ${skipped_tests[@]/#/--deselect } \ |
83 |
+ || die "Tests failed with ${EPYTHON}" |
84 |
+} |