pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-lama py-lama: updated to 7.6.6
details: https://anonhg.NetBSD.org/pkgsrc/rev/6b114cd90ccd
branches: trunk
changeset: 387543:6b114cd90ccd
user: adam <adam%pkgsrc.org@localhost>
date: Tue Nov 20 14:14:16 2018 +0000
description:
py-lama: updated to 7.6.6
7.6.6:
Unknown changes
diffstat:
devel/py-lama/ALTERNATIVES | 2 +-
devel/py-lama/DESCR | 10 ++++++-
devel/py-lama/Makefile | 18 ++++++------
devel/py-lama/PLIST | 16 ++++++++---
devel/py-lama/distinfo | 13 ++++-----
devel/py-lama/patches/patch-pylama_config.py | 37 ----------------------------
devel/py-lama/patches/patch-pylama_main.py | 25 ------------------
devel/py-lama/patches/patch-setup.py | 15 +++++++++++
8 files changed, 51 insertions(+), 85 deletions(-)
diffs (208 lines):
diff -r ff8c97315ae0 -r 6b114cd90ccd devel/py-lama/ALTERNATIVES
--- a/devel/py-lama/ALTERNATIVES Tue Nov 20 14:11:09 2018 +0000
+++ b/devel/py-lama/ALTERNATIVES Tue Nov 20 14:14:16 2018 +0000
@@ -1,1 +1,1 @@
-bin/pylama @PREFIX@/bin/pylama@PYVERSSUFFIX@
+bin/pylama @PREFIX@/bin/pylama-@PYVERSSUFFIX@
diff -r ff8c97315ae0 -r 6b114cd90ccd devel/py-lama/DESCR
--- a/devel/py-lama/DESCR Tue Nov 20 14:11:09 2018 +0000
+++ b/devel/py-lama/DESCR Tue Nov 20 14:14:16 2018 +0000
@@ -1,1 +1,9 @@
-Code audit tool for python.
+Code audit tool for Python and JavaScript. Pylama wraps these tools:
+* pycodestyle (formerly pep8)
+* pydocstyle (formerly pep257)
+* PyFlakes
+* Mccabe
+* Pylint
+* Radon
+* gjslin
+* eradicate
diff -r ff8c97315ae0 -r 6b114cd90ccd devel/py-lama/Makefile
--- a/devel/py-lama/Makefile Tue Nov 20 14:11:09 2018 +0000
+++ b/devel/py-lama/Makefile Tue Nov 20 14:14:16 2018 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2018/07/05 11:23:29 adam Exp $
+# $NetBSD: Makefile,v 1.5 2018/11/20 14:14:16 adam Exp $
-DISTNAME= pylama-7.4.3
+DISTNAME= pylama-7.6.6
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
-PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pylama/}
@@ -15,15 +14,16 @@
DEPENDS+= ${PYPKGPREFIX}-docstyle>=2.0.0:../../devel/py-docstyle
DEPENDS+= ${PYPKGPREFIX}-flakes>=1.5.0:../../devel/py-flakes
DEPENDS+= ${PYPKGPREFIX}-mccabe>=0.5.2:../../devel/py-mccabe
-DEPENDS+= ${PYPKGPREFIX}-py-[0-9]*:../../devel/py-py
-DEPENDS+= ${PYPKGPREFIX}-radon-[0-9]*:../../devel/py-radon
+# extensions
+DEPENDS+= ${PYPKGPREFIX}-eradicate-[0-9]*:../../textproc/py-eradicate
+DEPENDS+= ${PYPKGPREFIX}-radon>=1.4.2:../../devel/py-radon
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+USE_LANGUAGES= # none
+
post-install:
- cd ${DESTDIR}${PREFIX}/bin && ${MV} pylama pylama${PYVERSSUFFIX} || ${TRUE}
+ cd ${DESTDIR}${PREFIX}/bin && \
+ ${MV} pylama pylama-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
-# UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 148: ordinal not in range(128)
-# https://github.com/klen/pylama/issues/93
-MAKE_ENV+= LC_ALL=en_US.UTF-8
diff -r ff8c97315ae0 -r 6b114cd90ccd devel/py-lama/PLIST
--- a/devel/py-lama/PLIST Tue Nov 20 14:11:09 2018 +0000
+++ b/devel/py-lama/PLIST Tue Nov 20 14:14:16 2018 +0000
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.2 2017/07/30 17:34:41 adam Exp $
-bin/pylama${PYVERSSUFFIX}
+@comment $NetBSD: PLIST,v 1.3 2018/11/20 14:14:16 adam Exp $
+bin/pylama-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -13,9 +13,9 @@
${PYSITELIB}/pylama/__main__.py
${PYSITELIB}/pylama/__main__.pyc
${PYSITELIB}/pylama/__main__.pyo
-${PYSITELIB}/pylama/async.py
-${PYSITELIB}/pylama/async.pyc
-${PYSITELIB}/pylama/async.pyo
+${PYSITELIB}/pylama/check_async.py
+${PYSITELIB}/pylama/check_async.pyc
+${PYSITELIB}/pylama/check_async.pyo
${PYSITELIB}/pylama/config.py
${PYSITELIB}/pylama/config.pyc
${PYSITELIB}/pylama/config.pyo
@@ -43,6 +43,9 @@
${PYSITELIB}/pylama/lint/extensions.py
${PYSITELIB}/pylama/lint/extensions.pyc
${PYSITELIB}/pylama/lint/extensions.pyo
+${PYSITELIB}/pylama/lint/pylama_eradicate.py
+${PYSITELIB}/pylama/lint/pylama_eradicate.pyc
+${PYSITELIB}/pylama/lint/pylama_eradicate.pyo
${PYSITELIB}/pylama/lint/pylama_mccabe.py
${PYSITELIB}/pylama/lint/pylama_mccabe.pyc
${PYSITELIB}/pylama/lint/pylama_mccabe.pyo
@@ -55,6 +58,9 @@
${PYSITELIB}/pylama/lint/pylama_pyflakes.py
${PYSITELIB}/pylama/lint/pylama_pyflakes.pyc
${PYSITELIB}/pylama/lint/pylama_pyflakes.pyo
+${PYSITELIB}/pylama/lint/pylama_pylint.py
+${PYSITELIB}/pylama/lint/pylama_pylint.pyc
+${PYSITELIB}/pylama/lint/pylama_pylint.pyo
${PYSITELIB}/pylama/lint/pylama_radon.py
${PYSITELIB}/pylama/lint/pylama_radon.pyc
${PYSITELIB}/pylama/lint/pylama_radon.pyo
diff -r ff8c97315ae0 -r 6b114cd90ccd devel/py-lama/distinfo
--- a/devel/py-lama/distinfo Tue Nov 20 14:11:09 2018 +0000
+++ b/devel/py-lama/distinfo Tue Nov 20 14:14:16 2018 +0000
@@ -1,8 +1,7 @@
-$NetBSD: distinfo,v 1.4 2018/07/05 11:23:29 adam Exp $
+$NetBSD: distinfo,v 1.5 2018/11/20 14:14:16 adam Exp $
-SHA1 (pylama-7.4.3.tar.gz) = 45e4780ea0d492df7c7a35ed358610f69f075fff
-RMD160 (pylama-7.4.3.tar.gz) = 122aae2985f3bd3402e394dc9ac41fa2e36e5728
-SHA512 (pylama-7.4.3.tar.gz) = 7d4ab9cb0a1390fa4d2dc96bd88cac52b4ec5a4a72e08e1e6dab913fea06e5bb19c761c1c23dcddf91a297f6688a1196e52cdd2f05dc9cb8564d3178a99e27b8
-Size (pylama-7.4.3.tar.gz) = 28631 bytes
-SHA1 (patch-pylama_config.py) = 0b2dd66c33b60d6c5da75aae421172dd4a3717ec
-SHA1 (patch-pylama_main.py) = 33b955fac19021faedc54b0dad3ff8c719268bd3
+SHA1 (pylama-7.6.6.tar.gz) = a168ef9c08603a629fde3c8f20074435361f2985
+RMD160 (pylama-7.6.6.tar.gz) = 71950b45bac1b86494454b8ea2d42aff85261f06
+SHA512 (pylama-7.6.6.tar.gz) = 5bb1c28ee14a871f6df7d91ac855be22064e9ae21614d89d92633899c54aa2273bb91683063655f795aef517d1180902053a770264be4e1165d985b071016402
+Size (pylama-7.6.6.tar.gz) = 32401 bytes
+SHA1 (patch-setup.py) = b0efe33e509008ad6e696eaf17cad60ac6750370
diff -r ff8c97315ae0 -r 6b114cd90ccd devel/py-lama/patches/patch-pylama_config.py
--- a/devel/py-lama/patches/patch-pylama_config.py Tue Nov 20 14:11:09 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-$NetBSD: patch-pylama_config.py,v 1.1 2018/07/05 11:23:29 adam Exp $
-
-Fix Python 3.7 compatibility.
-https://github.com/klen/pylama/pull/120/commits/fb8cab00ab7881c1f5b01e0b541cde7957f65fb5
-
---- pylama/config.py.orig 2017-09-13 14:15:27.000000000 +0000
-+++ pylama/config.py
-@@ -128,7 +128,7 @@ PARSER.add_argument(
- "--hook", action="store_true", help="Install Git (Mercurial) hook.")
-
- PARSER.add_argument(
-- "--async", action="store_true",
-+ "--async", action="store_true", dest='async_mode',
- help="Enable async mode. Useful for checking a lot of files. "
- "Unsupported with pylint.")
-
-@@ -168,6 +168,8 @@ def parse_options(args=None, config=True
- if config:
- cfg = get_config(str(options.options), rootdir=rootdir)
- for opt, val in cfg.default.items():
-+ if opt == 'async':
-+ opt = 'async_mode'
- LOGGER.info('Find option %s (%s)', opt, val)
- passed_value = getattr(options, opt, _Default())
- if isinstance(passed_value, _Default):
-@@ -199,9 +201,9 @@ def parse_options(args=None, config=True
- if isinstance(value, _Default):
- setattr(options, name, process_value(name, value.value))
-
-- if options.async and 'pylint' in options.linters:
-+ if options.async_mode and 'pylint' in options.linters:
- LOGGER.warning('Can\'t parse code asynchronously with pylint enabled.')
-- options.async = False
-+ options.async_mode = False
-
- return options
-
diff -r ff8c97315ae0 -r 6b114cd90ccd devel/py-lama/patches/patch-pylama_main.py
--- a/devel/py-lama/patches/patch-pylama_main.py Tue Nov 20 14:11:09 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-$NetBSD: patch-pylama_main.py,v 1.1 2018/07/05 11:23:29 adam Exp $
-
-Fix Python 3.7 compatibility.
-https://github.com/klen/pylama/pull/120/commits/fb8cab00ab7881c1f5b01e0b541cde7957f65fb5
-
---- pylama/main.py.orig 2016-10-25 17:22:56.000000000 +0000
-+++ pylama/main.py
-@@ -7,7 +7,7 @@ from os import walk, path as op
-
- from .config import parse_options, CURDIR, setup_logger
- from .core import LOGGER, run
--from .async import check_async
-+from .async_mode import check_async
-
-
- def check_path(options, rootdir=None, candidates=None, code=None):
-@@ -43,7 +43,7 @@ def check_path(options, rootdir=None, ca
-
- paths.append(path)
-
-- if options.async:
-+ if options.async_mode:
- return check_async(paths, options, rootdir)
-
- errors = []
diff -r ff8c97315ae0 -r 6b114cd90ccd devel/py-lama/patches/patch-setup.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-lama/patches/patch-setup.py Tue Nov 20 14:14:16 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2018/11/20 14:14:16 adam Exp $
+
+Do not install tests.
+
+--- setup.py.orig 2018-11-20 13:13:48.000000000 +0000
++++ setup.py
+@@ -35,7 +35,7 @@ meta = dict(
+ author_email='horneds%gmail.com@localhost',
+ url=' https://github.com/klen/pylama',
+
+- packages=find_packages(exclude=['plugins']),
++ packages=find_packages(exclude=['tests']),
+
+ entry_points={
+ 'console_scripts': [
Home |
Main Index |
Thread Index |
Old Index