Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-lint devel/py-lint: import py-lint-2.5.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b9568767ae95
branches:  trunk
changeset: 432049:b9568767ae95
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon May 18 12:44:51 2020 +0000

description:
devel/py-lint: import py-lint-2.5.2

Packaged for wip by Aleksej Lebedev and updated by me.

Pylint is a Python source code analyzer which looks for programming
errors, helps enforcing a coding standard and sniffs for some code
smells (as defined in Martin Fowler's Refactoring book).
Pylint can be seen as another PyChecker since nearly all tests you
can do with PyChecker can also be done with Pylint. However, Pylint
offers some more features, like checking length of lines of code,
checking if variable names are well-formed according to your coding
standard, or checking if declared interfaces are truly implemented,
and much more. Additionally, it is possible to write plugins to
add your own checks.

diffstat:

 devel/py-lint/ALTERNATIVES |    4 +
 devel/py-lint/DESCR        |   10 +
 devel/py-lint/Makefile     |   46 ++++++++
 devel/py-lint/PLIST        |  252 +++++++++++++++++++++++++++++++++++++++++++++
 devel/py-lint/distinfo     |    6 +
 5 files changed, 318 insertions(+), 0 deletions(-)

diffs (truncated from 338 to 300 lines):

diff -r bc6f848ece36 -r b9568767ae95 devel/py-lint/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-lint/ALTERNATIVES        Mon May 18 12:44:51 2020 +0000
@@ -0,0 +1,4 @@
+bin/epylint @PREFIX@/bin/epylint-@PYVERSSUFFIX@
+bin/pylint @PREFIX@/bin/pylint-@PYVERSSUFFIX@
+bin/pyreverse @PREFIX@/bin/pyreverse-@PYVERSSUFFIX@
+bin/symilar @PREFIX@/bin/symilar-@PYVERSSUFFIX@
diff -r bc6f848ece36 -r b9568767ae95 devel/py-lint/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-lint/DESCR       Mon May 18 12:44:51 2020 +0000
@@ -0,0 +1,10 @@
+Pylint is a Python source code analyzer which looks for programming
+errors, helps enforcing a coding standard and sniffs for some code
+smells (as defined in Martin Fowler's Refactoring book).
+Pylint can be seen as another PyChecker since nearly all tests you
+can do with PyChecker can also be done with Pylint. However, Pylint
+offers some more features, like checking length of lines of code,
+checking if variable names are well-formed according to your coding
+standard, or checking if declared interfaces are truly implemented,
+and much more. Additionally, it is possible to write plugins to
+add your own checks.
diff -r bc6f848ece36 -r b9568767ae95 devel/py-lint/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-lint/Makefile    Mon May 18 12:44:51 2020 +0000
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.3 2020/05/18 12:44:51 wiz Exp $
+
+DISTNAME=      pylint-2.5.2
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pylint/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.pylint.org/
+COMMENT=       Python source code analyzer
+LICENSE=       gnu-gpl-v2
+
+.include "../../lang/python/pyversion.mk"
+
+DEPENDS+=      ${PYPKGPREFIX}-astroid>=1.6.0:../../devel/py-astroid
+DEPENDS+=      ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort
+DEPENDS+=      ${PYPKGPREFIX}-mccabe-[0-9]*:../../devel/py-mccabe
+DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+.if ${PYVERSSUFFIX} == "2.7"
+DEPENDS+=      ${PYPKGPREFIX}-backports.functools_lru_cache-[0-9]*:../../devel/py-backports.functools_lru_cache
+DEPENDS+=      ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser
+DEPENDS+=      ${PYPKGPREFIX}-singledispatch-[0-9]*:../../devel/py-singledispatch
+.endif
+
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-benchmark-[0-9]*:../../devel/py-test-benchmark
+
+PYTHON_VERSIONED_DEPENDENCIES+=        test:test
+
+USE_LANGUAGES= # none
+
+INSTALLATION_DIRS=     ${PKGMANDIR}/man1
+
+post-install:
+.for file in epylint pylint pyreverse symilar
+       ${MV} ${DESTDIR}${PREFIX}/bin/${file} ${DESTDIR}${PREFIX}/bin/${file}-${PYVERSSUFFIX} || ${TRUE}
+       ${INSTALL_DATA} ${WRKSRC}/man/${file}.1 \
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${file}-${PYVERSSUFFIX}.1
+.endfor
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} PYTHONPATH=. py.test-${PYVERSSUFFIX}
+
+.include "../../lang/python/versioned_dependencies.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r bc6f848ece36 -r b9568767ae95 devel/py-lint/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-lint/PLIST       Mon May 18 12:44:51 2020 +0000
@@ -0,0 +1,252 @@
+@comment $NetBSD: PLIST,v 1.3 2020/05/18 12:44:51 wiz Exp $
+bin/epylint-${PYVERSSUFFIX}
+bin/pylint-${PYVERSSUFFIX}
+bin/pyreverse-${PYVERSSUFFIX}
+bin/symilar-${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}/pylint/__init__.py
+${PYSITELIB}/pylint/__init__.pyc
+${PYSITELIB}/pylint/__init__.pyo
+${PYSITELIB}/pylint/__main__.py
+${PYSITELIB}/pylint/__main__.pyc
+${PYSITELIB}/pylint/__main__.pyo
+${PYSITELIB}/pylint/__pkginfo__.py
+${PYSITELIB}/pylint/__pkginfo__.pyc
+${PYSITELIB}/pylint/__pkginfo__.pyo
+${PYSITELIB}/pylint/checkers/__init__.py
+${PYSITELIB}/pylint/checkers/__init__.pyc
+${PYSITELIB}/pylint/checkers/__init__.pyo
+${PYSITELIB}/pylint/checkers/async.py
+${PYSITELIB}/pylint/checkers/async.pyc
+${PYSITELIB}/pylint/checkers/async.pyo
+${PYSITELIB}/pylint/checkers/base.py
+${PYSITELIB}/pylint/checkers/base.pyc
+${PYSITELIB}/pylint/checkers/base.pyo
+${PYSITELIB}/pylint/checkers/base_checker.py
+${PYSITELIB}/pylint/checkers/base_checker.pyc
+${PYSITELIB}/pylint/checkers/base_checker.pyo
+${PYSITELIB}/pylint/checkers/classes.py
+${PYSITELIB}/pylint/checkers/classes.pyc
+${PYSITELIB}/pylint/checkers/classes.pyo
+${PYSITELIB}/pylint/checkers/design_analysis.py
+${PYSITELIB}/pylint/checkers/design_analysis.pyc
+${PYSITELIB}/pylint/checkers/design_analysis.pyo
+${PYSITELIB}/pylint/checkers/exceptions.py
+${PYSITELIB}/pylint/checkers/exceptions.pyc
+${PYSITELIB}/pylint/checkers/exceptions.pyo
+${PYSITELIB}/pylint/checkers/format.py
+${PYSITELIB}/pylint/checkers/format.pyc
+${PYSITELIB}/pylint/checkers/format.pyo
+${PYSITELIB}/pylint/checkers/imports.py
+${PYSITELIB}/pylint/checkers/imports.pyc
+${PYSITELIB}/pylint/checkers/imports.pyo
+${PYSITELIB}/pylint/checkers/logging.py
+${PYSITELIB}/pylint/checkers/logging.pyc
+${PYSITELIB}/pylint/checkers/logging.pyo
+${PYSITELIB}/pylint/checkers/misc.py
+${PYSITELIB}/pylint/checkers/misc.pyc
+${PYSITELIB}/pylint/checkers/misc.pyo
+${PYSITELIB}/pylint/checkers/newstyle.py
+${PYSITELIB}/pylint/checkers/newstyle.pyc
+${PYSITELIB}/pylint/checkers/newstyle.pyo
+${PYSITELIB}/pylint/checkers/python3.py
+${PYSITELIB}/pylint/checkers/python3.pyc
+${PYSITELIB}/pylint/checkers/python3.pyo
+${PYSITELIB}/pylint/checkers/raw_metrics.py
+${PYSITELIB}/pylint/checkers/raw_metrics.pyc
+${PYSITELIB}/pylint/checkers/raw_metrics.pyo
+${PYSITELIB}/pylint/checkers/refactoring.py
+${PYSITELIB}/pylint/checkers/refactoring.pyc
+${PYSITELIB}/pylint/checkers/refactoring.pyo
+${PYSITELIB}/pylint/checkers/similar.py
+${PYSITELIB}/pylint/checkers/similar.pyc
+${PYSITELIB}/pylint/checkers/similar.pyo
+${PYSITELIB}/pylint/checkers/spelling.py
+${PYSITELIB}/pylint/checkers/spelling.pyc
+${PYSITELIB}/pylint/checkers/spelling.pyo
+${PYSITELIB}/pylint/checkers/stdlib.py
+${PYSITELIB}/pylint/checkers/stdlib.pyc
+${PYSITELIB}/pylint/checkers/stdlib.pyo
+${PYSITELIB}/pylint/checkers/strings.py
+${PYSITELIB}/pylint/checkers/strings.pyc
+${PYSITELIB}/pylint/checkers/strings.pyo
+${PYSITELIB}/pylint/checkers/typecheck.py
+${PYSITELIB}/pylint/checkers/typecheck.pyc
+${PYSITELIB}/pylint/checkers/typecheck.pyo
+${PYSITELIB}/pylint/checkers/utils.py
+${PYSITELIB}/pylint/checkers/utils.pyc
+${PYSITELIB}/pylint/checkers/utils.pyo
+${PYSITELIB}/pylint/checkers/variables.py
+${PYSITELIB}/pylint/checkers/variables.pyc
+${PYSITELIB}/pylint/checkers/variables.pyo
+${PYSITELIB}/pylint/config.py
+${PYSITELIB}/pylint/config.pyc
+${PYSITELIB}/pylint/config.pyo
+${PYSITELIB}/pylint/constants.py
+${PYSITELIB}/pylint/constants.pyc
+${PYSITELIB}/pylint/constants.pyo
+${PYSITELIB}/pylint/epylint.py
+${PYSITELIB}/pylint/epylint.pyc
+${PYSITELIB}/pylint/epylint.pyo
+${PYSITELIB}/pylint/exceptions.py
+${PYSITELIB}/pylint/exceptions.pyc
+${PYSITELIB}/pylint/exceptions.pyo
+${PYSITELIB}/pylint/extensions/__init__.py
+${PYSITELIB}/pylint/extensions/__init__.pyc
+${PYSITELIB}/pylint/extensions/__init__.pyo
+${PYSITELIB}/pylint/extensions/_check_docs_utils.py
+${PYSITELIB}/pylint/extensions/_check_docs_utils.pyc
+${PYSITELIB}/pylint/extensions/_check_docs_utils.pyo
+${PYSITELIB}/pylint/extensions/bad_builtin.py
+${PYSITELIB}/pylint/extensions/bad_builtin.pyc
+${PYSITELIB}/pylint/extensions/bad_builtin.pyo
+${PYSITELIB}/pylint/extensions/broad_try_clause.py
+${PYSITELIB}/pylint/extensions/broad_try_clause.pyc
+${PYSITELIB}/pylint/extensions/broad_try_clause.pyo
+${PYSITELIB}/pylint/extensions/check_docs.py
+${PYSITELIB}/pylint/extensions/check_docs.pyc
+${PYSITELIB}/pylint/extensions/check_docs.pyo
+${PYSITELIB}/pylint/extensions/check_elif.py
+${PYSITELIB}/pylint/extensions/check_elif.pyc
+${PYSITELIB}/pylint/extensions/check_elif.pyo
+${PYSITELIB}/pylint/extensions/comparetozero.py
+${PYSITELIB}/pylint/extensions/comparetozero.pyc
+${PYSITELIB}/pylint/extensions/comparetozero.pyo
+${PYSITELIB}/pylint/extensions/docparams.py
+${PYSITELIB}/pylint/extensions/docparams.pyc
+${PYSITELIB}/pylint/extensions/docparams.pyo
+${PYSITELIB}/pylint/extensions/docstyle.py
+${PYSITELIB}/pylint/extensions/docstyle.pyc
+${PYSITELIB}/pylint/extensions/docstyle.pyo
+${PYSITELIB}/pylint/extensions/emptystring.py
+${PYSITELIB}/pylint/extensions/emptystring.pyc
+${PYSITELIB}/pylint/extensions/emptystring.pyo
+${PYSITELIB}/pylint/extensions/mccabe.py
+${PYSITELIB}/pylint/extensions/mccabe.pyc
+${PYSITELIB}/pylint/extensions/mccabe.pyo
+${PYSITELIB}/pylint/extensions/overlapping_exceptions.py
+${PYSITELIB}/pylint/extensions/overlapping_exceptions.pyc
+${PYSITELIB}/pylint/extensions/overlapping_exceptions.pyo
+${PYSITELIB}/pylint/extensions/redefined_variable_type.py
+${PYSITELIB}/pylint/extensions/redefined_variable_type.pyc
+${PYSITELIB}/pylint/extensions/redefined_variable_type.pyo
+${PYSITELIB}/pylint/graph.py
+${PYSITELIB}/pylint/graph.pyc
+${PYSITELIB}/pylint/graph.pyo
+${PYSITELIB}/pylint/interfaces.py
+${PYSITELIB}/pylint/interfaces.pyc
+${PYSITELIB}/pylint/interfaces.pyo
+${PYSITELIB}/pylint/lint/__init__.py
+${PYSITELIB}/pylint/lint/__init__.pyc
+${PYSITELIB}/pylint/lint/__init__.pyo
+${PYSITELIB}/pylint/lint/check_parallel.py
+${PYSITELIB}/pylint/lint/check_parallel.pyc
+${PYSITELIB}/pylint/lint/check_parallel.pyo
+${PYSITELIB}/pylint/lint/pylinter.py
+${PYSITELIB}/pylint/lint/pylinter.pyc
+${PYSITELIB}/pylint/lint/pylinter.pyo
+${PYSITELIB}/pylint/lint/report_functions.py
+${PYSITELIB}/pylint/lint/report_functions.pyc
+${PYSITELIB}/pylint/lint/report_functions.pyo
+${PYSITELIB}/pylint/lint/run.py
+${PYSITELIB}/pylint/lint/run.pyc
+${PYSITELIB}/pylint/lint/run.pyo
+${PYSITELIB}/pylint/lint/utils.py
+${PYSITELIB}/pylint/lint/utils.pyc
+${PYSITELIB}/pylint/lint/utils.pyo
+${PYSITELIB}/pylint/message/__init__.py
+${PYSITELIB}/pylint/message/__init__.pyc
+${PYSITELIB}/pylint/message/__init__.pyo
+${PYSITELIB}/pylint/message/message.py
+${PYSITELIB}/pylint/message/message.pyc
+${PYSITELIB}/pylint/message/message.pyo
+${PYSITELIB}/pylint/message/message_definition.py
+${PYSITELIB}/pylint/message/message_definition.pyc
+${PYSITELIB}/pylint/message/message_definition.pyo
+${PYSITELIB}/pylint/message/message_definition_store.py
+${PYSITELIB}/pylint/message/message_definition_store.pyc
+${PYSITELIB}/pylint/message/message_definition_store.pyo
+${PYSITELIB}/pylint/message/message_handler_mix_in.py
+${PYSITELIB}/pylint/message/message_handler_mix_in.pyc
+${PYSITELIB}/pylint/message/message_handler_mix_in.pyo
+${PYSITELIB}/pylint/message/message_id_store.py
+${PYSITELIB}/pylint/message/message_id_store.pyc
+${PYSITELIB}/pylint/message/message_id_store.pyo
+${PYSITELIB}/pylint/pyreverse/__init__.py
+${PYSITELIB}/pylint/pyreverse/__init__.pyc
+${PYSITELIB}/pylint/pyreverse/__init__.pyo
+${PYSITELIB}/pylint/pyreverse/diadefslib.py
+${PYSITELIB}/pylint/pyreverse/diadefslib.pyc
+${PYSITELIB}/pylint/pyreverse/diadefslib.pyo
+${PYSITELIB}/pylint/pyreverse/diagrams.py
+${PYSITELIB}/pylint/pyreverse/diagrams.pyc
+${PYSITELIB}/pylint/pyreverse/diagrams.pyo
+${PYSITELIB}/pylint/pyreverse/inspector.py
+${PYSITELIB}/pylint/pyreverse/inspector.pyc
+${PYSITELIB}/pylint/pyreverse/inspector.pyo
+${PYSITELIB}/pylint/pyreverse/main.py
+${PYSITELIB}/pylint/pyreverse/main.pyc
+${PYSITELIB}/pylint/pyreverse/main.pyo
+${PYSITELIB}/pylint/pyreverse/utils.py
+${PYSITELIB}/pylint/pyreverse/utils.pyc
+${PYSITELIB}/pylint/pyreverse/utils.pyo
+${PYSITELIB}/pylint/pyreverse/vcgutils.py
+${PYSITELIB}/pylint/pyreverse/vcgutils.pyc
+${PYSITELIB}/pylint/pyreverse/vcgutils.pyo
+${PYSITELIB}/pylint/pyreverse/writer.py
+${PYSITELIB}/pylint/pyreverse/writer.pyc
+${PYSITELIB}/pylint/pyreverse/writer.pyo
+${PYSITELIB}/pylint/reporters/__init__.py
+${PYSITELIB}/pylint/reporters/__init__.pyc
+${PYSITELIB}/pylint/reporters/__init__.pyo
+${PYSITELIB}/pylint/reporters/base_reporter.py
+${PYSITELIB}/pylint/reporters/base_reporter.pyc
+${PYSITELIB}/pylint/reporters/base_reporter.pyo
+${PYSITELIB}/pylint/reporters/collecting_reporter.py
+${PYSITELIB}/pylint/reporters/collecting_reporter.pyc
+${PYSITELIB}/pylint/reporters/collecting_reporter.pyo
+${PYSITELIB}/pylint/reporters/json_reporter.py
+${PYSITELIB}/pylint/reporters/json_reporter.pyc
+${PYSITELIB}/pylint/reporters/json_reporter.pyo
+${PYSITELIB}/pylint/reporters/reports_handler_mix_in.py
+${PYSITELIB}/pylint/reporters/reports_handler_mix_in.pyc
+${PYSITELIB}/pylint/reporters/reports_handler_mix_in.pyo
+${PYSITELIB}/pylint/reporters/text.py
+${PYSITELIB}/pylint/reporters/text.pyc
+${PYSITELIB}/pylint/reporters/text.pyo
+${PYSITELIB}/pylint/reporters/ureports/__init__.py
+${PYSITELIB}/pylint/reporters/ureports/__init__.pyc
+${PYSITELIB}/pylint/reporters/ureports/__init__.pyo



Home | Main Index | Thread Index | Old Index