Added
Link Here
|
1 |
PORTNAME= pyinfra |
2 |
DISTVERSIONPREFIX= v |
3 |
DISTVERSION= 3.0.2 |
4 |
CATEGORIES= sysutils python |
5 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
6 |
|
7 |
MAINTAINER= dev@submerge.ch |
8 |
COMMENT= Automates infrastructure using Python |
9 |
WWW= https://pyinfra.com/ |
10 |
|
11 |
LICENSE= MIT |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE.md |
13 |
|
14 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} |
15 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>2:devel/py-click@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}configparser>0:devel/py-configparser@${PY_FLAVOR} \ |
17 |
${PYTHON_PKGNAMEPREFIX}distro>=1.6<2:sysutils/py-distro@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}gevent>=1.5:devel/py-gevent@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}Jinja2>2<4:devel/py-Jinja2@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}packaging>=16.1:devel/py-packaging@${PY_FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}paramiko>=2.7<4:security/py-paramiko@${PY_FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}python-dateutil>2<3:devel/py-python-dateutil@${PY_FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}pywinrm>0:security/py-pywinrm@${PY_FLAVOR} \ |
24 |
${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ |
25 |
${PYTHON_PKGNAMEPREFIX}typeguard>0:devel/py-typeguard@${PY_FLAVOR} |
26 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ |
27 |
${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} |
28 |
|
29 |
USES= pytest python |
30 |
USE_GITHUB= yes |
31 |
GH_ACCOUNT= pyinfra-dev |
32 |
USE_PYTHON= autoplist distutils |
33 |
|
34 |
# Most of the ignored tests fail because docker is missing. |
35 |
# The *_ensure_newline_* ones fail when pyinfra is not installed first. |
36 |
PYTEST_IGNORED_TESTS= test_int_docker_install_package_ubuntu \ |
37 |
test_e2e_ssh_sudo_password \ |
38 |
test_int_local_file_no_changes \ |
39 |
test_int_local_directory_no_changes \ |
40 |
test_int_local_link_no_changes \ |
41 |
test_int_local_line_no_changes \ |
42 |
test_int_local_line_ensure_newline_true \ |
43 |
test_int_local_line_ensure_newline_false |
44 |
|
45 |
.include <bsd.port.pre.mk> |
46 |
|
47 |
.if ${PYTHON_REL} < 30900 |
48 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}graphlib-backport>0:graphics/py-graphlib-backport@${PY_FLAVOR} |
49 |
.endif |
50 |
|
51 |
.if ${PYTHON_REL} < 31000 |
52 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>3.6:devel/py-importlib-metadata@${PY_FLAVOR} |
53 |
.endif |
54 |
|
55 |
.if ${PYTHON_REL} < 31100 |
56 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} |
57 |
.endif |
58 |
|
59 |
.include <bsd.port.post.mk> |