diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-python/pyflakes | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-python/pyflakes')
-rw-r--r-- | dev-python/pyflakes/Manifest | 8 | ||||
-rw-r--r-- | dev-python/pyflakes/files/pyflakes-2.2.0-fix-tests.patch | 97 | ||||
-rw-r--r-- | dev-python/pyflakes/files/pyflakes-2.3.1-fix-py3.10-tests.patch | 91 | ||||
-rw-r--r-- | dev-python/pyflakes/pyflakes-2.2.0.ebuild | 23 | ||||
-rw-r--r-- | dev-python/pyflakes/pyflakes-2.3.1.ebuild | 21 | ||||
-rw-r--r-- | dev-python/pyflakes/pyflakes-2.4.0-r1.ebuild (renamed from dev-python/pyflakes/pyflakes-2.4.0.ebuild) | 11 |
6 files changed, 9 insertions, 242 deletions
diff --git a/dev-python/pyflakes/Manifest b/dev-python/pyflakes/Manifest index 228f3122a74a..f0f15a9feb7d 100644 --- a/dev-python/pyflakes/Manifest +++ b/dev-python/pyflakes/Manifest @@ -1,9 +1,3 @@ -AUX pyflakes-2.2.0-fix-tests.patch 3826 BLAKE2B 6f4d213526b2a39642765b3b13665e8a17bcf39804e6787ed2627a77d3b068a8ac1d7951a207c83e1d76812ac77b889d6b4cbf0b1cc30cdd8c59f8ea886ef373 SHA512 47e1c624358edd34b3ddae023275a81ce529594689c3b67ec2c7b5acec84b9c9f426b9f79151a1ec3dc89b39335f11e03cb22db4f4c63399e876f887e3f3ecee -AUX pyflakes-2.3.1-fix-py3.10-tests.patch 3166 BLAKE2B 9950380f37f84e6c6356a62cb4566a12517cdaf57c48c146b922dc2188c8d2f938691ee909b70e4b10a8f7cfbf35240659a10832295d87be483d1a5a1a12db24 SHA512 f67ce0684e9b1fc269845a8b43ac5f99243d8060674c90958cdd0b2781196aeeff96eb504cdf9a14a5b77dd658e0ff0f3ee70c955dadcf0b36c16148721dcbdc -DIST pyflakes-2.2.0.tar.gz 65307 BLAKE2B e48e0cb0497f90b6482c0fd08c182d766ab50755fe348352df510841f4ad43f7c1d6486753ce774603a3624f49c9b0165ad930bb1451ef30cf2e828d732e0652 SHA512 6a411efef261874c216b71bcb095412448a8cbeefdf7fa5577d4f4edd48a4a740a4433665e87e5dda2c08fd9ee3bfb7f134f56c7523e1303243edfa92b0ccb35 -DIST pyflakes-2.3.1.tar.gz 68567 BLAKE2B 0eee1eb87bf1dcae68afcdb250644aa8a1189ca3d8d22608e25727bf01b94465cceb6c65be669b18779434c8879594dd92cfb3a108b7aff584cfda788f6e2f4f SHA512 85d3a2737d31ed4b5f4c2e3621759a5951d1320f95d74313fec09fa551648105b3ab84db94f7bffe5b77623e4adbea1d8ad12b9ce2fee7e81c41581a3ea81cc6 DIST pyflakes-2.4.0.tar.gz 69101 BLAKE2B 852e50f3545138947761f9a8413fd6463bb9a28977c008feb1c3a81afb3854501b8fd3c05840d9d75bc6ebf505b545e62c047b87780b0bc764fd4225ea6a1e21 SHA512 f4c6512eb811511c897623f52c4f88e50275a3292582d7dd34462e90e39fecce939818cb92e750eebdd66eab25b91c23540104fc4530c42621d7cfeb1d33c577 -EBUILD pyflakes-2.2.0.ebuild 739 BLAKE2B a13889d951d54c49dca0df763c347390c69c1bc6e7471d8ad9b1a1c932340096874c2ec09cca6ec9ca23472d2bbbac90924a6be8ad06bb7b7f4b731d7d712bd8 SHA512 dab20e9ed9a1ba53a50c72466d5093a3a214dce230348910a91b91473b7bcd8370355a47d438612129a798d087b1ce55b7c21c881d06e740e461848ff8991271 -EBUILD pyflakes-2.3.1.ebuild 665 BLAKE2B 1f45b820bab9fab2fcb7cf744471d1caefc5c5c6c5ce50ed286d8baf5976e81d26f7a971880edf8791b3c17a3f47f5d0de0ec77d88cf7e437a5d29aebb6ca719 SHA512 adac3b53362f3a56bfdfdf05e7e65d6c3c641bcf7488eb2612cfba2daa0727dbd2a25ed9ba567c070f0e858ab9fb6a1d18ac538e0d7f3d58980b4da7cb3773ef -EBUILD pyflakes-2.4.0.ebuild 608 BLAKE2B 00c0ee30732c03f736f3ac8e7bdaedc9025f890b5ecbf882b4a065f33d0958da19d17afdb2a548aa02d746a49928bd49a9c0601d1f12fd3d286521ad4506e791 SHA512 60d83676bcefca40ce751251ad3c8bc6bdce5d3165acc35549d2d6ca2ad6f90ff33ffc221ddfb2ee7493fae730bffcb11a30c716784e85aa7ce639dc5d9d2f28 +EBUILD pyflakes-2.4.0-r1.ebuild 646 BLAKE2B 2e0ee3052b051da22d04063d5e4dc1d447c3b7aaf216e621a92f2ebb299921140bdc0fc4340c9239a704d92b283aa4a4cc6a6c9e83864c3d10635685471fb739 SHA512 7b6ff841ee877cc5c294e8aec54fff885ebec6253ee479b998057b13a678063fa09125a2e1f84a141df0f8d09ed2cfabe44ef770ad2fd035a4104cac6681901f MISC metadata.xml 763 BLAKE2B e15bc4240e0cc54bd0d7ecca523bcc43c5ae6ebd4f195815f7b2c3494e0366f1cc6feadbc63fce82390ed414e8f52a7bdf15f5c56909ab39879814ff1b178558 SHA512 bb8e0b6f746c99e5185a8bca736f0af36068ae0de45d1bde9663f0e732770366ac20f2116ddd9d7a85239146cf5d7b8fbbfc5c225d7bca4650001f86468a0142 diff --git a/dev-python/pyflakes/files/pyflakes-2.2.0-fix-tests.patch b/dev-python/pyflakes/files/pyflakes-2.2.0-fix-tests.patch deleted file mode 100644 index 00b1130bf342..000000000000 --- a/dev-python/pyflakes/files/pyflakes-2.2.0-fix-tests.patch +++ /dev/null @@ -1,97 +0,0 @@ -diff --git a/pyflakes/test/test_api.py b/pyflakes/test/test_api.py -index b579ac8..d379b3b 100644 ---- a/pyflakes/test/test_api.py -+++ b/pyflakes/test/test_api.py -@@ -515,8 +513,10 @@ def foo(bar=baz, bax): - """ - with self.makeTempFile(source) as sourcePath: - if ERROR_HAS_LAST_LINE: -- if PYPY and sys.version_info >= (3,): -+ if PYPY: - column = 7 -+ elif sys.version_info >= (3, 9): -+ column = 21 - elif sys.version_info >= (3, 8): - column = 9 - else: -@@ -543,8 +543,10 @@ foo(bar=baz, bax) - """ - with self.makeTempFile(source) as sourcePath: - if ERROR_HAS_LAST_LINE: -- if PYPY and sys.version_info >= (3,): -+ if PYPY: - column = 12 -+ elif sys.version_info >= (3, 9): -+ column = 17 - elif sys.version_info >= (3, 8): - column = 14 - else: -@@ -578,7 +580,9 @@ foo(bar=baz, bax) - else: - position_end = 1 - if PYPY: -- column = 6 -+ column = 5 -+ elif ver >= (3, 9): -+ column = 13 - else: - column = 7 - # Column has been "fixed" since 3.2.4 and 3.3.1 -@@ -717,13 +721,6 @@ class IntegrationTests(TestCase): - """ - Tests of the pyflakes script that actually spawn the script. - """ -- -- # https://bitbucket.org/pypy/pypy/issues/3069/pypy36-on-windows-incorrect-line-separator -- if PYPY and sys.version_info >= (3,) and WIN: -- LINESEP = '\n' -- else: -- LINESEP = os.linesep -- - def setUp(self): - self.tempdir = tempfile.mkdtemp() - self.tempfilepath = os.path.join(self.tempdir, 'temp') -@@ -784,7 +781,7 @@ class IntegrationTests(TestCase): - fd.write("import contraband\n".encode('ascii')) - d = self.runPyflakes([self.tempfilepath]) - expected = UnusedImport(self.tempfilepath, Node(1), 'contraband') -- self.assertEqual(d, ("%s%s" % (expected, self.LINESEP), '', 1)) -+ self.assertEqual(d, ("%s%s" % (expected, os.linesep), '', 1)) - - def test_errors_io(self): - """ -@@ -794,7 +791,7 @@ class IntegrationTests(TestCase): - """ - d = self.runPyflakes([self.tempfilepath]) - error_msg = '%s: No such file or directory%s' % (self.tempfilepath, -- self.LINESEP) -+ os.linesep) - self.assertEqual(d, ('', error_msg, 1)) - - def test_errors_syntax(self): -@@ -807,7 +804,7 @@ class IntegrationTests(TestCase): - fd.write("import".encode('ascii')) - d = self.runPyflakes([self.tempfilepath]) - error_msg = '{0}:1:{2}: invalid syntax{1}import{1} {3}^{1}'.format( -- self.tempfilepath, self.LINESEP, 6 if PYPY else 7, '' if PYPY else ' ') -+ self.tempfilepath, os.linesep, 6 if PYPY else 7, '' if PYPY else ' ') - self.assertEqual(d, ('', error_msg, 1)) - - def test_readFromStdin(self): -@@ -816,15 +813,13 @@ class IntegrationTests(TestCase): - """ - d = self.runPyflakes([], stdin='import contraband') - expected = UnusedImport('<stdin>', Node(1), 'contraband') -- self.assertEqual(d, ("%s%s" % (expected, self.LINESEP), '', 1)) -+ self.assertEqual(d, ("%s%s" % (expected, os.linesep), '', 1)) - - - class TestMain(IntegrationTests): - """ - Tests of the pyflakes main function. - """ -- LINESEP = os.linesep -- - def runPyflakes(self, paths, stdin=None): - try: - with SysStreamCapturing(stdin) as capture: diff --git a/dev-python/pyflakes/files/pyflakes-2.3.1-fix-py3.10-tests.patch b/dev-python/pyflakes/files/pyflakes-2.3.1-fix-py3.10-tests.patch deleted file mode 100644 index c96585d20c73..000000000000 --- a/dev-python/pyflakes/files/pyflakes-2.3.1-fix-py3.10-tests.patch +++ /dev/null @@ -1,91 +0,0 @@ -From f3b1b44bf3d2d5927004fa1c2fcf1ab2def816b9 Mon Sep 17 00:00:00 2001 -From: Anthony Sottile <asottile@umich.edu> -Date: Thu, 20 May 2021 07:23:19 -0700 -Subject: [PATCH] fix syntax error offsets for python 3.10 (#635) - ---- - .github/workflows/test.yml | 2 +- - pyflakes/test/test_api.py | 43 +++++++++++++++++++++++++------------- - tox.ini | 2 +- - 3 files changed, 30 insertions(+), 17 deletions(-) - -diff --git a/pyflakes/test/test_api.py b/pyflakes/test/test_api.py -index d379b3b7..2c1cf19d 100644 ---- a/pyflakes/test/test_api.py -+++ b/pyflakes/test/test_api.py -@@ -441,7 +441,7 @@ def evaluate(source): - evaluate(source) - except SyntaxError: - e = sys.exc_info()[1] -- if not PYPY: -+ if not PYPY and sys.version_info < (3, 10): - self.assertTrue(e.text.count('\n') > 1) - else: - self.fail() -@@ -449,10 +449,17 @@ def evaluate(source): - with self.makeTempFile(source) as sourcePath: - if PYPY: - message = 'end of file (EOF) while scanning triple-quoted string literal' -+ elif sys.version_info >= (3, 10): -+ message = 'unterminated triple-quoted string literal (detected at line 8)' # noqa: E501 - else: - message = 'invalid syntax' - -- column = 8 if sys.version_info >= (3, 8) else 11 -+ if sys.version_info >= (3, 10): -+ column = 12 -+ elif sys.version_info >= (3, 8): -+ column = 8 -+ else: -+ column = 11 - self.assertHasErrors( - sourcePath, - ["""\ -@@ -468,21 +475,25 @@ def test_eofSyntaxError(self): - """ - with self.makeTempFile("def foo(") as sourcePath: - if PYPY: -- result = """\ --%s:1:7: parenthesis is never closed --def foo( -- ^ --""" % (sourcePath,) -+ msg = 'parenthesis is never closed' -+ elif sys.version_info >= (3, 10): -+ msg = "'(' was never closed" - else: -- result = """\ --%s:1:9: unexpected EOF while parsing --def foo( -- ^ --""" % (sourcePath,) -+ msg = 'unexpected EOF while parsing' - -- self.assertHasErrors( -- sourcePath, -- [result]) -+ if PYPY: -+ column = 7 -+ elif sys.version_info >= (3, 10): -+ column = 8 -+ else: -+ column = 9 -+ -+ spaces = ' ' * (column - 1) -+ expected = '{}:1:{}: {}\ndef foo(\n{}^\n'.format( -+ sourcePath, column, msg, spaces -+ ) -+ -+ self.assertHasErrors(sourcePath, [expected]) - - def test_eofSyntaxErrorWithTab(self): - """ -@@ -515,6 +526,8 @@ def foo(bar=baz, bax): - if ERROR_HAS_LAST_LINE: - if PYPY: - column = 7 -+ elif sys.version_info >= (3, 10): -+ column = 18 - elif sys.version_info >= (3, 9): - column = 21 - elif sys.version_info >= (3, 8): diff --git a/dev-python/pyflakes/pyflakes-2.2.0.ebuild b/dev-python/pyflakes/pyflakes-2.2.0.ebuild deleted file mode 100644 index 879458907120..000000000000 --- a/dev-python/pyflakes/pyflakes-2.2.0.ebuild +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( pypy3 python3_{7..9} ) -# Uses pkg_resources -DISTUTILS_USE_SETUPTOOLS=rdepend - -inherit distutils-r1 - -DESCRIPTION="Passive checker for Python programs" -HOMEPAGE="https://github.com/PyCQA/pyflakes https://pypi.org/project/pyflakes/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" - -# Should be included in the next release -PATCHES=( "${FILESDIR}/${P}-fix-tests.patch" ) - -distutils_enable_tests unittest diff --git a/dev-python/pyflakes/pyflakes-2.3.1.ebuild b/dev-python/pyflakes/pyflakes-2.3.1.ebuild deleted file mode 100644 index 1c9e50892545..000000000000 --- a/dev-python/pyflakes/pyflakes-2.3.1.ebuild +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( pypy3 python3_{8..10} ) -inherit distutils-r1 - -DESCRIPTION="Passive checker for Python programs" -HOMEPAGE="https://github.com/PyCQA/pyflakes https://pypi.org/project/pyflakes/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" - -PATCHES=( - "${FILESDIR}/${P}-fix-py3.10-tests.patch" -) - -distutils_enable_tests unittest diff --git a/dev-python/pyflakes/pyflakes-2.4.0.ebuild b/dev-python/pyflakes/pyflakes-2.4.0-r1.ebuild index 850b36c38aeb..9e1e1477eb75 100644 --- a/dev-python/pyflakes/pyflakes-2.4.0.ebuild +++ b/dev-python/pyflakes/pyflakes-2.4.0-r1.ebuild @@ -1,13 +1,18 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( pypy3 python3_{8..10} ) +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{8..11} ) + inherit distutils-r1 DESCRIPTION="Passive checker for Python programs" -HOMEPAGE="https://github.com/PyCQA/pyflakes https://pypi.org/project/pyflakes/" +HOMEPAGE=" + https://github.com/PyCQA/pyflakes/ + https://pypi.org/project/pyflakes/ +" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" |