pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-flake8 py310-flake8: update to 4.0.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8edc4143d2b1
branches:  trunk
changeset: 372709:8edc4143d2b1
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Jan 29 08:56:51 2022 +0000

description:
py310-flake8: update to 4.0.1.

4.0.1 -- 2021-10-11
-------------------

Bugs Fixed
~~~~~~~~~~

- Fix parallel execution collecting a ``SyntaxError`` (See also :pull:`1410`
  :issue:`1408`).

4.0.0 -- 2021-10-10
-------------------

Backwards Incompatible Changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Remove ``--install-hook`` vcs integration (See also :issue:`1008`).
- Remove ``setuptools`` command (See also :issue:`1009`).
- Migrate from GitLab to GitHub (See also :pull:`1305`).
- Due to constant confusion by users, user-level |Flake8| configuration files
  are no longer supported. Files will not be searched for in the user's home
  directory (e.g., ``~/.flake8``) nor in the XDG config directory (e.g.,
  ``~/.config/flake8``).  (See also :pull:`1404`).

New Dependency Information
~~~~~~~~~~~~~~~~~~~~~~~~~~

- pycodestyle has been updated to >= 2.8.0, < 2.9.0 (See also :pull:`1406`).
- Pyflakes has been updated to >= 2.4.0, < 2.5.0 (See also :pull:`1406`).
- flake8 requires python >= 3.6 (See also :issue:`1010`).

Features
~~~~~~~~

- Add ``--extend-select`` option (See also :pull:`1312` :issue:`1061`).
- Automatically create directories for output files (See also :pull:`1329`).

Bugs Fixed
~~~~~~~~~~

- ``ast`` parse before tokenizing to improve ``SyntaxError`` errors (See also
  :pull:`1320` :issue:`740`).
- Fix warning in ``--indent-size`` argparse help (See also :pull:`1367`).
- Fix handling ``SyntaxError`` in python 3.10+ (See also :pull:`1374`
  :issue:`1372`).
- Fix writing non-cp1252-encodable when output is piped on windows (See also
  :pull:`1382` :issue:`1381`).

diffstat:

 devel/py-flake8/Makefile                |  26 +++++++++-----------------
 devel/py-flake8/PLIST                   |  14 +-------------
 devel/py-flake8/distinfo                |  10 +++++-----
 devel/py-flake8/patches/patch-setup.cfg |  28 +++++++++++++++-------------
 4 files changed, 30 insertions(+), 48 deletions(-)

diffs (139 lines):

diff -r 8a49e6f3fdf1 -r 8edc4143d2b1 devel/py-flake8/Makefile
--- a/devel/py-flake8/Makefile  Sat Jan 29 08:48:40 2022 +0000
+++ b/devel/py-flake8/Makefile  Sat Jan 29 08:56:51 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.42 2022/01/27 10:03:27 wiz Exp $
+# $NetBSD: Makefile,v 1.43 2022/01/29 08:56:51 wiz Exp $
 
-DISTNAME=      flake8-3.9.2
+DISTNAME=      flake8-4.0.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   3
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=f/flake8/}
 
@@ -15,33 +14,26 @@
 DEPENDS+=      ${PYPKGPREFIX}-flakes>=2.3.0:../../devel/py-flakes
 DEPENDS+=      ${PYPKGPREFIX}-mccabe>=0.6.0:../../devel/py-mccabe
 .include "../../lang/python/pyversion.mk"
-.if ${_PYTHON_VERSION} == 27
-DEPENDS+=      ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser
-DEPENDS+=      ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
-DEPENDS+=      ${PYPKGPREFIX}-functools32-[0-9]*:../../devel/py-functools32
-DEPENDS+=      ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing
+.if ${_PYTHON_VERSION} < 38
+DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
 .endif
-.if ${_PYTHON_VERSION} < 38
-PYTHON_VERSIONED_DEPENDENCIES+=        importlib-metadata
-.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}-pylint-[0-9]*:../../devel/py-pylint
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
 USE_LANGUAGES= # none
 
 USE_PKG_RESOURCES=     yes
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} flake8 flake8-${PYVERSSUFFIX} || ${TRUE}
 
-# as of 3.9.2
-# 21 failed, 460 passed, 1 error
+# as of 4.0.1
+# 21 failed, 460 passed
 TEST_ENV+=     PYTHONPATH=${WRKSRC}/build/lib
 do-test:
        cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
 
 .include "../../lang/python/egg.mk"
-.include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 8a49e6f3fdf1 -r 8edc4143d2b1 devel/py-flake8/PLIST
--- a/devel/py-flake8/PLIST     Sat Jan 29 08:48:40 2022 +0000
+++ b/devel/py-flake8/PLIST     Sat Jan 29 08:56:51 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2020/05/12 06:40:19 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2022/01/29 08:56:51 wiz Exp $
 bin/flake8-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -51,21 +51,9 @@
 ${PYSITELIB}/flake8/main/debug.py
 ${PYSITELIB}/flake8/main/debug.pyc
 ${PYSITELIB}/flake8/main/debug.pyo
-${PYSITELIB}/flake8/main/git.py
-${PYSITELIB}/flake8/main/git.pyc
-${PYSITELIB}/flake8/main/git.pyo
-${PYSITELIB}/flake8/main/mercurial.py
-${PYSITELIB}/flake8/main/mercurial.pyc
-${PYSITELIB}/flake8/main/mercurial.pyo
 ${PYSITELIB}/flake8/main/options.py
 ${PYSITELIB}/flake8/main/options.pyc
 ${PYSITELIB}/flake8/main/options.pyo
-${PYSITELIB}/flake8/main/setuptools_command.py
-${PYSITELIB}/flake8/main/setuptools_command.pyc
-${PYSITELIB}/flake8/main/setuptools_command.pyo
-${PYSITELIB}/flake8/main/vcs.py
-${PYSITELIB}/flake8/main/vcs.pyc
-${PYSITELIB}/flake8/main/vcs.pyo
 ${PYSITELIB}/flake8/options/__init__.py
 ${PYSITELIB}/flake8/options/__init__.pyc
 ${PYSITELIB}/flake8/options/__init__.pyo
diff -r 8a49e6f3fdf1 -r 8edc4143d2b1 devel/py-flake8/distinfo
--- a/devel/py-flake8/distinfo  Sat Jan 29 08:48:40 2022 +0000
+++ b/devel/py-flake8/distinfo  Sat Jan 29 08:56:51 2022 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.33 2022/01/27 10:03:27 wiz Exp $
+$NetBSD: distinfo,v 1.34 2022/01/29 08:56:51 wiz Exp $
 
-BLAKE2s (flake8-3.9.2.tar.gz) = 637dac4f55a50bb5ceef86752577c438067d8ada6e42b09f21bc31cb0147b681
-SHA512 (flake8-3.9.2.tar.gz) = 618fe1b35070b24395e5d4da9fa1b1f6308abf6f85d8de71b8b553f84d70d9cd7d2a6f616fa1418db9a8b5ad3efab038f4e2d7c6020c0c1bdeb8157e666911fd
-Size (flake8-3.9.2.tar.gz) = 164777 bytes
-SHA1 (patch-setup.cfg) = 0574ebd80ba0c9f92ab9d928635bca91535c8ccc
+BLAKE2s (flake8-4.0.1.tar.gz) = 82c4437a6b6105f5ef077220f01151b2e6a136740bd2b22f436a375b642a6337
+SHA512 (flake8-4.0.1.tar.gz) = 0bdbf0218ce893df1c3e61f51cd3f371a5c72bb49ef78fec39548b1684e49b024e91cf4e3dcea60ba1efc08727985ef485814c372461e062ff4f810da99a1796
+Size (flake8-4.0.1.tar.gz) = 154905 bytes
+SHA1 (patch-setup.cfg) = dcd88ef61be0b276e73bb333f48c3dc924905ca6
diff -r 8a49e6f3fdf1 -r 8edc4143d2b1 devel/py-flake8/patches/patch-setup.cfg
--- a/devel/py-flake8/patches/patch-setup.cfg   Sat Jan 29 08:48:40 2022 +0000
+++ b/devel/py-flake8/patches/patch-setup.cfg   Sat Jan 29 08:56:51 2022 +0000
@@ -1,19 +1,21 @@
-$NetBSD: patch-setup.cfg,v 1.6 2022/01/27 10:03:27 wiz Exp $
+$NetBSD: patch-setup.cfg,v 1.7 2022/01/29 08:56:52 wiz Exp $
 
 Relax restrictions.
 
---- setup.cfg.orig     2021-05-08 19:51:38.402109600 +0000
+--- setup.cfg.orig     2021-10-11 12:42:30.357466700 +0000
 +++ setup.cfg
-@@ -36,9 +36,9 @@ package_dir = 
+@@ -35,10 +35,10 @@ packages = find:
+ package_dir = 
        =src
- packages = find:
  install_requires = 
--      pyflakes >= 2.3.0, < 2.4.0
--      pycodestyle >= 2.7.0, < 2.8.0
--      mccabe >= 0.6.0, < 0.7.0
-+      pyflakes >= 2.3.0
-+      pycodestyle >= 2.7.0
-+      mccabe >= 0.6.0
-       enum34; python_version<"3.4"
-       typing; python_version<"3.5"
-       configparser; python_version<"3.2"
+-      mccabe>=0.6.0,<0.7.0
+-      pycodestyle>=2.8.0,<2.9.0
+-      pyflakes>=2.4.0,<2.5.0
+-      importlib-metadata<4.3;python_version<"3.8"
++      mccabe>=0.6.0
++      pycodestyle>=2.8.0
++      pyflakes>=2.4.0
++      importlib-metadata3;python_version<"3.8"
+ python_requires = >=3.6
+ 
+ [options.packages.find]



Home | Main Index | Thread Index | Old Index