1 |
commit: 71154fcc98b032ca7731c8a67c4b8458bba9840f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 9 06:59:44 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 9 07:26:13 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71154fcc |
7 |
|
8 |
dev-python/isort: Bump to 5.9.2 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/isort/Manifest | 1 + |
13 |
dev-python/isort/isort-5.9.2.ebuild | 59 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/isort/Manifest b/dev-python/isort/Manifest |
17 |
index 3a2d0fd4ff3..e3fec6796a6 100644 |
18 |
--- a/dev-python/isort/Manifest |
19 |
+++ b/dev-python/isort/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST isort-5.8.0.tar.gz 167927 BLAKE2B 59b9ee4e63e231026e25833ef8bc4a782ad7b30622d1f6b61fe177fbf0f8663ca953f68cf168abb407d3cb90fe98e29540ec3a8933a5df2ca7ba3e938ba4282f SHA512 ffeee045b5328fa410673464b2ca22d9cd1ba8dd34eff9a430b93e9ce72033100e32e3373308438bcb82b8eb7deea1f2087091e111b1204e35791958ca6944c4 |
22 |
DIST isort-5.9.1.gh.tar.gz 727733 BLAKE2B dc207ac24b586eb5c4c2bd546c0f2ab336c901563e3f2c92d917cf81bc94634c23a20dfe787e65c41fd3aec835d3fdc96721ed579c282b4cb0719afa7f50f9a3 SHA512 e48e08835a71271ab01e52e2c44ecef475aa270ab7242aff4f9ce82bcd5bc8354e2d8a717ccf995172102809198f6dfc9786d8c64e33afc9ae9a4e981ac51feb |
23 |
+DIST isort-5.9.2.gh.tar.gz 728644 BLAKE2B 37fa16884e987569bceabf71d5d51b5dcf3c26a28df22b07eb5adb8f571901f5f2d0b258c09dfe720a0579836e90ffa46b1d087c536532841ff48848dd71f9b0 SHA512 286536ae5e7328085618ba37d8809b6cd46595b269755c20da0e8f5f866b810663909ed557f16d76c3d5e89b85393264aad7b1d7093cbdb33e808118a3fc7d96 |
24 |
|
25 |
diff --git a/dev-python/isort/isort-5.9.2.ebuild b/dev-python/isort/isort-5.9.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..48eedd71427 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/isort/isort-5.9.2.ebuild |
30 |
@@ -0,0 +1,59 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_SETUPTOOLS=pyproject.toml |
37 |
+PYTHON_COMPAT=( python3_{8..9} ) |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="A python utility/library to sort imports" |
41 |
+HOMEPAGE="https://pypi.org/project/isort/" |
42 |
+SRC_URI=" |
43 |
+ https://github.com/PyCQA/isort/archive/${PV}.tar.gz |
44 |
+ -> ${P}.gh.tar.gz" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/toml[${PYTHON_USEDEP}]" |
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/natsort[${PYTHON_USEDEP}] |
58 |
+ dev-python/pylama[${PYTHON_USEDEP}] |
59 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
60 |
+ dev-vcs/git |
61 |
+ ) |
62 |
+" |
63 |
+ |
64 |
+distutils_enable_tests pytest |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ # unbundle toml |
68 |
+ sed -i -e 's:from ._vendored ::' isort/settings.py || die |
69 |
+ |
70 |
+ distutils-r1_src_prepare |
71 |
+} |
72 |
+ |
73 |
+python_test() { |
74 |
+ # Some tests run the "isort" command |
75 |
+ distutils_install_for_testing |
76 |
+ # Install necessary plugins |
77 |
+ local p |
78 |
+ for p in example*/; do |
79 |
+ pushd "${p}" >/dev/null || die |
80 |
+ distutils_install_for_testing |
81 |
+ popd >/dev/null || die |
82 |
+ done |
83 |
+ |
84 |
+ local deselect=( |
85 |
+ # Excluded from upstream's test script |
86 |
+ tests/unit/test_deprecated_finders.py |
87 |
+ ) |
88 |
+ epytest tests/unit ${deselect[@]/#/--deselect } |
89 |
+} |