summaryrefslogtreecommitdiff
path: root/dev-python/pyflakes
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-23 10:22:15 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-23 10:22:15 +0100
commit8b4ace9c50842c5b83401ea7b179dcab940387e1 (patch)
tree230f3135ceaace633cf93e9838b185c4a6664c2e /dev-python/pyflakes
parent9ee6d97c2883d42f204a533a8bc1f4562df778fb (diff)
gentoo resync : 23.09.2020
Diffstat (limited to 'dev-python/pyflakes')
-rw-r--r--dev-python/pyflakes/Manifest4
-rw-r--r--dev-python/pyflakes/files/pyflakes-2.1.1-py38.patch42
-rw-r--r--dev-python/pyflakes/files/pyflakes-2.1.1-tests.patch207
-rw-r--r--dev-python/pyflakes/pyflakes-2.1.1.ebuild25
4 files changed, 0 insertions, 278 deletions
diff --git a/dev-python/pyflakes/Manifest b/dev-python/pyflakes/Manifest
index f66cc6d4a148..013485b1a827 100644
--- a/dev-python/pyflakes/Manifest
+++ b/dev-python/pyflakes/Manifest
@@ -1,7 +1,3 @@
-AUX pyflakes-2.1.1-py38.patch 1641 BLAKE2B c35e47c00b035d2488d49deab5207be6e539ba1c3683564ad1fea75b91e4d0e73a599a3ffcc9bcc7dca12fe7675e6e47c7e94fa2848d352c7be3639b07322efa SHA512 2605bf1c8f28eed285208219b3dd9816ae207ced87458c0f294ea6b3cb2e2a1f960fad257d3813b5e6dbfa07712644d5b38b28924340f34d3a8d701b09862222
-AUX pyflakes-2.1.1-tests.patch 7973 BLAKE2B d0b6663e9bb17e301e78104c08440a9bc7493e6cc2de56e73677c865d34b6bfcda39d2565414e6cd984a181c27cf7540e5de1ca9327103c03589f154d5bb4a3b SHA512 d4360525526ad0de395900aa4f986c03091ab06d77a3fe6ab92d4650e10a2a24accc5d77c1acb4800e095db5ed663d3ab13715c5433368c334891cee1b44dcc6
-DIST pyflakes-2.1.1.tar.gz 58072 BLAKE2B 68dccddae2a9dc77f2d1f1251c80e2552935281b6b79e55fd2a0805cb30bf5e1c227b60a7e1f55f5f92ac42dfd18a69eb0b76ce06f43ac1c48dde3921817a271 SHA512 7ebf5843b38146305c1063e070480fea8ec3b47fa1be546b1fafaeb242a688a5a001f978e7257fd71d5905b9a338b466ef17c7330725191587e9c40ba632c3f8
DIST pyflakes-2.2.0.tar.gz 65307 BLAKE2B e48e0cb0497f90b6482c0fd08c182d766ab50755fe348352df510841f4ad43f7c1d6486753ce774603a3624f49c9b0165ad930bb1451ef30cf2e828d732e0652 SHA512 6a411efef261874c216b71bcb095412448a8cbeefdf7fa5577d4f4edd48a4a740a4433665e87e5dda2c08fd9ee3bfb7f134f56c7523e1303243edfa92b0ccb35
-EBUILD pyflakes-2.1.1.ebuild 783 BLAKE2B 01cd89e87b0672a234a24fad49758b3d391e015bd299aa01f5b33eab2e80b448506d28a44dbcad683138738610cce62f602c4b4eedeba02b8e17d82531b2f7ed SHA512 82b30b8e7347b0487961945619a09eea21a2f6c4ab3e21fc2ee817b5aa05d197b4e78d2b5b2e68a2a39811d9c7138402ed0c99a61d687f2b9a09f0173a144ce0
EBUILD pyflakes-2.2.0.ebuild 627 BLAKE2B 0d662e047b103e6671f1979ce2d995b00cc36ca7f37caa6e2b50c1234c64c6f6fcc48a68546425f42123684e5ca6c108261ced6fb88e8a58a3af2f89a82cec9d SHA512 6611e6f369b1307f25ef4c14015bfeeb227833c4ec9c427012325f3adcdb9fb264eb202fe1a86857f765b5fb96fdb99e2ae52887b71cda9276df2b5c46c34e34
MISC metadata.xml 762 BLAKE2B f31d372e281fb92fd01a1bb9e33afcffbb020fed4f82f8c549de08bd4b45619f914ccbad2f60e88f46cab9c3932003d7db353d79548f825a7e9add773b374cfc SHA512 d21377d6a2d76377928b0ca8db8d17673e9f188183141f8b4b980b9da90572ca68bee0e12a71bdb79339fe7dbec8a1e4b4aee344275280e4a61f08ffe9ff6996
diff --git a/dev-python/pyflakes/files/pyflakes-2.1.1-py38.patch b/dev-python/pyflakes/files/pyflakes-2.1.1-py38.patch
deleted file mode 100644
index f9f00b895f5a..000000000000
--- a/dev-python/pyflakes/files/pyflakes-2.1.1-py38.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-commit 1911c203a13826d2eb03d582d60874b91e36f4fc
-Author: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
-Date: Sun Nov 3 22:51:27 2019 +0300
-
- Allow continue inside finally in 3.8+ (#476)
-
-diff --git a/pyflakes/checker.py b/pyflakes/checker.py
-index eca2002..c8ccf56 100644
---- a/pyflakes/checker.py
-+++ b/pyflakes/checker.py
-@@ -1738,7 +1738,7 @@ class Checker(object):
- break
- # Handle Try/TryFinally difference in Python < and >= 3.3
- if hasattr(n, 'finalbody') and isinstance(node, ast.Continue):
-- if n_child in n.finalbody:
-+ if n_child in n.finalbody and not PY38_PLUS:
- self.report(messages.ContinueInFinally, node)
- return
- if isinstance(node, ast.Continue):
-diff --git a/pyflakes/test/test_other.py b/pyflakes/test/test_other.py
-index df2f790..282accb 100644
---- a/pyflakes/test/test_other.py
-+++ b/pyflakes/test/test_other.py
-@@ -493,8 +493,10 @@ class Test(TestCase):
- continue
- ''')
-
-+ @skipIf(version_info > (3, 8), "Python <= 3.8 only")
- def test_continueInFinally(self):
- # 'continue' inside 'finally' is a special syntax error
-+ # that is removed in 3.8
- self.flakes('''
- while True:
- try:
-@@ -2003,6 +2005,7 @@ class TestAsyncStatements(TestCase):
- ''', m.BreakOutsideLoop)
-
- @skipIf(version_info < (3, 5), 'new in Python 3.5')
-+ @skipIf(version_info > (3, 8), "Python <= 3.8 only")
- def test_continueInAsyncForFinally(self):
- self.flakes('''
- async def read_data(db):
diff --git a/dev-python/pyflakes/files/pyflakes-2.1.1-tests.patch b/dev-python/pyflakes/files/pyflakes-2.1.1-tests.patch
deleted file mode 100644
index 5e1a445e161e..000000000000
--- a/dev-python/pyflakes/files/pyflakes-2.1.1-tests.patch
+++ /dev/null
@@ -1,207 +0,0 @@
-diff --git a/pyflakes/test/test_api.py b/pyflakes/test/test_api.py
-index ee205f9..e295bd9 100644
---- a/pyflakes/test/test_api.py
-+++ b/pyflakes/test/test_api.py
-@@ -9,7 +9,6 @@ import shutil
- import subprocess
- import tempfile
-
--from pyflakes.checker import PY2
- from pyflakes.messages import UnusedImport
- from pyflakes.reporter import Reporter
- from pyflakes.api import (
-@@ -423,7 +422,7 @@ def baz():
-
- with self.makeTempFile(source) as sourcePath:
- if PYPY:
-- message = 'EOF while scanning triple-quoted string literal'
-+ message = 'end of file (EOF) while scanning triple-quoted string literal'
- else:
- message = 'invalid syntax'
-
-@@ -465,8 +464,8 @@ def foo(
- syntax error reflects the cause for the syntax error.
- """
- with self.makeTempFile("if True:\n\tfoo =") as sourcePath:
-- column = 5 if PYPY else 7
-- last_line = '\t ^' if PYPY else '\t ^'
-+ column = 6 if PYPY else 7
-+ last_line = '\t ^' if PYPY else '\t ^'
-
- self.assertHasErrors(
- sourcePath,
-@@ -476,6 +475,7 @@ def foo(
- %s
- """ % (sourcePath, column, last_line)])
-
-+ @skipIf(PYPY, "Broken on pypy")
- def test_nonDefaultFollowsDefaultSyntaxError(self):
- """
- Source which has a non-default argument following a default argument
-@@ -488,7 +488,12 @@ def foo(bar=baz, bax):
- """
- with self.makeTempFile(source) as sourcePath:
- if ERROR_HAS_LAST_LINE:
-- column = 9 if sys.version_info >= (3, 8) else 8
-+ if PYPY and sys.version_info >= (3,):
-+ column = 7
-+ elif sys.version_info >= (3, 8):
-+ column = 9
-+ else:
-+ column = 8
- last_line = ' ' * (column - 1) + '^\n'
- columnstr = '%d:' % column
- else:
-@@ -500,6 +505,7 @@ def foo(bar=baz, bax):
- def foo(bar=baz, bax):
- %s""" % (sourcePath, columnstr, last_line)])
-
-+ @skipIf(PYPY, "Broken on pypy")
- def test_nonKeywordAfterKeywordSyntaxError(self):
- """
- Source which has a non-keyword argument after a keyword argument should
-@@ -511,7 +517,12 @@ foo(bar=baz, bax)
- """
- with self.makeTempFile(source) as sourcePath:
- if ERROR_HAS_LAST_LINE:
-- column = 14 if sys.version_info >= (3, 8) else 13
-+ if PYPY and sys.version_info >= (3,):
-+ column = 12
-+ elif sys.version_info >= (3, 8):
-+ column = 14
-+ else:
-+ column = 13
- last_line = ' ' * (column - 1) + '^\n'
- columnstr = '%d:' % column
- else:
-@@ -529,6 +540,7 @@ foo(bar=baz, bax)
- foo(bar=baz, bax)
- %s""" % (sourcePath, columnstr, message, last_line)])
-
-+ @skipIf(PYPY and sys.hexversion < 0x3080000, "broken on pypy3")
- def test_invalidEscape(self):
- """
- The invalid escape syntax raises ValueError in Python 2
-@@ -681,6 +693,12 @@ 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')
-@@ -721,9 +739,6 @@ class IntegrationTests(TestCase):
- if sys.version_info >= (3,):
- stdout = stdout.decode('utf-8')
- stderr = stderr.decode('utf-8')
-- # Workaround https://bitbucket.org/pypy/pypy/issues/2350
-- if PYPY and PY2 and WIN:
-- stderr = stderr.replace('\r\r\n', '\r\n')
- return (stdout, stderr, rv)
-
- def test_goodFile(self):
-@@ -744,7 +759,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, os.linesep), '', 1))
-+ self.assertEqual(d, ("%s%s" % (expected, self.LINESEP), '', 1))
-
- def test_errors_io(self):
- """
-@@ -754,7 +769,7 @@ class IntegrationTests(TestCase):
- """
- d = self.runPyflakes([self.tempfilepath])
- error_msg = '%s: No such file or directory%s' % (self.tempfilepath,
-- os.linesep)
-+ self.LINESEP)
- self.assertEqual(d, ('', error_msg, 1))
-
- def test_errors_syntax(self):
-@@ -766,8 +781,8 @@ class IntegrationTests(TestCase):
- with open(self.tempfilepath, 'wb') as fd:
- 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, os.linesep, 5 if PYPY else 7, '' if PYPY else ' ')
-+ 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.assertEqual(d, ('', error_msg, 1))
-
- def test_readFromStdin(self):
-@@ -776,13 +791,14 @@ class IntegrationTests(TestCase):
- """
- d = self.runPyflakes([], stdin='import contraband')
- expected = UnusedImport('<stdin>', Node(1), 'contraband')
-- self.assertEqual(d, ("%s%s" % (expected, os.linesep), '', 1))
-+ self.assertEqual(d, ("%s%s" % (expected, self.LINESEP), '', 1))
-
-
- class TestMain(IntegrationTests):
- """
- Tests of the pyflakes main function.
- """
-+ LINESEP = os.linesep
-
- def runPyflakes(self, paths, stdin=None):
- try:
-diff --git a/pyflakes/test/test_doctests.py b/pyflakes/test/test_doctests.py
-index 0825ffe..a474bb1 100644
---- a/pyflakes/test/test_doctests.py
-+++ b/pyflakes/test/test_doctests.py
-@@ -328,7 +328,9 @@ class Test(TestCase):
- m.DoctestSyntaxError).messages
- exc = exceptions[0]
- self.assertEqual(exc.lineno, 4)
-- if sys.version_info >= (3, 8):
-+ if PYPY:
-+ self.assertEqual(exc.col, 27)
-+ elif sys.version_info >= (3, 8):
- self.assertEqual(exc.col, 18)
- else:
- self.assertEqual(exc.col, 26)
-@@ -339,12 +341,14 @@ class Test(TestCase):
- exc = exceptions[1]
- self.assertEqual(exc.lineno, 5)
- if PYPY:
-- self.assertEqual(exc.col, 13)
-+ self.assertEqual(exc.col, 14)
- else:
- self.assertEqual(exc.col, 16)
- exc = exceptions[2]
- self.assertEqual(exc.lineno, 6)
-- if PYPY or sys.version_info >= (3, 8):
-+ if PYPY:
-+ self.assertEqual(exc.col, 14)
-+ elif sys.version_info >= (3, 8):
- self.assertEqual(exc.col, 13)
- else:
- self.assertEqual(exc.col, 18)
-@@ -358,7 +362,9 @@ class Test(TestCase):
- """
- ''', m.DoctestSyntaxError).messages[0]
- self.assertEqual(exc.lineno, 5)
-- if PYPY or sys.version_info >= (3, 8):
-+ if PYPY:
-+ self.assertEqual(exc.col, 14)
-+ elif sys.version_info >= (3, 8):
- self.assertEqual(exc.col, 13)
- else:
- self.assertEqual(exc.col, 16)
-@@ -377,7 +383,10 @@ class Test(TestCase):
- m.DoctestSyntaxError,
- m.UndefinedName).messages
- self.assertEqual(exc1.lineno, 6)
-- self.assertEqual(exc1.col, 19)
-+ if PYPY:
-+ self.assertEqual(exc1.col, 20)
-+ else:
-+ self.assertEqual(exc1.col, 19)
- self.assertEqual(exc2.lineno, 7)
- self.assertEqual(exc2.col, 12)
-
diff --git a/dev-python/pyflakes/pyflakes-2.1.1.ebuild b/dev-python/pyflakes/pyflakes-2.1.1.ebuild
deleted file mode 100644
index aa1cda4d90ea..000000000000
--- a/dev-python/pyflakes/pyflakes-2.1.1.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
-
-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 ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-
-BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-RDEPEND="${BDEPEND}"
-
-PATCHES=(
- "${FILESDIR}/pyflakes-2.1.1-tests.patch"
- "${FILESDIR}/pyflakes-2.1.1-py38.patch"
-)
-
-distutils_enable_tests unittest