1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

*/*: Cleanup after the removal of lang/python36

* Remove codes that aren't necessary after the removal of lang/python36
* Mark ports that aren't necessary with Python 3.7 or later as
  DEPRECATED and set EXPIRATION_DATE.

PR:		261046
Approved by:	lwhsu (python)
This commit is contained in:
Yasuhiro Kimura 2022-01-09 05:42:49 +09:00
parent 85f832623a
commit 461373bf1f
14 changed files with 15 additions and 96 deletions

View File

@ -41,10 +41,4 @@ SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiosqlite>0:databases/py-aiosqlite@${
# do-test:
# cd ${WRKSRC} && ${SETENV} ${TEST_ENV} TEST_DATABASE_URLS="sqlite:///testsuite" ${PYTHON_CMD} -m pytest -v -rs -o addopts=
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30700
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}aiocontextvars>=0:devel/py-aiocontextvars@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -26,10 +26,4 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aioice>=0.7.5:devel/py-aioice@${PY_FLAVOR} \
USES= localbase python:3.5+
USE_PYTHON= autoplist concurrent distutils
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30700
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -10,6 +10,9 @@ COMMENT= Backport of the dataclasses module for Python 3.6
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
DEPRECATED= Included in Python 3.7 or later
EXPIRATION_DATE= 2022-03-31
USES= python:3.6
USE_PYTHON= distutils autoplist

View File

@ -56,12 +56,6 @@ SUB_LIST= PYTHON_CMD="${PYTHON_CMD}" \
USERS=${USERS} \
GROUPS=${GROUPS}
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30700
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dataclasses>=0.6:devel/py-dataclasses@${PY_FLAVOR}
.endif
post-install:
${INSTALL_DATA} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/conf/default_config.yaml \
${STAGEDIR}${PREFIX}/etc/${PORTNAME}${PKGNAMESUFFIX}.yaml.sample
@ -69,4 +63,4 @@ post-install:
do-test:
@(cd ${TEST_WRKSRC} && ${SETENV} pytest ${PORTNAME})
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -23,12 +23,6 @@ PORTDOCS= AUTHORS CHANGELOG README.rst
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30700
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources@${PY_FLAVOR}
.endif
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
@ -36,4 +30,4 @@ post-install-DOCS-on:
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -19,13 +19,7 @@ USE_PYTHON= autoplist distutils
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30700
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dataclasses>0:devel/py-dataclasses@${PY_FLAVOR}
.endif
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -23,14 +23,7 @@ USE_GITLAB= yes
GL_ACCOUNT= doctormo
GL_COMMIT= ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0
.include <bsd.port.pre.mk>
# The UTF-8 mode is enabled by default when the locale is C since Python 3.7.
.if ${PYTHON_REL} < 30700
TEST_ENV+= LC_ALL=C.UTF-8
.endif
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -19,14 +19,7 @@ USE_PYTHON= distutils autoplist
NO_ARCH= yes
.include <bsd.port.pre.mk>
# Set a locale to avoid build/configure errors. The UTF-8 mode is enabled by
# default when the locale is C since Python 3.7.
.if ${PYTHON_REL} < 30700
USE_LOCALE= en_US.UTF-8
.endif
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -26,14 +26,7 @@ OPTIONS_DEFAULT= ICU
ICU_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyicu>=1.9.3:devel/py-pyicu@${PY_FLAVOR}
.include <bsd.port.pre.mk>
# Set a locale to avoid build/configure errors. The UTF-8 mode is enabled by
# default when the locale is C since Python 3.7.
.if ${PYTHON_REL} < 30700
USE_LOCALE= en_US.UTF-8
.endif
do-test:
@cd ${WRKSRC} && ${SET_ENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -34,12 +34,6 @@ USES= cpe python:3.6+
CPE_VENDOR= ${PORTNAME}_project
USE_PYTHON= autoplist distutils cython
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30700
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}idna_ssl>=1.0:dns/py-idna_ssl@${PY_FLAVOR}
.endif
pre-configure:
.for file in _frozenlist _helpers _http_parser _http_writer _websocket
@${RM} ${WRKSRC}/aiohttp/${file}.c
@ -52,4 +46,4 @@ post-install:
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -25,13 +25,6 @@ DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django32>=2.2:www/py-django32@${PY_FL
${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
.include <bsd.port.pre.mk>
# Set a locale to avoid build/configure errors. The UTF-8 mode is enabled by
# default when the locale is C since Python 3.7.
.if ${PYTHON_REL} < 30700
USE_LOCALE= en_US.UTF-8
.endif
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/build/sphinx/html && \
@ -41,4 +34,4 @@ post-install-DOCS-on:
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -21,13 +21,4 @@ USE_PYTHON= autoplist distutils
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30700
# Force an UTF-8 environment to avoid failures in the configuration phase for
# Python versions <= 3.6. Since Python 3.7 the UTF-8 mode is enabled by
# default when the locale is C.
USE_LOCALE= en_US.UTF-8
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -25,13 +25,6 @@ DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=2.2:www/py-django22@${PY_FL
${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
.include <bsd.port.pre.mk>
# Set a locale to avoid build/configure errors. The UTF-8 mode is enabled by
# default when the locale is C since Python 3.7.
.if ${PYTHON_REL} < 30700
USE_LOCALE= en_US.UTF-8
.endif
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/build/sphinx/html && \
@ -41,4 +34,4 @@ post-install-DOCS-on:
do-test:
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -40,10 +40,6 @@ WEBENGINE_USE= PYQT=webengine
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 30700
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dataclasses>0:devel/py-dataclasses@${PY_FLAVOR}
.endif
.if ${PYTHON_REL} < 30900
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-resources>0:devel/py-importlib-resources@${PY_FLAVOR}
.endif