1 |
commit: f713da99cead4085d1275329f49397206a48336d |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 27 14:39:29 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 27 15:35:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f713da99 |
7 |
|
8 |
dev-python/autopep8: Version bump to 1.3.1 |
9 |
|
10 |
* Masked one unit test due to it failing on Gentoo |
11 |
|
12 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
13 |
|
14 |
dev-python/autopep8/Manifest | 1 + |
15 |
dev-python/autopep8/autopep8-1.3.1.ebuild | 40 ++++++++++++++++++++++ |
16 |
.../files/autopep8-1.3.1-test-line-length.patch | 28 +++++++++++++++ |
17 |
3 files changed, 69 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/autopep8/Manifest b/dev-python/autopep8/Manifest |
20 |
index b132a586452..5e239cfa0cb 100644 |
21 |
--- a/dev-python/autopep8/Manifest |
22 |
+++ b/dev-python/autopep8/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST autopep8-1.0.4.tar.gz 121476 SHA256 58883a80d501f6f5d97859f100414c6b6f6131fcfc08bd88364c2ecb37a55153 SHA512 53e902dcdd654b9d67d9a31a2343503b754bec78630a7fd8d229843c53eb27d11c32fd6a4829714ac4d7cbee59b055d12e60453ae4ee01cb6131bf9c5045426f WHIRLPOOL 44748dfce6202e1e82c468862e4505500c939ee88eb474392767e606c537a66736f2788c0b6573db37b7c207f3f4608b2a6ecb0fb231bb8c3c090040d17f0642 |
25 |
DIST autopep8-1.2.4.tar.gz 105273 SHA256 38e31e266e29808e8a65a307778ed8e402e1f0d87472009420d6d18146cdeaa2 SHA512 f56c143d94521487628b225d9a0464ee5c8ca69aaea0c5e43c84f1dd920a0274508c6831da429e716829c38bc7c357842bb6403b8b61c04b464240e3573e05d6 WHIRLPOOL f551f8e2cb8b71664c2e47f7458c9923b70b420c044f980d67172b17f7ea9aa328141f9af648eedb400379dfb5a6ab804671fb1f942f8cca8a3ad851a5e9b3d2 |
26 |
+DIST autopep8-1.3.1.tar.gz 107541 SHA256 405eaa5199c74a0570125916e6af44d39343c1fcaaafee117fc329a3f86048c4 SHA512 f20de070b27520a9de56477b7d7b0ea2d3924b882687a43acb4cdbd25a727cfa48e15be4511be1706755e66164164766b405be3230edaecc8563e835e866a030 WHIRLPOOL a5579a23ab9112918c037ab9c10395c9841db919538f7dddb21ae15b8135f6cbc6cbff1403daaaedb95a97b3e6dfc841baa4c73186ebf05a393e276d164b7464 |
27 |
|
28 |
diff --git a/dev-python/autopep8/autopep8-1.3.1.ebuild b/dev-python/autopep8/autopep8-1.3.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..fbabaae4407 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/autopep8/autopep8-1.3.1.ebuild |
33 |
@@ -0,0 +1,40 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} ) |
40 |
+PYTHON_REQ_USE="threads(+)" |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="Automatically formats Python code to conform to the PEP 8 style guide" |
45 |
+HOMEPAGE="https://github.com/hhatto/autopep8 https://pypi.python.org/pypi/autopep8" |
46 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" |
51 |
+IUSE="test" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ >=dev-python/pep8-1.5.7[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/pycodestyle-2.3[${PYTHON_USEDEP}]" |
56 |
+DEPEND=" |
57 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
58 |
+ test? ( |
59 |
+ ${RDEPEND} |
60 |
+ >=dev-python/pydiff-0.1.2[${PYTHON_USEDEP}] |
61 |
+ )" |
62 |
+ |
63 |
+PATCHES=( "${FILESDIR}"/${PN}-1.3.1-test-line-length.patch ) |
64 |
+ |
65 |
+python_prepare_all() { |
66 |
+ # Prevent UnicodeDecodeError with LANG=C |
67 |
+ sed -e "/é/d" -i MANIFEST.in || die |
68 |
+ distutils-r1_python_prepare_all |
69 |
+} |
70 |
+ |
71 |
+python_test() { |
72 |
+ esetup.py test |
73 |
+} |
74 |
|
75 |
diff --git a/dev-python/autopep8/files/autopep8-1.3.1-test-line-length.patch b/dev-python/autopep8/files/autopep8-1.3.1-test-line-length.patch |
76 |
new file mode 100644 |
77 |
index 00000000000..5644a8a8a72 |
78 |
--- /dev/null |
79 |
+++ b/dev-python/autopep8/files/autopep8-1.3.1-test-line-length.patch |
80 |
@@ -0,0 +1,28 @@ |
81 |
+Fails with the following message: |
82 |
+ |
83 |
+====================================================================== |
84 |
+FAIL: test_local_pycodestyle_config_line_length (test.test_autopep8.ConfigurationTests) |
85 |
+---------------------------------------------------------------------- |
86 |
+Traceback (most recent call last): |
87 |
+ File "/var/tmp/portage/dev-python/autopep8-1.3.1/work/autopep8-1.3.1/test/test_autopep8.py", line 4724, in test_local_pycodestyle_config_line_length |
88 |
+ self.assertEqual(args.max_line_length, 40) |
89 |
+AssertionError: 79 != 40 |
90 |
+ |
91 |
+---------------------------------------------------------------------- |
92 |
+ |
93 |
+--- a/test/test_autopep8.py |
94 |
++++ b/test/test_autopep8.py |
95 |
+@@ -4715,13 +4715,6 @@ |
96 |
+ self.assertEqual(args.global_config, 'False') |
97 |
+ self.assertEqual(args.indent_size, 2) |
98 |
+ |
99 |
+- def test_local_pycodestyle_config_line_length(self): |
100 |
+- args = autopep8.parse_args( |
101 |
+- [os.path.join(FAKE_PYCODESTYLE_CONFIGURATION, 'foo.py'), |
102 |
+- '--global-config={0}'.format(os.devnull)], |
103 |
+- apply_config=True) |
104 |
+- self.assertEqual(args.max_line_length, 40) |
105 |
+- |
106 |
+ def test_config_false_with_local_autocomplete(self): |
107 |
+ args = autopep8.parse_args( |
108 |
+ [os.path.join(FAKE_CONFIGURATION, 'foo.py'), |