diff --git a/textproc/Makefile b/textproc/Makefile index e00631021b54..8a6ffda5d24d 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1251,6 +1251,7 @@ SUBDIR += py-docutils SUBDIR += py-docx2txt SUBDIR += py-dominate + SUBDIR += py-dparse SUBDIR += py-dsv SUBDIR += py-duecredit SUBDIR += py-elasticsearch 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 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