aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-11-27 19:28:54 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-11-27 19:28:54 +0800
commit6588d549390ce741c42925caf7898fe47a08a080 (patch)
treeafa631be9f2c10a3bb4cd8a238060b6023f9656c
parente5f577932e7635c64658a33f1094d06b6cb61a67 (diff)
downloadfreebsd-ports-gnome-6588d549390ce741c42925caf7898fe47a08a080.tar.gz
freebsd-ports-gnome-6588d549390ce741c42925caf7898fe47a08a080.tar.zst
freebsd-ports-gnome-6588d549390ce741c42925caf7898fe47a08a080.zip
- Add devel/py{,3}-asttokens, missing dependency for py{,3}-flake8-import-order
The asttokens module annotates Python abstract syntax trees (ASTs) with the positions of tokens and text in the source code that generated them. It makes it possible for tools that work with logical AST nodes to find the particular text that resulted in those nodes, for example for automated refactoring or highlighting. WWW: https://pypi.python.org/pypi/asttokens Approved by: portmgr (bdrewery)
-rw-r--r--devel/Makefile2
-rw-r--r--devel/py-asttokens/Makefile33
-rw-r--r--devel/py-asttokens/distinfo3
-rw-r--r--devel/py-asttokens/pkg-descr9
-rw-r--r--devel/py-flake8-import-order/Makefile4
-rw-r--r--devel/py3-asttokens/Makefile10
-rw-r--r--devel/py3-flake8-import-order/Makefile3
7 files changed, 62 insertions, 2 deletions
diff --git a/devel/Makefile b/devel/Makefile
index f4670102cf81..372202e1e5e5 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4255,6 +4255,7 @@
SUBDIR += py-aspyct
SUBDIR += py-astor
SUBDIR += py-astroid
+ SUBDIR += py-asttokens
SUBDIR += py-async_timeout
SUBDIR += py-asyncio
SUBDIR += py-atomiclong
@@ -5081,6 +5082,7 @@
SUBDIR += py27-setuptools
SUBDIR += py3-Jinja2
SUBDIR += py3-apipkg
+ SUBDIR += py3-asttokens
SUBDIR += py3-babel
SUBDIR += py3-cffi
SUBDIR += py3-click
diff --git a/devel/py-asttokens/Makefile b/devel/py-asttokens/Makefile
new file mode 100644
index 000000000000..54db8ddcacd5
--- /dev/null
+++ b/devel/py-asttokens/Makefile
@@ -0,0 +1,33 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= asttokens
+PORTVERSION= 1.1.6
+CATEGORIES= devel
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= Annotate AST trees with source code positions
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS?= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six
+
+USES?= python
+USE_PYTHON= autoplist distutils
+NO_ARCH= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3000
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose \
+ ${PYTHON_PKGNAMEPREFIX}astroid>0:devel/py-astroid
+
+# not supported on 3.x due to missing test depends
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-asttokens/distinfo b/devel/py-asttokens/distinfo
new file mode 100644
index 000000000000..523e014cf247
--- /dev/null
+++ b/devel/py-asttokens/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1510150148
+SHA256 (asttokens-1.1.6.tar.gz) = 97f568e6eaf9a133850bd5370193ef10a459fc9fff0c8954e986a30b44415a88
+SIZE (asttokens-1.1.6.tar.gz) = 32925
diff --git a/devel/py-asttokens/pkg-descr b/devel/py-asttokens/pkg-descr
new file mode 100644
index 000000000000..329f7ad3b136
--- /dev/null
+++ b/devel/py-asttokens/pkg-descr
@@ -0,0 +1,9 @@
+The asttokens module annotates Python abstract syntax trees (ASTs)
+with the positions of tokens and text in the source code that
+generated them.
+
+It makes it possible for tools that work with logical AST nodes to
+find the particular text that resulted in those nodes, for example
+for automated refactoring or highlighting.
+
+WWW: https://pypi.python.org/pypi/asttokens
diff --git a/devel/py-flake8-import-order/Makefile b/devel/py-flake8-import-order/Makefile
index af6aae0e71bb..9659fe7d97e2 100644
--- a/devel/py-flake8-import-order/Makefile
+++ b/devel/py-flake8-import-order/Makefile
@@ -3,6 +3,7 @@
PORTNAME= flake8-import-order
PORTVERSION= 0.15
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,7 +14,8 @@ COMMENT= Flake8 and pylama plugin that checks the ordering of import statements
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/COPYING
-RUN_DEPENDS?= ${PYTHON_PKGNAMEPREFIX}pycodestyle>=0:devel/py-pycodestyle
+RUN_DEPENDS?= ${PYTHON_PKGNAMEPREFIX}pycodestyle>=0:devel/py-pycodestyle \
+ ${PYTHON_PKGNAMEPREFIX}asttokens>=0:devel/py-asttokens
USES?= python
USE_PYTHON= autoplist distutils
diff --git a/devel/py3-asttokens/Makefile b/devel/py3-asttokens/Makefile
new file mode 100644
index 000000000000..91310fb46b6b
--- /dev/null
+++ b/devel/py3-asttokens/Makefile
@@ -0,0 +1,10 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+MASTERDIR= ${.CURDIR}/../py-asttokens
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py3-six
+
+USES= python:3
+
+.include "${MASTERDIR}/Makefile"
diff --git a/devel/py3-flake8-import-order/Makefile b/devel/py3-flake8-import-order/Makefile
index 8cf0f5228963..83e3ac3357db 100644
--- a/devel/py3-flake8-import-order/Makefile
+++ b/devel/py3-flake8-import-order/Makefile
@@ -3,7 +3,8 @@
MASTERDIR= ${.CURDIR}/../py-flake8-import-order
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycodestyle>=0:devel/py3-pycodestyle
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycodestyle>=0:devel/py3-pycodestyle \
+ ${PYTHON_PKGNAMEPREFIX}asttokens>=0:devel/py3-asttokens
USES= python:3