pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-flake8 py-flake8: updated to 3.6.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7dc90fa25f1a
branches:  trunk
changeset: 324605:7dc90fa25f1a
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Oct 24 10:35:46 2018 +0000

description:
py-flake8: updated to 3.6.0

3.6.0:

Features
Add paths to allow local plugins to exist outside of sys.path
Copy setup.cfg files to the temporary git hook execution directory
Only skip a file if flake8: noqa is on a line by itself
Provide a better user experience for broken plugins
Report E902 when a file passed on the command line does not exist
Add --extend-ignore for extending the default ignore instead of overriding it

Bugs Fixed
Respect a formatter?s newline setting when printing
Fix leaking of processes in the legacy api
Fix a SyntaxWarning for an invalid escape sequence
Fix DeprecationWarning due to import of abc classes from the collections module
Defer setuptools import to improve flake8 startup time
Fix inconsistent line endings in FileProcessor.lines when running under python 3.x

diffstat:

 devel/py-flake8/Makefile                |  17 +++++++------
 devel/py-flake8/distinfo                |  13 ++++------
 devel/py-flake8/patches/patch-setup.cfg |  20 ----------------
 devel/py-flake8/patches/patch-setup.py  |  39 ---------------------------------
 devel/py-flake8/patches/patch-tox.ini   |  17 --------------
 5 files changed, 14 insertions(+), 92 deletions(-)

diffs (146 lines):

diff -r 785b83cebd4b -r 7dc90fa25f1a devel/py-flake8/Makefile
--- a/devel/py-flake8/Makefile  Wed Oct 24 10:08:17 2018 +0000
+++ b/devel/py-flake8/Makefile  Wed Oct 24 10:35:46 2018 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.18 2018/09/28 15:45:15 tnn Exp $
+# $NetBSD: Makefile,v 1.19 2018/10/24 10:35:46 adam Exp $
 
-DISTNAME=      flake8-3.5.0
+DISTNAME=      flake8-3.6.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=f/flake8/}
 
@@ -11,18 +10,20 @@
 COMMENT=       Modular source code checker for Python programs
 LICENSE=       mit
 
-DEPENDS+=      ${PYPKGPREFIX}-flakes>=1.5.0:../../devel/py-flakes
+DEPENDS+=      ${PYPKGPREFIX}-codestyle>=2.4.0:../../devel/py-codestyle
+DEPENDS+=      ${PYPKGPREFIX}-flakes>=2.0.0:../../devel/py-flakes
 DEPENDS+=      ${PYPKGPREFIX}-mccabe>=0.6.0:../../devel/py-mccabe
-DEPENDS+=      ${PYPKGPREFIX}-codestyle>=2.4.0:../../devel/py-codestyle
+DEPENDS+=      ${PYPKGPREFIX}-setuptools>=30:../../devel/py-codestyle
 .include "../../lang/python/pyversion.mk"
-.if "${PYPKGPREFIX}" == "py27"
+.if ${_PYTHON_VERSION} == 27
 DEPENDS+=      ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser
 DEPENDS+=      ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
 .endif
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
+TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=2.0.0:../../devel/py-mock
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
-TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+USE_LANGUAGES= # none
 
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && ${MV} flake8 flake8-${PYVERSSUFFIX} || ${TRUE}
diff -r 785b83cebd4b -r 7dc90fa25f1a devel/py-flake8/distinfo
--- a/devel/py-flake8/distinfo  Wed Oct 24 10:08:17 2018 +0000
+++ b/devel/py-flake8/distinfo  Wed Oct 24 10:35:46 2018 +0000
@@ -1,9 +1,6 @@
-$NetBSD: distinfo,v 1.13 2018/06/18 11:17:54 adam Exp $
+$NetBSD: distinfo,v 1.14 2018/10/24 10:35:46 adam Exp $
 
-SHA1 (flake8-3.5.0.tar.gz) = 302f39432917f57bb4f0f1c1573c96074913b46f
-RMD160 (flake8-3.5.0.tar.gz) = 4533c09c33394ca31ab081ed09f370dfac415882
-SHA512 (flake8-3.5.0.tar.gz) = ac5d1bd9c44ed76c9e5cbd941b24bb552aa76e156b24ccda6cc8440ee90f3a574fdb393665adc75298e4f57111d7ab3115ef21ef9088fb327d0a9703d442450c
-Size (flake8-3.5.0.tar.gz) = 140608 bytes
-SHA1 (patch-setup.cfg) = f0bcf4fc363a933365c553d1957c9892ce364802
-SHA1 (patch-setup.py) = b04563b206e065044d24955868cd38408b9a013f
-SHA1 (patch-tox.ini) = ff417d4d05a5846db467015f19fba095e368ef70
+SHA1 (flake8-3.6.0.tar.gz) = a00b23465dac455796e32bfbe76cfef3434003fb
+RMD160 (flake8-3.6.0.tar.gz) = 991d42b9e138b0368bc0670cdb5cdef483bb713e
+SHA512 (flake8-3.6.0.tar.gz) = f4377bc7806074a88f88b3652c3061583e576ee515b2b741cee9c6dc18f84f34a7807c93fda9dca3d8b006e379dcee60bb3ae20e6a2e62fd216a82a2b36f2eb5
+Size (flake8-3.6.0.tar.gz) = 144684 bytes
diff -r 785b83cebd4b -r 7dc90fa25f1a devel/py-flake8/patches/patch-setup.cfg
--- a/devel/py-flake8/patches/patch-setup.cfg   Wed Oct 24 10:08:17 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-setup.cfg,v 1.4 2018/06/18 11:17:54 adam Exp $
-
-Allow newer py-flakes.
-Add support for pycodestyle-2.4.0.
-
-From upstream commits 0273ca56, 85c503de, 68782675, e61d9d24, ef1d5cee.
-
---- setup.cfg.orig     2017-10-23 11:16:02.000000000 +0000
-+++ setup.cfg
-@@ -8,8 +8,8 @@ universal = 1
- requires-dist = 
-       enum34; python_version<"3.4"
-       configparser; python_version<"3.2"
--      pyflakes >= 1.5.0, < 1.7.0
--      pycodestyle >= 2.0.0, < 2.4.0
-+      pyflakes >= 1.5.0
-+      pycodestyle >= 2.4.0
-       mccabe >= 0.6.0, < 0.7.0
- 
- [egg_info]
diff -r 785b83cebd4b -r 7dc90fa25f1a devel/py-flake8/patches/patch-setup.py
--- a/devel/py-flake8/patches/patch-setup.py    Wed Oct 24 10:08:17 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-$NetBSD: patch-setup.py,v 1.4 2018/06/18 11:17:54 adam Exp $
-
-Allow newer py-flakes.
-Add support for pycodestyle-2.4.0.
-
-From upstream commits 0273ca56, 85c503de, 68782675, e61d9d24, ef1d5cee.
-
---- setup.py.orig      2017-08-08 00:31:43.000000000 +0000
-+++ setup.py
-@@ -21,8 +21,8 @@ requires = [
-     # http://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies
-     # And in which releases we will update those ranges here:
-     # http://flake8.pycqa.org/en/latest/internal/releases.html#releasing-flake8
--    "pyflakes >= 1.5.0, < 1.7.0",
--    "pycodestyle >= 2.0.0, < 2.4.0",
-+    "pyflakes >= 1.5.0",
-+    "pycodestyle >= 2.4.0",
-     "mccabe >= 0.6.0, < 0.7.0",
-     "setuptools >= 30",
- ]
-@@ -108,7 +108,8 @@ setuptools.setup(
-             PEP8_PLUGIN('module_imports_on_top_of_file'),
-             PEP8_PLUGIN('compound_statements'),
-             PEP8_PLUGIN('explicit_line_join'),
--            PEP8_PLUGIN('break_around_binary_operator'),
-+            PEP8_PLUGIN('break_after_binary_operator'),
-+            PEP8_PLUGIN('break_before_binary_operator'),
-             PEP8_PLUGIN('comparison_to_singleton'),
-             PEP8_PLUGIN('comparison_negative'),
-             PEP8_PLUGIN('comparison_type'),
-@@ -118,6 +119,8 @@ setuptools.setup(
-             PEP8_PLUGIN('python_3000_raise_comma'),
-             PEP8_PLUGIN('python_3000_not_equal'),
-             PEP8_PLUGIN('python_3000_backticks'),
-+            PEP8_PLUGIN('python_3000_invalid_escape_sequence'),
-+            PEP8_PLUGIN('python_3000_async_await_keywords'),
-         ],
-         'flake8.report': [
-             'default = flake8.formatting.default:Default',
diff -r 785b83cebd4b -r 7dc90fa25f1a devel/py-flake8/patches/patch-tox.ini
--- a/devel/py-flake8/patches/patch-tox.ini     Wed Oct 24 10:08:17 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-tox.ini,v 1.1 2018/05/14 07:39:55 leot Exp $
-
-Add support for pycodestyle-2.4.0.
-
-From upstream commits 0273ca56, 85c503de, 68782675, e61d9d24, ef1d5cee.
-
---- tox.ini.orig       2017-05-28 13:15:48.000000000 +0000
-+++ tox.ini
-@@ -141,7 +141,7 @@ commands =
- # defaults to selecting all other errors so we do not need select=E,F,W,I,D
- # Once Flake8 3.0 is released and in a good state, we can use both and it will
- # work well \o/
--ignore = D203
-+ignore = D203, W504
- exclude =
-     .tox,
-     .git,



Home | Main Index | Thread Index | Old Index