blob: 0ba5c05899b83c07e8bf482f3566d5ca5447f1f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
PORTNAME= permutation
DISTVERSION= 0.4.0
PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Permutations of finitely many positive integers
WWW= https://github.com/jwodder/permutation
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= pep517 autoplist pytest
NO_ARCH= yes
pre-configure: # permutation is officially built with "build" (https://github.com/pypa/build), but this is easily circumvented with this simple setup.py
@( \
${ECHO} "from setuptools import setup" && \
${ECHO} "setup()" \
) > ${WRKSRC}/setup.py
do-test: install # instructions from tox.ini
@cd ${WRKSRC} && \
coverage erase && \
coverage run -m pytest --doctest-modules --pyargs permutation && \
coverage run -m pytest test README.rst docs/index.rst && \
coverage combine && \
coverage report
.include <bsd.port.mk>
|