pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-flake8-3



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Jan 29 08:40:00 UTC 2022

Added Files:
        pkgsrc/devel/py-flake8-3: ALTERNATIVES DESCR Makefile PLIST distinfo
        pkgsrc/devel/py-flake8-3/patches: patch-setup.cfg

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-flake8-3/ALTERNATIVES \
    pkgsrc/devel/py-flake8-3/DESCR pkgsrc/devel/py-flake8-3/Makefile \
    pkgsrc/devel/py-flake8-3/PLIST pkgsrc/devel/py-flake8-3/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-flake8-3/patches/patch-setup.cfg

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/py-flake8-3/ALTERNATIVES
diff -u /dev/null pkgsrc/devel/py-flake8-3/ALTERNATIVES:1.1
--- /dev/null   Sat Jan 29 08:40:00 2022
+++ pkgsrc/devel/py-flake8-3/ALTERNATIVES       Sat Jan 29 08:40:00 2022
@@ -0,0 +1 @@
+bin/flake8 @PREFIX@/bin/flake8-@PYVERSSUFFIX@
Index: pkgsrc/devel/py-flake8-3/DESCR
diff -u /dev/null pkgsrc/devel/py-flake8-3/DESCR:1.1
--- /dev/null   Sat Jan 29 08:40:00 2022
+++ pkgsrc/devel/py-flake8-3/DESCR      Sat Jan 29 08:40:00 2022
@@ -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.
Index: pkgsrc/devel/py-flake8-3/Makefile
diff -u /dev/null pkgsrc/devel/py-flake8-3/Makefile:1.1
--- /dev/null   Sat Jan 29 08:40:00 2022
+++ pkgsrc/devel/py-flake8-3/Makefile   Sat Jan 29 08:40:00 2022
@@ -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"
Index: pkgsrc/devel/py-flake8-3/PLIST
diff -u /dev/null pkgsrc/devel/py-flake8-3/PLIST:1.1
--- /dev/null   Sat Jan 29 08:40:00 2022
+++ pkgsrc/devel/py-flake8-3/PLIST      Sat Jan 29 08:40:00 2022
@@ -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
Index: pkgsrc/devel/py-flake8-3/distinfo
diff -u /dev/null pkgsrc/devel/py-flake8-3/distinfo:1.1
--- /dev/null   Sat Jan 29 08:40:00 2022
+++ pkgsrc/devel/py-flake8-3/distinfo   Sat Jan 29 08:40:00 2022
@@ -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

Index: pkgsrc/devel/py-flake8-3/patches/patch-setup.cfg
diff -u /dev/null pkgsrc/devel/py-flake8-3/patches/patch-setup.cfg:1.1
--- /dev/null   Sat Jan 29 08:40:00 2022
+++ pkgsrc/devel/py-flake8-3/patches/patch-setup.cfg    Sat Jan 29 08:40:00 2022
@@ -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