pkgsrc/devel/py-astroid/Makefile
adam db75a5540f py-astroid: updated to 2.1.0
What's New in astroid 2.1.0?

* threading.Lock.acquire has the timeout parameter now.

* Pass parameters by keyword name when inferring sequences.

* Correct line numbering for f-strings for complex embedded expressions

  When a f-string contained a complex expression, such as an attribute access,
  we weren't cloning all the subtree of the f-string expression for attaching the correct
  line number. This problem is coming from the builtin AST parser which gives for the f-string
  and for its underlying elements the line number 1, but this is causing all sorts of bugs and
  problems in pylint, which expects correct line numbering.

* Add support for argparse.Namespace

* async functions are now inferred as AsyncGenerator when inferring their call result.

* Filter out Uninferable when inferring the call result result of a class with an uninferable __call__ method.

* Make compatible with AST changes in Python 3.8.

* Subscript inference (e.g. "a[i]") now pays attention to multiple inferred values for value
  (e.g. "a") and slice (e.g. "i")
2018-11-26 09:00:52 +00:00

32 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.22 2018/11/26 09:00:52 adam Exp $
DISTNAME= astroid-2.1.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/astroid/}
MAINTAINER= kamel.derouiche@gmail.com
HOMEPAGE= https://github.com/pycqa/astroid
COMMENT= Rebuild a new abstract syntax tree from Python's ast
LICENSE= gnu-lgpl-v3
DEPENDS+= ${PYPKGPREFIX}-lazy-object-proxy-[0-9]*:../../devel/py-lazy-object-proxy
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
DEPENDS+= ${PYPKGPREFIX}-wrapt-[0-9]*:../../devel/py-wrapt
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
.include "../../lang/python/pyversion.mk"
.if !empty(_PYTHON_VERSION:M34)
DEPENDS+= ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing
.endif
.if !empty(_PYTHON_VERSION:M3[456])
DEPENDS+= ${PYPKGPREFIX}-typed-ast-[0-9]*:../../devel/py-typed-ast
.endif
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"