diff options
author | Sebastian Pipping <sping@gentoo.org> | 2012-05-04 20:20:08 +0000 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2012-05-04 20:20:08 +0000 |
commit | 69d0aa280df41e98075bd3d9b5c42923526afcc1 (patch) | |
tree | dfedc99b039c8714debe31a0402b46eb6be8c771 | |
parent | Stable on amd64 x86 and ppc wrt bug#414633. (diff) | |
download | historical-69d0aa280df41e98075bd3d9b5c42923526afcc1.tar.gz historical-69d0aa280df41e98075bd3d9b5c42923526afcc1.tar.bz2 historical-69d0aa280df41e98075bd3d9b5c42923526afcc1.zip |
dev-python/autopep8: 0.5.2_p1
Package-Manager: portage-2.1.10.56/cvs/Linux x86_64
-rw-r--r-- | dev-python/autopep8/ChangeLog | 9 | ||||
-rw-r--r-- | dev-python/autopep8/Manifest | 16 | ||||
-rw-r--r-- | dev-python/autopep8/autopep8-0.5.2_p1.ebuild | 40 | ||||
-rw-r--r-- | dev-python/autopep8/files/autopep8-0.5.2-issue-10.patch | 28 | ||||
-rw-r--r-- | dev-python/autopep8/metadata.xml | 4 |
5 files changed, 89 insertions, 8 deletions
diff --git a/dev-python/autopep8/ChangeLog b/dev-python/autopep8/ChangeLog index a3e55465cb92..b87642fc56f8 100644 --- a/dev-python/autopep8/ChangeLog +++ b/dev-python/autopep8/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-python/autopep8 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/autopep8/ChangeLog,v 1.6 2012/03/31 22:47:05 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/autopep8/ChangeLog,v 1.7 2012/05/04 20:20:08 sping Exp $ + +*autopep8-0.5.2_p1 (04 May 2012) + + 04 May 2012; Sebastian Pipping <sping@gentoo.org> +autopep8-0.5.2_p1.ebuild, + +files/autopep8-0.5.2-issue-10.patch, metadata.xml: + Add upstream patch for issue 10 (runtime exception), add myself as backup + maintainer 31 Mar 2012; Mike Gilbert <floppym@gentoo.org> autopep8-0.5.2.ebuild, autopep8-0.5.ebuild, autopep8-9999.ebuild: diff --git a/dev-python/autopep8/Manifest b/dev-python/autopep8/Manifest index 1e5761f29d11..9c28265a54b3 100644 --- a/dev-python/autopep8/Manifest +++ b/dev-python/autopep8/Manifest @@ -1,17 +1,19 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 +Hash: SHA1 +AUX autopep8-0.5.2-issue-10.patch 837 RMD160 d87ce19cb3e4682119012835064cafe5210cc4b3 SHA1 797c7ff8ff5125e5a170e0be98c0bf838b5718b2 SHA256 ec7a48d8163113d0b034c388d12ced60299019b7502d9d4a8561bfbc7ff54908 DIST autopep8-0.5.2.tar.gz 10049 RMD160 92a4a8c24bce46338bfa9fe4ab022fb76f8d0407 SHA1 257572c6948bcf64fb42cc8eb8bfb0a1998027d1 SHA256 a9a808bac49605036bdeaa4bf5b50a9bbf87088a54b9a2e54e18c85abcecb70f DIST autopep8-0.5.tar.gz 9123 RMD160 d0946f57dabf182d5025c1dc702d95315d003ca4 SHA1 b1544a168d95a5b858c9a431d38b5ab1d06a4065 SHA256 2e724c71b67639695fcc1dc8ef5cb941856a729fcea0b09442be65dbd68af8a6 EBUILD autopep8-0.5.2.ebuild 840 RMD160 8bb5d32fb5b47189185ab7eac4ce587abe93b92b SHA1 da139684d19f7a75d3c803af548906dcdb4b69ec SHA256 fb8ebc8ec50389cacca49ce79ee2bb562c88b881492561c9e019238cf88cc7b5 +EBUILD autopep8-0.5.2_p1.ebuild 972 RMD160 db0435acc716dc64faf3b5442bb61f0c917f187f SHA1 af27d62e2afaeac964efe2b4598deba4767d22cd SHA256 585c783ea44330ad98cc835de943e5b313b39967766417805d781e7b97f44dac EBUILD autopep8-0.5.ebuild 838 RMD160 2b35cf174610bc5562d176250931dc4ce4935626 SHA1 89605f4050de1ab578bf2ff20a3a43a41db32a40 SHA256 b2f844d64ded050753d6629e19f53df1d8bf5f8c76d97418b19e9b9aea0841df EBUILD autopep8-9999.ebuild 1023 RMD160 efcdbbf56c157bf816f6ce5e58a054d8f60af5f8 SHA1 23d1756c9a1f8cd0b649cd0114793780ccbf5d80 SHA256 e669f1acae4d1fc5308641374710c17098ef4a7dd7703d8f18953e3d97274ada -MISC ChangeLog 1220 RMD160 fe4057fdd0fc2d4952e23028522af1e2fa772972 SHA1 a332ed107720701c2ea8ab92348cf228e0384026 SHA256 c65a7dbfaab41c8bafd4fe82a3ec4f383b2b880b8192cdd495536752fcae3247 -MISC metadata.xml 413 RMD160 840c0a660ecee33296115c01eef1ffb66551de53 SHA1 fb35b1005d91b1c6771efd40d6489d47aafd6dd2 SHA256 f3a299ab0531c57647f3d5772618788dcd7541d7fffdac45bfb1934e41130bf1 +MISC ChangeLog 1475 RMD160 3f6cc2c12bf51ab912a581618777c10f9aa9836a SHA1 6cd7a6d0ed243ae845c6dacaa480b04736dc3673 SHA256 6d08529ab090318675c3191404179a2766369490621b8a4946c57550edc69205 +MISC metadata.xml 509 RMD160 db4867b5c0e07a2adff0d8504263be33cd14a7ac SHA1 94fc50634e40a5f7af53a7ff42e26831f5e035fb SHA256 6418313c14980a08f457f4d1ce45be0208351bd524dc957af4f6ad09ba8a5c9e -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.17 (GNU/Linux) +Version: GnuPG v2.0.19 (GNU/Linux) -iF4EAREIAAYFAk93iXAACgkQC77qH+pIQ6TfwAD/UZNeK9QOlGcjwgwH5elQ9I6E -ZsZrI3Xe2CI639ECsZsA/jitPyawgnBGauu0/RqCFY+t9JLNH9mczVGDzwhhn8Ke -=HlPj +iEYEARECAAYFAk+kOd8ACgkQsAvGakAaFgBQMQCcDzWruPu4apWwpCN/tV+12UMj +0TcAoIH33UxWK+f+NJ1WKdChsYgobj5c +=M7as -----END PGP SIGNATURE----- diff --git a/dev-python/autopep8/autopep8-0.5.2_p1.ebuild b/dev-python/autopep8/autopep8-0.5.2_p1.ebuild new file mode 100644 index 000000000000..753818411ea6 --- /dev/null +++ b/dev-python/autopep8/autopep8-0.5.2_p1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/autopep8/autopep8-0.5.2_p1.ebuild,v 1.1 2012/05/04 20:20:08 sping Exp $ + +EAPI=4 + +PYTHON_DEPEND="*:2.6" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.5-cpython" + +inherit eutils distutils + +MY_PV=${PV%%_p*} +DESCRIPTION="Automatically formats Python code to conform to the PEP 8 style guide" +HOMEPAGE="https://github.com/hhatto/autopep8 http://pypi.python.org/pypi/autopep8" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-python/pep8 + dev-python/setuptools" +DEPEND="${RDEPEND}" + +PYTHON_MODNAME="${PN}.py" + +S=${WORKDIR}/${PN}-${MY_PV} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.5.2-issue-10.patch +} + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test/test_${PN}.py + } + python_execute_function testing +} diff --git a/dev-python/autopep8/files/autopep8-0.5.2-issue-10.patch b/dev-python/autopep8/files/autopep8-0.5.2-issue-10.patch new file mode 100644 index 000000000000..5bd6c95ed177 --- /dev/null +++ b/dev-python/autopep8/files/autopep8-0.5.2-issue-10.patch @@ -0,0 +1,28 @@ +From bec4e89cb339beb824541b0b88dda4ea1742835f Mon Sep 17 00:00:00 2001 +From: myint <myint@macbookpro.local> +Date: Fri, 4 May 2012 06:09:22 -0700 +Subject: [PATCH] Correct fix_e224() to not modify indentation + +--- + autopep8.py | 5 ++++- + 1 files changed, 4 insertions(+), 1 deletions(-) + +diff --git a/autopep8.py b/autopep8.py +index c795cf3..c7ca42c 100755 +--- a/autopep8.py ++++ b/autopep8.py +@@ -230,7 +230,10 @@ class FixPEP8(object): + + def fix_e224(self, result): + target = self.source[result['line'] - 1] +- fixed = re.sub(r'\t+', ' ', target, 1) ++ offset = result['column'] ++ prefix = target[:offset - 1] ++ suffix = target[offset - 1:].replace('\t', ' ') ++ fixed = prefix + " " + suffix + self.source[result['line'] - 1] = fixed + + def fix_e225(self, result): +-- +1.7.8.5 + diff --git a/dev-python/autopep8/metadata.xml b/dev-python/autopep8/metadata.xml index 0e1d60b89bf1..06037abf45f5 100644 --- a/dev-python/autopep8/metadata.xml +++ b/dev-python/autopep8/metadata.xml @@ -5,6 +5,10 @@ <email>xarthisius@gentoo.org</email> <name>Kacper Kowalik</name> </maintainer> + <maintainer> + <email>sping@gentoo.org</email> + <name>Sebastian Pipping</name> + </maintainer> <longdescription>autopep8 formats Python code based on the output of the pep8 utility</longdescription> <upstream> <remote-id type="pypi">autopep8</remote-id> |