Remove python 2.7 support from a few ports
This commit is contained in:
@@ -17,7 +17,7 @@ LIB_DEPENDS= libffi.so:devel/libffi
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycparser>=0:devel/py-pycparser@${PY_FLAVOR}
|
||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
|
||||
|
||||
USES= compiler:c11 localbase python
|
||||
USES= compiler:c11 localbase python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
@@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.rst
|
||||
|
||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
@@ -14,7 +14,7 @@ LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
NO_ARCH= yes
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -17,7 +17,7 @@ LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/LICENSE.BSD
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyparsing>=2.0.2:devel/py-pyparsing@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
@@ -15,19 +15,13 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.rst
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= distutils autoplist
|
||||
NO_ARCH= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PYTHON_REL} < 3500
|
||||
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}scandir>=0:sysutils/py-scandir@${PY_FLAVOR}
|
||||
.endif
|
||||
|
||||
do-test:
|
||||
@(cd ${WRKSRC} && \
|
||||
${PYTHON_CMD} test_pathlib2.py && \
|
||||
${PYTHON_CMD} test_pathlib2_with_py2_unicode_literals.py)
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -41,7 +41,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>=0:security/py-cryptography@${
|
||||
git:devel/git \
|
||||
svn:devel/subversion
|
||||
|
||||
USES= python shebangfix
|
||||
USES= python:3.6+ shebangfix
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
MAKE_ENV= PYTHONPATH=${WRKSRC}/src/
|
||||
|
||||
@@ -13,7 +13,7 @@ COMMENT= General parsing module for Python
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
@@ -17,9 +17,6 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
||||
DOCS_BUILD_DEPENDS= ${PY_SPHINX} \
|
||||
${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}towncrier>0:textproc/py-towncrier@${PY_FLAVOR}
|
||||
.if ${FLAVOR:U:Mpy27}
|
||||
DOCS_BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pathlib2>0:devel/py-pathlib2@${PY_FLAVOR}
|
||||
.endif
|
||||
DOCS_BINARY_ALIAS= towncrier=towncrier-${PYTHON_VER}
|
||||
DOCS_PORTDOCS= *
|
||||
DOCS_VARS= PYDISTUTILS_BUILD_TARGET="build build_sphinx"
|
||||
@@ -37,7 +34,7 @@ OPTIONS_DEFINE= DOCS
|
||||
|
||||
PYDISTUTILS_BUILDARGS= -c ${WRKSRC}/docs
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_GITHUB= yes
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ LICENSE= BSD3CLAUSE PSFL
|
||||
LICENSE_COMB= multi
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.rst
|
||||
|
||||
USES= python # Actually, 2.7,3.4-3.8
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
@@ -13,7 +13,7 @@ COMMENT= Python image size library
|
||||
LICENSE= MIT
|
||||
|
||||
NO_ARCH= yes
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist distutils
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -14,7 +14,7 @@ COMMENT= Python SOCKS module
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
@@ -25,7 +25,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flaky>=3.6.1:devel/py-flaky@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}cryptography>=1.3.4:security/py-cryptography@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pysocks>=1.5.6:net/py-pysocks@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
@@ -12,7 +12,7 @@ COMMENT= Mozilla SSL certificates
|
||||
|
||||
LICENSE= MPL20
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
@@ -28,7 +28,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography-vectors>=${PORTVERSION}:securi
|
||||
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR}
|
||||
|
||||
# Python 2.7, 3.5-3.8
|
||||
USES= compiler:env python ssl
|
||||
USES= compiler:env python:3.6+ ssl
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
CFLAGS+= -I${OPENSSLINC}
|
||||
|
||||
@@ -21,7 +21,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.0.1:devel/py-pytest@${PY_FLAVOR}
|
||||
${PYTHON_PKGNAMEPREFIX}pretend>0:devel/py-pretend@${PY_FLAVOR} \
|
||||
${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
|
||||
|
||||
USES= cpe python
|
||||
USES= cpe python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils pythonprefix
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
@@ -14,7 +14,7 @@ COMMENT= Fast and featureful directory iterator
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
USE_LOCALE= en_US.UTF-8
|
||||
|
||||
@@ -12,7 +12,7 @@ COMMENT= Modified Kr Sphinx theme
|
||||
LICENSE= MIT
|
||||
|
||||
NO_ARCH= yes
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -19,7 +19,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY
|
||||
${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR}
|
||||
|
||||
NO_ARCH= yes
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
do-test:
|
||||
|
||||
@@ -13,7 +13,7 @@ COMMENT= Python Documentation Utilities
|
||||
LICENSE= BSD2CLAUSE GPLv3+ PD PSFL
|
||||
LICENSE_COMB= multi
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
@@ -13,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-docs-theme>=0:textproc/py-python-docs-theme@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= distutils autoplist
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= pypa
|
||||
|
||||
@@ -15,7 +15,7 @@ COMMENT= Snowball Stemming Algorithms for Information Retrieval
|
||||
LICENSE= MIT BSD3CLAUSE
|
||||
LICENSE_COMB= dual
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist cython distutils
|
||||
|
||||
post-install:
|
||||
|
||||
@@ -12,7 +12,7 @@ COMMENT= Sphinx theme for the CPython docs and related projects
|
||||
LICENSE= PSFL
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
@@ -11,7 +11,7 @@ COMMENT= Snowball stemming library collection for Python
|
||||
|
||||
LICENSE= BSD2CLAUSE
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
@@ -44,7 +44,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}html5lib>=0:www/py-html5lib@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}simplejson>=0:devel/py-simplejson@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist distutils concurrent
|
||||
|
||||
CONFLICTS_INSTALL= py*-sphinx
|
||||
|
||||
@@ -13,7 +13,7 @@ LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
NO_ARCH= yes
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -13,7 +13,7 @@ COMMENT= Sphinx API for Web Apps
|
||||
LICENSE= BSD2CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
@@ -22,7 +22,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}incremental>=0:devel/py-incremental@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}toml>=0:textproc/py-toml@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= distutils concurrent autoplist
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -22,8 +22,7 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLA
|
||||
${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pytest>=2.8.0:devel/py-pytest@${PY_FLAVOR}
|
||||
|
||||
# Actually 2.7,3.5+
|
||||
USES= python
|
||||
USES= python:3.6+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
Reference in New Issue
Block a user