diff options
author | Kai Knoblich <kai@FreeBSD.org> | 2019-09-03 14:42:17 +0000 |
---|---|---|
committer | Kai Knoblich <kai@FreeBSD.org> | 2019-09-03 14:42:17 +0000 |
commit | cf60c9a93808b17da68fb65ee566a303dd1c4f27 (patch) | |
tree | 0ad44b503e20dc1ce4cb26753be465d3dcf3c5fc /textproc/py-dparse | |
parent | 7610a280b57ed2313f506799bf8afe39d74482a2 (diff) | |
download | ports-cf60c9a93808b17da68fb65ee566a303dd1c4f27.tar.gz ports-cf60c9a93808b17da68fb65ee566a303dd1c4f27.zip |
[NEW PORT]: textproc/py-dparse
Parses and updates Python dependency files. Following files are supported:
* requirements.txt
* conda.yml
* tox.ini
* Pipfile
* Pifile.lock
WWW: https://github.com/pyupio/dparse
Notes
Notes:
svn path=/head/; revision=510951
Diffstat (limited to 'textproc/py-dparse')
-rw-r--r-- | textproc/py-dparse/Makefile | 30 | ||||
-rw-r--r-- | textproc/py-dparse/distinfo | 3 | ||||
-rw-r--r-- | textproc/py-dparse/pkg-descr | 9 |
3 files changed, 42 insertions, 0 deletions
diff --git a/textproc/py-dparse/Makefile b/textproc/py-dparse/Makefile new file mode 100644 index 000000000000..e0c2beeb293d --- /dev/null +++ b/textproc/py-dparse/Makefile @@ -0,0 +1,30 @@ +# $FreeBSD$ + +PORTNAME= dparse +DISTVERSION= 0.4.1 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Parser for Python dependency files + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist + +NO_ARCH= yes + +# test_update_pipfile fails with devel/py-pipenv >= 11.10.2 which is an +# optional dependency. See also: https://github.com/pyupio/dparse/issues/37 +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v -k 'not pip' + +.include <bsd.port.mk> diff --git a/textproc/py-dparse/distinfo b/textproc/py-dparse/distinfo new file mode 100644 index 000000000000..2d7327ad866a --- /dev/null +++ b/textproc/py-dparse/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1565552698 +SHA256 (dparse-0.4.1.tar.gz) = 00a5fdfa900629e5159bf3600d44905b333f4059a3366f28e0dbd13eeab17b19 +SIZE (dparse-0.4.1.tar.gz) = 31653 diff --git a/textproc/py-dparse/pkg-descr b/textproc/py-dparse/pkg-descr new file mode 100644 index 000000000000..c444578be3c2 --- /dev/null +++ b/textproc/py-dparse/pkg-descr @@ -0,0 +1,9 @@ +Parses and updates Python dependency files. Following files are supported: + +* requirements.txt +* conda.yml +* tox.ini +* Pipfile +* Pifile.lock + +WWW: https://github.com/pyupio/dparse |