pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-pylint py-pylint: updated to 2.8.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c3a7259b133e
branches:  trunk
changeset: 451352:c3a7259b133e
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Apr 26 13:00:30 2021 +0000

description:
py-pylint: updated to 2.8.1

What's New in Pylint 2.8.1?
===========================
Release date: 2021-04-25

..
  Put new features and bugfixes here and also in 'doc/whatsnew/2.9.rst'

* Add numversion back (temporarily) in ``__pkginfo__`` because it broke Pylama and revert the unnecessary
  ``pylint.version`` breaking change.


What's New in Pylint 2.8.0?
===========================
Release date: 2021-04-24

* New refactoring message ``consider-using-with``. This message is emitted if resource-allocating functions or methods of the
  standard library (like ``open()`` or ``threading.Lock.acquire()``) that can be used as a context manager are called without
  a ``with`` block.

* Resolve false positives on unused variables in decorator functions

* Add new extension ``ConfusingConsecutiveElifChecker``. This optional checker emits a refactoring message (R5601 ``confusing-consecutive-elif``)
  if if/elif statements with different indentation levels follow directly one after the other.

* New option ``--output=<file>`` to output result to a file rather than printing to stdout.

* Use a prescriptive message for ``unidiomatic-typecheck``

* Apply ``const-naming-style`` to module constants annotated with
  ``typing.Final``

* The packaging is now done via setuptools exclusively. ``doc``, ``tests``, ``man``, ``elisp`` and ``Changelog`` are
  not packaged anymore - reducing the size of the package by 75%.

* Debian packaging is now  (officially) done in https://salsa.debian.org/python-team/packages/pylint.

* The 'doc' extra-require has been removed.

* ``__pkginfo__`` now only contain ``__version__`` (also accessible with ``pylint.__version__``), other meta-information are still
  accessible with ``from importlib import metadata;metadata.metadata('pylint')``.

* COPYING has been renamed to LICENSE for standardization.

* Fix false-positive ``used-before-assignment`` in function returns.

* Updated ``astroid`` to 2.5.3

* Add ``consider-using-min-max-builtin`` check for if statement which could be replaced by Python builtin min or max

* Don't auto-enable postponed evaluation of type annotations with Python 3.10

* Update ``astroid`` to 2.5.4

* Add new extension ``TypingChecker``. This optional checker can detect the use of deprecated typing aliases
  and can suggest the use of the alternative union syntax where possible.
  (For example, 'typing.Dict' can be replaced by 'dict', and 'typing.Unions' by '|', etc.)
  Make sure to check the config options if you plan on using it!

* Reactivates old counts in report mode.

* During detection of ``inconsistent-return-statements`` consider that ``assert False`` is a return node.

* Run will not fail if score exactly equals ``config.fail_under``.

* Functions that never returns may declare ``NoReturn`` as type hints, so that
  ``inconsistent-return-statements`` is not emitted.

* Improved protected access checks to allow access inside class methods

* Fix issue with PEP 585 syntax and the use of ``collections.abc.Set``

* Fix issue that caused class variables annotated with ``typing.ClassVar`` to be
  identified as class constants. Now, class variables annotated with
  ``typing.Final`` are identified as such.

* Continuous integration with read the doc has been added.

* Don't show ``DuplicateBasesError`` for attribute access

* Fix crash when checking ``setup.cfg`` for pylint config when there are non-ascii characters in there

* Allow code flanked in backticks to be skipped by spellchecker

* Allow Python tool directives (for black, flake8, zimports, isort, mypy, bandit, pycharm) at beginning of comments to be skipped by spellchecker

* Fix issue that caused emacs pylint to fail when used with tramp

* Improve check for invalid PEP 585 syntax inside functions
  if postponed evaluation of type annotations is enabled

* Improve check for invalid PEP 585 syntax as default function arguments

diffstat:

 devel/py-pylint/Makefile               |  15 +++------------
 devel/py-pylint/PLIST                  |  15 ++++++++++-----
 devel/py-pylint/distinfo               |  11 +++++------
 devel/py-pylint/patches/patch-setup.py |  15 ---------------
 4 files changed, 18 insertions(+), 38 deletions(-)

diffs (125 lines):

diff -r 8608dfc3829a -r c3a7259b133e devel/py-pylint/Makefile
--- a/devel/py-pylint/Makefile  Mon Apr 26 12:58:24 2021 +0000
+++ b/devel/py-pylint/Makefile  Mon Apr 26 13:00:30 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.48 2021/03/31 08:06:53 adam Exp $
+# $NetBSD: Makefile,v 1.49 2021/04/26 13:00:30 adam Exp $
 
-DISTNAME=      pylint-2.7.4
+DISTNAME=      pylint-2.8.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pylint/}
@@ -10,29 +10,20 @@
 COMMENT=       Python source code analyzer
 LICENSE=       gnu-gpl-v2
 
-DEPENDS+=      ${PYPKGPREFIX}-astroid>=2.5.2:../../devel/py-astroid
+DEPENDS+=      ${PYPKGPREFIX}-astroid>=2.5.6:../../devel/py-astroid
 DEPENDS+=      ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort
 DEPENDS+=      ${PYPKGPREFIX}-mccabe>=0.6:../../devel/py-mccabe
 DEPENDS+=      ${PYPKGPREFIX}-toml>=0.7.1:../../textproc/py-toml
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
 USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-INSTALLATION_DIRS=     ${PKGMANDIR}/man1
-
 post-install:
 .for file in epylint pylint pyreverse symilar
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} ${file} ${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=. pytest-${PYVERSSUFFIX}
-
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 8608dfc3829a -r c3a7259b133e devel/py-pylint/PLIST
--- a/devel/py-pylint/PLIST     Mon Apr 26 12:58:24 2021 +0000
+++ b/devel/py-pylint/PLIST     Mon Apr 26 13:00:30 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.20 2021/02/22 09:24:34 adam Exp $
+@comment $NetBSD: PLIST,v 1.21 2021/04/26 13:00:31 adam Exp $
 bin/epylint-${PYVERSSUFFIX}
 bin/pylint-${PYVERSSUFFIX}
 bin/pyreverse-${PYVERSSUFFIX}
@@ -156,6 +156,9 @@
 ${PYSITELIB}/pylint/extensions/comparetozero.py
 ${PYSITELIB}/pylint/extensions/comparetozero.pyc
 ${PYSITELIB}/pylint/extensions/comparetozero.pyo
+${PYSITELIB}/pylint/extensions/confusing_elif.py
+${PYSITELIB}/pylint/extensions/confusing_elif.pyc
+${PYSITELIB}/pylint/extensions/confusing_elif.pyo
 ${PYSITELIB}/pylint/extensions/docparams.py
 ${PYSITELIB}/pylint/extensions/docparams.pyc
 ${PYSITELIB}/pylint/extensions/docparams.pyo
@@ -177,6 +180,9 @@
 ${PYSITELIB}/pylint/extensions/redefined_variable_type.py
 ${PYSITELIB}/pylint/extensions/redefined_variable_type.pyc
 ${PYSITELIB}/pylint/extensions/redefined_variable_type.pyo
+${PYSITELIB}/pylint/extensions/typing.py
+${PYSITELIB}/pylint/extensions/typing.pyc
+${PYSITELIB}/pylint/extensions/typing.pyo
 ${PYSITELIB}/pylint/graph.py
 ${PYSITELIB}/pylint/graph.pyc
 ${PYSITELIB}/pylint/graph.pyo
@@ -186,6 +192,9 @@
 ${PYSITELIB}/pylint/lint/__init__.py
 ${PYSITELIB}/pylint/lint/__init__.pyc
 ${PYSITELIB}/pylint/lint/__init__.pyo
+${PYSITELIB}/pylint/lint/expand_modules.py
+${PYSITELIB}/pylint/lint/expand_modules.pyc
+${PYSITELIB}/pylint/lint/expand_modules.pyo
 ${PYSITELIB}/pylint/lint/parallel.py
 ${PYSITELIB}/pylint/lint/parallel.pyc
 ${PYSITELIB}/pylint/lint/parallel.pyo
@@ -321,7 +330,3 @@
 ${PYSITELIB}/pylint/utils/utils.py
 ${PYSITELIB}/pylint/utils/utils.pyc
 ${PYSITELIB}/pylint/utils/utils.pyo
-man/man1/epylint-${PYVERSSUFFIX}.1
-man/man1/pylint-${PYVERSSUFFIX}.1
-man/man1/pyreverse-${PYVERSSUFFIX}.1
-man/man1/symilar-${PYVERSSUFFIX}.1
diff -r 8608dfc3829a -r c3a7259b133e devel/py-pylint/distinfo
--- a/devel/py-pylint/distinfo  Mon Apr 26 12:58:24 2021 +0000
+++ b/devel/py-pylint/distinfo  Mon Apr 26 13:00:30 2021 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.37 2021/03/31 08:06:53 adam Exp $
+$NetBSD: distinfo,v 1.38 2021/04/26 13:00:31 adam Exp $
 
-SHA1 (pylint-2.7.4.tar.gz) = 7af89f2d28f20e0c4dd9d09a7319c09e9d4f28a9
-RMD160 (pylint-2.7.4.tar.gz) = 668b3adc2ff5d1d419b350e970d9d5f52c258567
-SHA512 (pylint-2.7.4.tar.gz) = 2b7ec9ab3325209021cb0282a6dacabf7ddd1f5e4049157610015ac8c11413471defc9e0528f81e1a60c2b259260f1bde1d04286776b3f32f771968b9866d734
-Size (pylint-2.7.4.tar.gz) = 715507 bytes
-SHA1 (patch-setup.py) = b6ac9d986c8988fe4c2d88f41ffa795881b44ce8
+SHA1 (pylint-2.8.1.tar.gz) = 4cd67df8afdf52f19709e012ca9a37dbbc176f59
+RMD160 (pylint-2.8.1.tar.gz) = b76bab49c4b5a14c718fca7c8cf4c5235a7561e4
+SHA512 (pylint-2.8.1.tar.gz) = 9f9487cf3d361bff0b662e07d66c07d622013f64714969d322977440b2804b1ce5aaae714a18741f958dd8b734484149af1bffb10498cc425f22ca6ac0a81d5a
+Size (pylint-2.8.1.tar.gz) = 298656 bytes
diff -r 8608dfc3829a -r c3a7259b133e devel/py-pylint/patches/patch-setup.py
--- a/devel/py-pylint/patches/patch-setup.py    Mon Apr 26 12:58:24 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-setup.py,v 1.4 2021/02/22 09:24:34 adam Exp $
-
-Fix file encoding.
-
---- setup.py.orig      2021-02-21 16:16:02.000000000 +0000
-+++ setup.py
-@@ -57,7 +57,7 @@ __docformat__ = "restructuredtext en"
- base_dir = os.path.dirname(__file__)
- 
- __pkginfo__: Dict[str, Any] = {}
--with open(os.path.join(base_dir, "pylint", "__pkginfo__.py")) as pkginfo_fp:
-+with open(os.path.join(base_dir, "pylint", "__pkginfo__.py"), encoding="utf-8") as pkginfo_fp:
-     exec(pkginfo_fp.read(), __pkginfo__)
- scripts = __pkginfo__.get("scripts", [])
- data_files = __pkginfo__.get("data_files", None)



Home | Main Index | Thread Index | Old Index