summaryrefslogtreecommitdiff
path: root/devel/py-atom/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-atom/Makefile')
-rw-r--r--devel/py-atom/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/devel/py-atom/Makefile b/devel/py-atom/Makefile
new file mode 100644
index 000000000000..28d8656f9558
--- /dev/null
+++ b/devel/py-atom/Makefile
@@ -0,0 +1,34 @@
+PORTNAME= atom
+DISTVERSION= 0.12.1
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Memory efficient Python objects
+WWW= https://atom.readthedocs.io/en/latest/ \
+ https://github.com/nucleic/atom
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cppy>0:devel/py-cppy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-benchmark>0:devel/py-pytest-benchmark@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-mypy-plugins>0:devel/py-pytest-mypy-plugins@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517 pytest
+
+TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+do-test:
+ @cd ${TEST_WRKSRC} && \
+ ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest tests/test_version.py tests/test_typing_utils.py -v
+
+# tests as of 0.12.1: 22 passed in 1.93s (limited to non-compiled module tests)
+
+.include <bsd.port.mk>