View | Details | Raw Unified | Return to bug 261046
Collapse All | Expand All

(-)b/databases/py-databases/Makefile (-7 / +1 lines)
Lines 42-51 SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiosqlite>0:databases/py-aiosqlite@${ Link Here
42
# do-test:
42
# do-test:
43
# 	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} TEST_DATABASE_URLS="sqlite:///testsuite" ${PYTHON_CMD} -m pytest -v -rs -o addopts=
43
# 	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} TEST_DATABASE_URLS="sqlite:///testsuite" ${PYTHON_CMD} -m pytest -v -rs -o addopts=
44
44
45
.include <bsd.port.pre.mk>
45
.include <bsd.port.mk>
46
47
.if ${PYTHON_REL} < 30700
48
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}aiocontextvars>=0:devel/py-aiocontextvars@${PY_FLAVOR}
49
.endif
50
51
.include <bsd.port.post.mk>
(-)b/devel/bpython/Makefile (-4 lines)
Lines 34-43 NLS_USES= gettext Link Here
34
34
35
.include <bsd.port.pre.mk>
35
.include <bsd.port.pre.mk>
36
36
37
.if ${PYTHON_REL} < 30700
38
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
39
.endif
40
41
.if ${PYTHON_REL} < 30800
37
.if ${PYTHON_REL} < 30800
42
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}backports.cached-property>=0:devel/py-backports.cached-property@${PY_FLAVOR}
38
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}backports.cached-property>=0:devel/py-backports.cached-property@${PY_FLAVOR}
43
.endif
39
.endif
(-)b/devel/py-aiortc/Makefile (-7 / +1 lines)
Lines 26-35 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aioice>=0.7.5:devel/py-aioice@${PY_FLAVOR} \ Link Here
26
USES=		localbase python:3.5+
26
USES=		localbase python:3.5+
27
USE_PYTHON=	autoplist concurrent distutils
27
USE_PYTHON=	autoplist concurrent distutils
28
28
29
.include <bsd.port.pre.mk>
29
.include <bsd.port.mk>
30
31
.if ${PYTHON_REL} < 30700
32
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
33
.endif
34
35
.include <bsd.port.post.mk>
(-)b/devel/py-black/Makefile (-4 lines)
Lines 36-45 UVLOOP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}uvloop>=0.15.2:devel/py-uvloop@${PY_F Link Here
36
36
37
.include <bsd.port.pre.mk>
37
.include <bsd.port.pre.mk>
38
38
39
.if ${PYTHON_REL} < 30700
40
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0.6:devel/py-dataclasses@${PY_FLAVOR}
41
.endif
42
43
.if ${PYTHON_REL} < 30800
39
.if ${PYTHON_REL} < 30800
44
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typed-ast>=1.4.2:devel/py-typed-ast@${PY_FLAVOR} \
40
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typed-ast>=1.4.2:devel/py-typed-ast@${PY_FLAVOR} \
45
		${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4:devel/py-typing-extensions@${PY_FLAVOR}
41
		${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4:devel/py-typing-extensions@${PY_FLAVOR}
(-)b/devel/py-cfn-lint/Makefile (-2 lines)
Lines 18-25 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aws-sam-translator>=1.38.0:devel/py-aws-sam- Link Here
18
		${PYTHON_PKGNAMEPREFIX}six>=1.11:devel/py-six@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}six>=1.11:devel/py-six@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}yaml>5.4:devel/py-yaml@${PY_FLAVOR}
19
		${PYTHON_PKGNAMEPREFIX}yaml>5.4:devel/py-yaml@${PY_FLAVOR}
20
20
21
py36_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=1.4:devel/py-importlib-resources@${PY_FLAVOR}
22
23
USES=		python:3.6-3.9
21
USES=		python:3.6-3.9
24
USE_PYTHON=	autoplist concurrent distutils
22
USE_PYTHON=	autoplist concurrent distutils
25
23
(-)b/devel/py-contextvars/Makefile (+3 lines)
Lines 12-17 COMMENT= PEP 567 backport Link Here
12
LICENSE=	APACHE20
12
LICENSE=	APACHE20
13
LICENSE_FILE=	${WRKSRC}/LICENSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
14
15
DEPRECATED=	Included in Python 3.7 or later
16
EXPIRATION_DATE=	2022-02-31
17
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}immutables>=0.9:devel/py-immutables@${PY_FLAVOR}
18
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}immutables>=0.9:devel/py-immutables@${PY_FLAVOR}
16
19
17
USES=		python:3.6+
20
USES=		python:3.6+
(-)b/devel/py-dataclasses-json/Makefile (-7 / +1 lines)
Lines 20-29 USE_PYTHON= autoplist concurrent distutils Link Here
20
20
21
NO_ARCH=	yes
21
NO_ARCH=	yes
22
22
23
.include <bsd.port.pre.mk>
23
.include <bsd.port.mk>
24
25
.if ${PYTHON_REL} < 30700
26
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
27
.endif
28
29
.include <bsd.port.post.mk>
(-)b/devel/py-dataclasses/Makefile (+3 lines)
Lines 10-15 COMMENT= Backport of the dataclasses module for Python 3.6 Link Here
10
LICENSE=	APACHE20
10
LICENSE=	APACHE20
11
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
11
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
12
12
13
DEPRECATED=	Included in Python 3.7 or later
14
EXPIRATION_DATE=	2022-02-31
15
13
USES=		python:3.6
16
USES=		python:3.6
14
USE_PYTHON=	distutils autoplist
17
USE_PYTHON=	distutils autoplist
15
18
(-)b/devel/py-ddtrace/Makefile (-7 / +1 lines)
Lines 27-42 OPENTRACING_DESC= OpenTracing support Link Here
27
27
28
OPENTRACING_RUN_DEPENDS=${PYTHON_PKGNAMEPREFIX}opentracing>=2.0.0:devel/py-opentracing@${PY_FLAVOR}
28
OPENTRACING_RUN_DEPENDS=${PYTHON_PKGNAMEPREFIX}opentracing>=2.0.0:devel/py-opentracing@${PY_FLAVOR}
29
29
30
.include <bsd.port.pre.mk>
31
32
.if ${PYTHON_REL} < 30700
33
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pep562>=0:devel/py-pep562@${PY_FLAVOR}
34
.endif
35
36
post-patch:
30
post-patch:
37
	@${RM} ${WRKSRC}/ddtrace/profiling/collector/stack.c
31
	@${RM} ${WRKSRC}/ddtrace/profiling/collector/stack.c
38
32
39
post-install:
33
post-install:
40
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
34
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
41
35
42
.include <bsd.port.post.mk>
36
.include <bsd.port.mk>
(-)b/devel/py-future-annotations/Makefile (+3 lines)
Lines 13-18 COMMENT= Backport of __future__ annotations to python < 3.7 Link Here
13
LICENSE=	MIT
13
LICENSE=	MIT
14
LICENSE_FILE=	${WRKSRC}/LICENSE
14
LICENSE_FILE=	${WRKSRC}/LICENSE
15
15
16
DEPRECATED=	Included in Python 3.7 or later
17
EXPIRATION_DATE=	2022-02-31
18
16
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tokenize-rt>=3:devel/py-tokenize-rt@${PY_FLAVOR}
19
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tokenize-rt>=3:devel/py-tokenize-rt@${PY_FLAVOR}
17
20
18
USES=		python:3.6+
21
USES=		python:3.6+
(-)b/devel/py-installer/Makefile (-7 / +1 lines)
Lines 17-26 USE_PYTHON= autoplist concurrent distutils Link Here
17
17
18
NO_ARCH=	yes
18
NO_ARCH=	yes
19
19
20
.include <bsd.port.pre.mk>
20
.include <bsd.port.mk>
21
22
.if ${PYTHON_REL} < 30700
23
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${PY_FLAVOR}
24
.endif
25
26
.include <bsd.port.post.mk>
(-)b/devel/py-libcst/Makefile (-7 / +1 lines)
Lines 22-31 USE_PYTHON= autoplist concurrent distutils Link Here
22
22
23
NO_ARCH=	yes
23
NO_ARCH=	yes
24
24
25
.include <bsd.port.pre.mk>
25
.include <bsd.port.mk>
26
27
.if ${PYTHON_REL} < 30700
28
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0.6.0:devel/py-dataclasses@${PY_FLAVOR}
29
.endif
30
31
.include <bsd.port.post.mk>
(-)b/devel/py-moto/Makefile (-4 lines)
Lines 42-51 NO_ARCH= yes Link Here
42
42
43
.include <bsd.port.pre.mk>
43
.include <bsd.port.pre.mk>
44
44
45
.if ${PYTHON_REL} < 30700
46
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
47
.endif
48
49
.if ${PYTHON_REL} < 30800
45
.if ${PYTHON_REL} < 30800
50
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
46
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
51
.endif
47
.endif
(-)b/devel/py-nbclient/Makefile (-7 / +1 lines)
Lines 22-31 USE_PYTHON= autoplist concurrent distutils Link Here
22
22
23
NO_ARCH=	yes
23
NO_ARCH=	yes
24
24
25
.include <bsd.port.pre.mk>
25
.include <bsd.port.mk>
26
27
.if ${PYTHON_REL} < 30700
28
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}async_generator>=0:devel/py-async_generator@${PY_FLAVOR}
29
.endif
30
31
.include <bsd.port.post.mk>
(-)b/devel/py-pip/Makefile (-8 / +1 lines)
Lines 60-72 DOCS_PORTDOCS= * Link Here
60
DOCS_VARS=		PYDISTUTILS_BUILD_TARGET=build_sphinx \
60
DOCS_VARS=		PYDISTUTILS_BUILD_TARGET=build_sphinx \
61
			PYDISTUTILS_BUILDARGS="-n --all-files --fresh-env"
61
			PYDISTUTILS_BUILDARGS="-n --all-files --fresh-env"
62
62
63
.include <bsd.port.pre.mk>
64
65
.if ${PYTHON_REL} < 30700 && ${PORT_OPTIONS:MDOCS}
66
BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}future-annotations>=0:devel/py-future-annotations@${PY_FLAVOR}
67
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-python36
68
.endif
69
70
post-install-DOCS-on:
63
post-install-DOCS-on:
71
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
64
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
72
	(cd ${WRKSRC}/build/sphinx/html && \
65
	(cd ${WRKSRC}/build/sphinx/html && \
Lines 80-83 do-test: Link Here
80
	${LN} -sf ${LOCALBASE}/bin/pip ${LOCALBASE}/bin/pip3
73
	${LN} -sf ${LOCALBASE}/bin/pip ${LOCALBASE}/bin/pip3
81
	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
74
	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
82
75
83
.include <bsd.port.post.mk>
76
.include <bsd.port.mk>
(-)a/devel/py-pip/files/extra-patch-python36 (-11 lines)
Removed Link Here
1
--- docs/docs_feedback_sphinxext.py.orig	2021-01-23 11:51:53 UTC
2
+++ docs/docs_feedback_sphinxext.py
3
@@ -1,6 +1,7 @@
4
+# -*- coding: future_annotations -*-
5
 """A sphinx extension for collecting per doc feedback."""
6
 
7
-from __future__ import annotations
8
+import future_annotations
9
 
10
 from itertools import chain
11
 from typing import TYPE_CHECKING
(-)b/devel/py-pydantic/Makefile (-1 lines)
Lines 11-17 LICENSE= MIT Link Here
11
LICENSE_FILE=	${WRKSRC}/LICENSE
11
LICENSE_FILE=	${WRKSRC}/LICENSE
12
12
13
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4.3:devel/py-typing-extensions@${PY_FLAVOR}
13
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4.3:devel/py-typing-extensions@${PY_FLAVOR}
14
py36_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0.6:devel/py-dataclasses@${PY_FLAVOR}
15
14
16
USES=		cpe python:3.7+
15
USES=		cpe python:3.7+
17
USE_PYTHON=	distutils cython autoplist
16
USE_PYTHON=	distutils cython autoplist
(-)b/devel/py-pyvisa/Makefile (-4 lines)
Lines 22-31 NO_ARCH= yes Link Here
22
22
23
.include <bsd.port.pre.mk>
23
.include <bsd.port.pre.mk>
24
24
25
.if ${PYTHON_REL} < 30700
26
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
27
.endif
28
29
.if ${PYTHON_REL} < 30800
25
.if ${PYTHON_REL} < 30800
30
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
26
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
31
.endif
27
.endif
(-)b/devel/py-yaspin/Makefile (-7 / +1 lines)
Lines 20-32 USE_PYTHON= autoplist concurrent distutils Link Here
20
20
21
NO_ARCH=	yes
21
NO_ARCH=	yes
22
22
23
.include <bsd.port.pre.mk>
24
25
.if ${PYTHON_REL} < 30700
26
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0.8<0.9:devel/py-dataclasses@${PY_FLAVOR}
27
.endif
28
29
do-test:
23
do-test:
30
	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
24
	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
31
25
32
.include <bsd.port.post.mk>
26
.include <bsd.port.mk>
(-)b/devel/pytype/Makefile (-7 / +1 lines)
Lines 27-39 RUN_DEPENDS= ninja>=1.10.2:devel/ninja \ Link Here
27
USES=		compiler:c++11-lang python:3.6+
27
USES=		compiler:c++11-lang python:3.6+
28
USE_PYTHON=	autoplist concurrent distutils
28
USE_PYTHON=	autoplist concurrent distutils
29
29
30
.include <bsd.port.pre.mk>
31
32
.if ${PYTHON_REL} < 30700
33
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
34
.endif
35
36
post-install:
30
post-install:
37
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
31
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
38
32
39
.include <bsd.port.post.mk>
33
.include <bsd.port.mk>
(-)b/net/irrd/Makefile (-7 / +1 lines)
Lines 56-67 SUB_LIST= PYTHON_CMD="${PYTHON_CMD}" \ Link Here
56
		USERS=${USERS} \
56
		USERS=${USERS} \
57
		GROUPS=${GROUPS}
57
		GROUPS=${GROUPS}
58
58
59
.include <bsd.port.pre.mk>
60
61
.if ${PYTHON_REL} < 30700
62
BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0.6:devel/py-dataclasses@${PY_FLAVOR}
63
.endif
64
65
post-install:
59
post-install:
66
	${INSTALL_DATA} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/conf/default_config.yaml \
60
	${INSTALL_DATA} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/conf/default_config.yaml \
67
		${STAGEDIR}${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX}.yaml.sample
61
		${STAGEDIR}${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX}.yaml.sample
Lines 69-72 post-install: Link Here
69
do-test:
63
do-test:
70
	@(cd ${TEST_WRKSRC} && ${SETENV} pytest ${PORTNAME})
64
	@(cd ${TEST_WRKSRC} && ${SETENV} pytest ${PORTNAME})
71
65
72
.include <bsd.port.post.mk>
66
.include <bsd.port.mk>
(-)b/net/py-netaddr/Makefile (-7 / +1 lines)
Lines 23-34 PORTDOCS= AUTHORS CHANGELOG README.rst Link Here
23
23
24
OPTIONS_DEFINE=	DOCS
24
OPTIONS_DEFINE=	DOCS
25
25
26
.include <bsd.port.pre.mk>
27
28
.if ${PYTHON_REL} < 30700
29
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources@${PY_FLAVOR}
30
.endif
31
32
post-install-DOCS-on:
26
post-install-DOCS-on:
33
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
27
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
34
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
28
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
Lines 36-39 post-install-DOCS-on: Link Here
36
do-test:
30
do-test:
37
	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
31
	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
38
32
39
.include <bsd.port.post.mk>
33
.include <bsd.port.mk>
(-)b/net/py-wsproto/Makefile (-7 / +1 lines)
Lines 19-31 USE_PYTHON= autoplist distutils Link Here
19
19
20
NO_ARCH=	yes
20
NO_ARCH=	yes
21
21
22
.include <bsd.port.pre.mk>
23
24
.if ${PYTHON_REL} < 30700
25
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>0:devel/py-dataclasses@${PY_FLAVOR}
26
.endif
27
28
do-test:
22
do-test:
29
	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
23
	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
30
24
31
.include <bsd.port.post.mk>
25
.include <bsd.port.mk>
(-)b/security/py-pyspnego/Makefile (-7 / +1 lines)
Lines 27-36 KERBEROS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gssapi>=1.5.0:security/py-gssapi@${ Link Here
27
			${PYTHON_PKGNAMEPREFIX}krb5>=0:security/py-krb5@${PY_FLAVOR}
27
			${PYTHON_PKGNAMEPREFIX}krb5>=0:security/py-krb5@${PY_FLAVOR}
28
YAML_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0:devel/py-ruamel.yaml@${PY_FLAVOR}
28
YAML_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0:devel/py-ruamel.yaml@${PY_FLAVOR}
29
29
30
.include <bsd.port.pre.mk>
30
.include <bsd.port.mk>
31
32
.if ${PYTHON_REL} < 30700
33
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
34
.endif
35
36
.include <bsd.port.post.mk>
(-)b/sysutils/py-python-crontab/Makefile (-8 / +1 lines)
Lines 23-36 USE_GITLAB= yes Link Here
23
GL_ACCOUNT=	doctormo
23
GL_ACCOUNT=	doctormo
24
GL_COMMIT=	ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0
24
GL_COMMIT=	ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0
25
25
26
.include <bsd.port.pre.mk>
27
28
# The UTF-8 mode is enabled by default when the locale is C since Python 3.7.
29
.if ${PYTHON_REL} < 30700
30
TEST_ENV+=	LC_ALL=C.UTF-8
31
.endif
32
33
do-test:
26
do-test:
34
	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
27
	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
35
28
36
.include <bsd.port.post.mk>
29
.include <bsd.port.mk>
(-)b/textproc/py-duecredit/Makefile (-1 lines)
Lines 13-19 LICENSE_FILE= ${WRKSRC}/LICENSE Link Here
13
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}citeproc-py>=0.4:textproc/py-citeproc-py@${PY_FLAVOR} \
13
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}citeproc-py>=0.4:textproc/py-citeproc-py@${PY_FLAVOR} \
14
		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
14
		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
15
		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
16
py36_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
17
16
18
USES=		python:3.6+
17
USES=		python:3.6+
19
USE_PYTHON=	distutils concurrent autoplist
18
USE_PYTHON=	distutils concurrent autoplist
(-)b/textproc/py-fingerprints/Makefile (-8 / +1 lines)
Lines 19-32 USE_PYTHON= distutils autoplist Link Here
19
19
20
NO_ARCH=	yes
20
NO_ARCH=	yes
21
21
22
.include <bsd.port.pre.mk>
23
# Set a locale to avoid build/configure errors.  The UTF-8 mode is enabled by
24
# default when the locale is C since Python 3.7.
25
.if ${PYTHON_REL} < 30700
26
USE_LOCALE=	en_US.UTF-8
27
.endif
28
29
do-test:
22
do-test:
30
	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
23
	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
31
24
32
.include <bsd.port.post.mk>
25
.include <bsd.port.mk>
(-)b/textproc/py-gensim/Makefile (-1 lines)
Lines 14-20 BUILD_DEPENDS= ${PYNUMPY} Link Here
14
RUN_DEPENDS=	${PYNUMPY} \
14
RUN_DEPENDS=	${PYNUMPY} \
15
		${PYTHON_PKGNAMEPREFIX}scipy>=0.18.1:science/py-scipy@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}scipy>=0.18.1:science/py-scipy@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}smart-open>=1.8.1:net/py-smart-open@${PY_FLAVOR}
16
		${PYTHON_PKGNAMEPREFIX}smart-open>=1.8.1:net/py-smart-open@${PY_FLAVOR}
17
py36_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
18
17
19
USES=		compiler:c++11-lang python:3.6+
18
USES=		compiler:c++11-lang python:3.6+
20
USE_PYTHON=	distutils cython autoplist
19
USE_PYTHON=	distutils cython autoplist
(-)b/textproc/py-normality/Makefile (-8 / +1 lines)
Lines 26-39 OPTIONS_DEFAULT= ICU Link Here
26
26
27
ICU_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyicu>=1.9.3:devel/py-pyicu@${PY_FLAVOR}
27
ICU_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyicu>=1.9.3:devel/py-pyicu@${PY_FLAVOR}
28
28
29
.include <bsd.port.pre.mk>
30
# Set a locale to avoid build/configure errors.  The UTF-8 mode is enabled by
31
# default when the locale is C since Python 3.7.
32
.if ${PYTHON_REL} < 30700
33
USE_LOCALE=	en_US.UTF-8
34
.endif
35
36
do-test:
29
do-test:
37
	@cd ${WRKSRC} && ${SET_ENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
30
	@cd ${WRKSRC} && ${SET_ENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
38
31
39
.include <bsd.port.post.mk>
32
.include <bsd.port.mk>
(-)b/textproc/py-sphinxcontrib-bibtex/Makefile (-7 / +1 lines)
Lines 22-31 USE_PYTHON= autoplist concurrent distutils Link Here
22
22
23
NO_ARCH=	yes
23
NO_ARCH=	yes
24
24
25
.include <bsd.port.pre.mk>
25
.include <bsd.port.mk>
26
27
.if ${PYTHON_REL} < 30700
28
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
29
.endif
30
31
.include <bsd.port.post.mk>
(-)b/www/py-aiohttp/Makefile (-7 / +1 lines)
Lines 34-45 USES= cpe python:3.6+ Link Here
34
CPE_VENDOR=	${PORTNAME}_project
34
CPE_VENDOR=	${PORTNAME}_project
35
USE_PYTHON=	autoplist distutils cython
35
USE_PYTHON=	autoplist distutils cython
36
36
37
.include <bsd.port.pre.mk>
38
39
.if ${PYTHON_REL} < 30700
40
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}idna_ssl>=1.0:dns/py-idna_ssl@${PY_FLAVOR}
41
.endif
42
43
pre-configure:
37
pre-configure:
44
.for file in _frozenlist _helpers _http_parser _http_writer _websocket
38
.for file in _frozenlist _helpers _http_parser _http_writer _websocket
45
	@${RM} ${WRKSRC}/aiohttp/${file}.c
39
	@${RM} ${WRKSRC}/aiohttp/${file}.c
Lines 52-55 post-install: Link Here
52
do-test:
46
do-test:
53
	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
47
	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
54
48
55
.include <bsd.port.post.mk>
49
.include <bsd.port.mk>
(-)b/www/py-dj32-django-treebeard/Makefile (-8 / +1 lines)
Lines 25-37 DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django32>=2.2:www/py-django32@${PY_FL Link Here
25
			${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
25
			${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
26
DOCS_VARS=		PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
26
DOCS_VARS=		PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
27
27
28
.include <bsd.port.pre.mk>
29
# Set a locale to avoid build/configure errors.  The UTF-8 mode is enabled by
30
# default when the locale is C since Python 3.7.
31
.if ${PYTHON_REL} < 30700
32
USE_LOCALE=	en_US.UTF-8
33
.endif
34
35
post-install-DOCS-on:
28
post-install-DOCS-on:
36
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
29
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
37
	@(cd ${WRKSRC}/build/sphinx/html && \
30
	@(cd ${WRKSRC}/build/sphinx/html && \
Lines 41-44 post-install-DOCS-on: Link Here
41
do-test:
34
do-test:
42
	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
35
	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
43
36
44
.include <bsd.port.post.mk>
37
.include <bsd.port.mk>
(-)b/www/py-django-markdownx/Makefile (-10 / +1 lines)
Lines 21-33 USE_PYTHON= autoplist distutils Link Here
21
21
22
NO_ARCH=	yes
22
NO_ARCH=	yes
23
23
24
.include <bsd.port.pre.mk>
24
.include <bsd.port.mk>
25
26
.if ${PYTHON_REL} < 30700
27
# Force an UTF-8 environment to avoid failures in the configuration phase for
28
# Python versions <= 3.6.  Since Python 3.7 the UTF-8 mode is enabled by
29
# default when the locale is C.
30
USE_LOCALE=	en_US.UTF-8
31
.endif
32
33
.include <bsd.port.post.mk>
(-)b/www/py-django-treebeard/Makefile (-8 / +1 lines)
Lines 25-37 DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=2.2:www/py-django22@${PY_FL Link Here
25
			${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
25
			${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
26
DOCS_VARS=		PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
26
DOCS_VARS=		PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
27
27
28
.include <bsd.port.pre.mk>
29
# Set a locale to avoid build/configure errors.  The UTF-8 mode is enabled by
30
# default when the locale is C since Python 3.7.
31
.if ${PYTHON_REL} < 30700
32
USE_LOCALE=	en_US.UTF-8
33
.endif
34
35
post-install-DOCS-on:
28
post-install-DOCS-on:
36
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
29
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
37
	@(cd ${WRKSRC}/build/sphinx/html && \
30
	@(cd ${WRKSRC}/build/sphinx/html && \
Lines 41-44 post-install-DOCS-on: Link Here
41
do-test:
34
do-test:
42
	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
35
	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
43
36
44
.include <bsd.port.post.mk>
37
.include <bsd.port.mk>
(-)b/www/py-werkzeug/Makefile (-7 / +1 lines)
Lines 27-40 WATCHDOG_DESC= Monitor filesystem events Link Here
27
27
28
WATCHDOG_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}watchdog>=0:devel/py-watchdog@${PY_FLAVOR}
28
WATCHDOG_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}watchdog>=0:devel/py-watchdog@${PY_FLAVOR}
29
29
30
.include <bsd.port.pre.mk>
31
32
.if ${PYTHON_REL} < 30700
33
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
34
.endif
35
36
post-install-EXAMPLES-on:
30
post-install-EXAMPLES-on:
37
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
31
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
38
	cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
32
	cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
39
33
40
.include <bsd.port.post.mk>
34
.include <bsd.port.mk>
(-)b/www/qutebrowser/Makefile (-5 lines)
Lines 48-57 DEPRECATED= Uses EOL Python 2.7 via www/qt5-webengine Link Here
48
EXPIRATION_DATE=2021-06-23
48
EXPIRATION_DATE=2021-06-23
49
.endif
49
.endif
50
50
51
.if ${PYTHON_REL} < 30700
52
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>0:devel/py-dataclasses@${PY_FLAVOR}
53
.endif
54
55
.if ${PYTHON_REL} < 30900
51
.if ${PYTHON_REL} < 30900
56
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources@${PY_FLAVOR}
52
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources@${PY_FLAVOR}
57
.endif
53
.endif
58
- 

Return to bug 261046