pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-flake8-3 devel/py-flake8-3: import py27-flake...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dac3d3af60f0
branches:  trunk
changeset: 372704:dac3d3af60f0
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Jan 29 08:40:00 2022 +0000

description:
devel/py-flake8-3: import py27-flake8-3.9.2nb3

Flake8 is a wrapper around these tools:

* PyFlakes
* pep8
* Ned Batchelder's McCabe script

Flake8 runs all the tools by launching the single flake8 script.
It displays the warnings in a per-file, merged output.

This package contains the last version supporting Python 2.x.

diffstat:

 devel/py-flake8-3/ALTERNATIVES            |    1 +
 devel/py-flake8-3/DESCR                   |   10 ++
 devel/py-flake8-3/Makefile                |   44 +++++++++++++
 devel/py-flake8-3/PLIST                   |  101 ++++++++++++++++++++++++++++++
 devel/py-flake8-3/distinfo                |    6 +
 devel/py-flake8-3/patches/patch-setup.cfg |   19 +++++
 6 files changed, 181 insertions(+), 0 deletions(-)

diffs (205 lines):

diff -r cffd7ccbf396 -r dac3d3af60f0 devel/py-flake8-3/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flake8-3/ALTERNATIVES    Sat Jan 29 08:40:00 2022 +0000
@@ -0,0 +1,1 @@
+bin/flake8 @PREFIX@/bin/flake8-@PYVERSSUFFIX@
diff -r cffd7ccbf396 -r dac3d3af60f0 devel/py-flake8-3/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flake8-3/DESCR   Sat Jan 29 08:40:00 2022 +0000
@@ -0,0 +1,10 @@
+Flake8 is a wrapper around these tools:
+
+* PyFlakes
+* pep8
+* Ned Batchelder's McCabe script
+
+Flake8 runs all the tools by launching the single flake8 script.
+It displays the warnings in a per-file, merged output.
+
+This package contains the last version supporting Python 2.x.
diff -r cffd7ccbf396 -r dac3d3af60f0 devel/py-flake8-3/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flake8-3/Makefile        Sat Jan 29 08:40:00 2022 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2022/01/29 08:40:00 wiz Exp $
+
+DISTNAME=      flake8-3.9.2
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   3
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=f/flake8/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://gitlab.com/pycqa/flake8
+COMMENT=       Modular source code checker for Python programs
+LICENSE=       mit
+
+DEPENDS+=      ${PYPKGPREFIX}-codestyle>=2.7.0:../../devel/py-codestyle
+DEPENDS+=      ${PYPKGPREFIX}-flakes>=2.3.0:../../devel/py-flakes
+DEPENDS+=      ${PYPKGPREFIX}-mccabe>=0.6.0:../../devel/py-mccabe
+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
+DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata2
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
+TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=2.0.0:../../devel/py-mock
+# not for python 2
+#TEST_DEPENDS+=        ${PYPKGPREFIX}-pylint-[0-9]*:../../devel/py-pylint
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_ACCEPTED=      27
+
+USE_PKG_RESOURCES=     yes
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} flake8 flake8-${PYVERSSUFFIX} || ${TRUE}
+
+# as of 3.9.2
+# 21 failed, 460 passed, 1 error
+TEST_ENV+=     PYTHONPATH=${WRKSRC}/build/lib
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r cffd7ccbf396 -r dac3d3af60f0 devel/py-flake8-3/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flake8-3/PLIST   Sat Jan 29 08:40:00 2022 +0000
@@ -0,0 +1,101 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/29 08:40:00 wiz Exp $
+bin/flake8-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/flake8/__init__.py
+${PYSITELIB}/flake8/__init__.pyc
+${PYSITELIB}/flake8/__init__.pyo
+${PYSITELIB}/flake8/__main__.py
+${PYSITELIB}/flake8/__main__.pyc
+${PYSITELIB}/flake8/__main__.pyo
+${PYSITELIB}/flake8/_compat.py
+${PYSITELIB}/flake8/_compat.pyc
+${PYSITELIB}/flake8/_compat.pyo
+${PYSITELIB}/flake8/api/__init__.py
+${PYSITELIB}/flake8/api/__init__.pyc
+${PYSITELIB}/flake8/api/__init__.pyo
+${PYSITELIB}/flake8/api/legacy.py
+${PYSITELIB}/flake8/api/legacy.pyc
+${PYSITELIB}/flake8/api/legacy.pyo
+${PYSITELIB}/flake8/checker.py
+${PYSITELIB}/flake8/checker.pyc
+${PYSITELIB}/flake8/checker.pyo
+${PYSITELIB}/flake8/defaults.py
+${PYSITELIB}/flake8/defaults.pyc
+${PYSITELIB}/flake8/defaults.pyo
+${PYSITELIB}/flake8/exceptions.py
+${PYSITELIB}/flake8/exceptions.pyc
+${PYSITELIB}/flake8/exceptions.pyo
+${PYSITELIB}/flake8/formatting/__init__.py
+${PYSITELIB}/flake8/formatting/__init__.pyc
+${PYSITELIB}/flake8/formatting/__init__.pyo
+${PYSITELIB}/flake8/formatting/base.py
+${PYSITELIB}/flake8/formatting/base.pyc
+${PYSITELIB}/flake8/formatting/base.pyo
+${PYSITELIB}/flake8/formatting/default.py
+${PYSITELIB}/flake8/formatting/default.pyc
+${PYSITELIB}/flake8/formatting/default.pyo
+${PYSITELIB}/flake8/main/__init__.py
+${PYSITELIB}/flake8/main/__init__.pyc
+${PYSITELIB}/flake8/main/__init__.pyo
+${PYSITELIB}/flake8/main/application.py
+${PYSITELIB}/flake8/main/application.pyc
+${PYSITELIB}/flake8/main/application.pyo
+${PYSITELIB}/flake8/main/cli.py
+${PYSITELIB}/flake8/main/cli.pyc
+${PYSITELIB}/flake8/main/cli.pyo
+${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
+${PYSITELIB}/flake8/options/aggregator.py
+${PYSITELIB}/flake8/options/aggregator.pyc
+${PYSITELIB}/flake8/options/aggregator.pyo
+${PYSITELIB}/flake8/options/config.py
+${PYSITELIB}/flake8/options/config.pyc
+${PYSITELIB}/flake8/options/config.pyo
+${PYSITELIB}/flake8/options/manager.py
+${PYSITELIB}/flake8/options/manager.pyc
+${PYSITELIB}/flake8/options/manager.pyo
+${PYSITELIB}/flake8/plugins/__init__.py
+${PYSITELIB}/flake8/plugins/__init__.pyc
+${PYSITELIB}/flake8/plugins/__init__.pyo
+${PYSITELIB}/flake8/plugins/manager.py
+${PYSITELIB}/flake8/plugins/manager.pyc
+${PYSITELIB}/flake8/plugins/manager.pyo
+${PYSITELIB}/flake8/plugins/pyflakes.py
+${PYSITELIB}/flake8/plugins/pyflakes.pyc
+${PYSITELIB}/flake8/plugins/pyflakes.pyo
+${PYSITELIB}/flake8/processor.py
+${PYSITELIB}/flake8/processor.pyc
+${PYSITELIB}/flake8/processor.pyo
+${PYSITELIB}/flake8/statistics.py
+${PYSITELIB}/flake8/statistics.pyc
+${PYSITELIB}/flake8/statistics.pyo
+${PYSITELIB}/flake8/style_guide.py
+${PYSITELIB}/flake8/style_guide.pyc
+${PYSITELIB}/flake8/style_guide.pyo
+${PYSITELIB}/flake8/utils.py
+${PYSITELIB}/flake8/utils.pyc
+${PYSITELIB}/flake8/utils.pyo
diff -r cffd7ccbf396 -r dac3d3af60f0 devel/py-flake8-3/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flake8-3/distinfo        Sat Jan 29 08:40:00 2022 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/01/29 08:40:00 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
diff -r cffd7ccbf396 -r dac3d3af60f0 devel/py-flake8-3/patches/patch-setup.cfg
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flake8-3/patches/patch-setup.cfg Sat Jan 29 08:40:00 2022 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-setup.cfg,v 1.1 2022/01/29 08:40:00 wiz Exp $
+
+Relax restrictions.
+
+--- setup.cfg.orig     2021-05-08 19:51:38.402109600 +0000
++++ setup.cfg
+@@ -36,9 +36,9 @@ 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"



Home | Main Index | Thread Index | Old Index