summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2021-01-09 16:34:07 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2021-01-09 16:34:07 +0000
commit8524eefbd1811ebd83997f30fcef7b398ffe0873 (patch)
tree59905ba60083129766f97cebec0ad2d9f17a98be
parentmail/py-python-slimta: Unbreak import with FreeBSD Python (diff)
Remove python 2.7 support from a few ports
Notes
Notes: svn path=/head/; revision=560874
-rw-r--r--devel/py-cffi/Makefile2
-rw-r--r--devel/py-click/Makefile2
-rw-r--r--devel/py-incremental/Makefile2
-rw-r--r--devel/py-packaging/Makefile2
-rw-r--r--devel/py-pathlib2/Makefile10
-rw-r--r--devel/py-pip/Makefile2
-rw-r--r--devel/py-pyparsing/Makefile2
-rw-r--r--devel/py-virtualenv/Makefile5
-rw-r--r--dns/py-idna/Makefile2
-rw-r--r--graphics/py-imagesize/Makefile2
-rw-r--r--net/py-pysocks/Makefile2
-rw-r--r--net/py-urllib3/Makefile2
-rw-r--r--security/py-certifi/Makefile2
-rw-r--r--security/py-cryptography/Makefile2
-rw-r--r--security/py-openssl/Makefile2
-rw-r--r--sysutils/py-scandir/Makefile2
-rw-r--r--textproc/py-alabaster/Makefile2
-rw-r--r--textproc/py-chardet/Makefile2
-rw-r--r--textproc/py-docutils/Makefile2
-rw-r--r--textproc/py-pypa-docs-theme/Makefile2
-rw-r--r--textproc/py-pystemmer/Makefile2
-rw-r--r--textproc/py-python-docs-theme/Makefile2
-rw-r--r--textproc/py-snowballstemmer/Makefile2
-rw-r--r--textproc/py-sphinx18/Makefile2
-rw-r--r--textproc/py-sphinx_rtd_theme/Makefile2
-rw-r--r--textproc/py-sphinxcontrib-websupport11/Makefile2
-rw-r--r--textproc/py-towncrier/Makefile2
-rw-r--r--www/py-requests/Makefile3
28 files changed, 29 insertions, 39 deletions
diff --git a/devel/py-cffi/Makefile b/devel/py-cffi/Makefile
index 5f307b025b4e..75bdc8377e80 100644
--- a/devel/py-cffi/Makefile
+++ b/devel/py-cffi/Makefile
@@ -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>
diff --git a/devel/py-click/Makefile b/devel/py-click/Makefile
index e621bdfe2019..295a60f1e00f 100644
--- a/devel/py-click/Makefile
+++ b/devel/py-click/Makefile
@@ -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
diff --git a/devel/py-incremental/Makefile b/devel/py-incremental/Makefile
index 0af8a9cca952..e0a1c7a9ec0c 100644
--- a/devel/py-incremental/Makefile
+++ b/devel/py-incremental/Makefile
@@ -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>
diff --git a/devel/py-packaging/Makefile b/devel/py-packaging/Makefile
index 7897c316040d..16e244bf7982 100644
--- a/devel/py-packaging/Makefile
+++ b/devel/py-packaging/Makefile
@@ -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
diff --git a/devel/py-pathlib2/Makefile b/devel/py-pathlib2/Makefile
index e8bceeb1e8d1..3883f55f8ed1 100644
--- a/devel/py-pathlib2/Makefile
+++ b/devel/py-pathlib2/Makefile
@@ -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>
diff --git a/devel/py-pip/Makefile b/devel/py-pip/Makefile
index e8999e022596..f7b7273d324f 100644
--- a/devel/py-pip/Makefile
+++ b/devel/py-pip/Makefile
@@ -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/
diff --git a/devel/py-pyparsing/Makefile b/devel/py-pyparsing/Makefile
index 196d4eb1b182..ae59fcc8bc01 100644
--- a/devel/py-pyparsing/Makefile
+++ b/devel/py-pyparsing/Makefile
@@ -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
diff --git a/devel/py-virtualenv/Makefile b/devel/py-virtualenv/Makefile
index 641e26087cc9..35850948058d 100644
--- a/devel/py-virtualenv/Makefile
+++ b/devel/py-virtualenv/Makefile
@@ -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
diff --git a/dns/py-idna/Makefile b/dns/py-idna/Makefile
index 8ebd11f75755..246505acc223 100644
--- a/dns/py-idna/Makefile
+++ b/dns/py-idna/Makefile
@@ -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
diff --git a/graphics/py-imagesize/Makefile b/graphics/py-imagesize/Makefile
index e0df932b5adc..2b8d918cfff5 100644
--- a/graphics/py-imagesize/Makefile
+++ b/graphics/py-imagesize/Makefile
@@ -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>
diff --git a/net/py-pysocks/Makefile b/net/py-pysocks/Makefile
index 5e0686055979..e7d90d35119d 100644
--- a/net/py-pysocks/Makefile
+++ b/net/py-pysocks/Makefile
@@ -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
diff --git a/net/py-urllib3/Makefile b/net/py-urllib3/Makefile
index d03f32f696db..c817d641da8f 100644
--- a/net/py-urllib3/Makefile
+++ b/net/py-urllib3/Makefile
@@ -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
diff --git a/security/py-certifi/Makefile b/security/py-certifi/Makefile
index 4ee42bba548e..b12ee1fe8dab 100644
--- a/security/py-certifi/Makefile
+++ b/security/py-certifi/Makefile
@@ -12,7 +12,7 @@ COMMENT= Mozilla SSL certificates
LICENSE= MPL20
-USES= python
+USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
diff --git a/security/py-cryptography/Makefile b/security/py-cryptography/Makefile
index c8322658c890..9c0e7729d993 100644
--- a/security/py-cryptography/Makefile
+++ b/security/py-cryptography/Makefile
@@ -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}
diff --git a/security/py-openssl/Makefile b/security/py-openssl/Makefile
index f2448c2e61fc..6a3bb8d8af29 100644
--- a/security/py-openssl/Makefile
+++ b/security/py-openssl/Makefile
@@ -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
diff --git a/sysutils/py-scandir/Makefile b/sysutils/py-scandir/Makefile
index 4ca44c02ec1a..81de491f8991 100644
--- a/sysutils/py-scandir/Makefile
+++ b/sysutils/py-scandir/Makefile
@@ -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
diff --git a/textproc/py-alabaster/Makefile b/textproc/py-alabaster/Makefile
index 418d725536cb..b63f93478d05 100644
--- a/textproc/py-alabaster/Makefile
+++ b/textproc/py-alabaster/Makefile
@@ -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>
diff --git a/textproc/py-chardet/Makefile b/textproc/py-chardet/Makefile
index 172fa3d7c29d..cf1231a38d5c 100644
--- a/textproc/py-chardet/Makefile
+++ b/textproc/py-chardet/Makefile
@@ -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:
diff --git a/textproc/py-docutils/Makefile b/textproc/py-docutils/Makefile
index 5110373ccc96..b727a9d20f17 100644
--- a/textproc/py-docutils/Makefile
+++ b/textproc/py-docutils/Makefile
@@ -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
diff --git a/textproc/py-pypa-docs-theme/Makefile b/textproc/py-pypa-docs-theme/Makefile
index 083f031e0968..612275b68407 100644
--- a/textproc/py-pypa-docs-theme/Makefile
+++ b/textproc/py-pypa-docs-theme/Makefile
@@ -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
diff --git a/textproc/py-pystemmer/Makefile b/textproc/py-pystemmer/Makefile
index 3c58626082d9..37fb183b2648 100644
--- a/textproc/py-pystemmer/Makefile
+++ b/textproc/py-pystemmer/Makefile
@@ -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:
diff --git a/textproc/py-python-docs-theme/Makefile b/textproc/py-python-docs-theme/Makefile
index c1c0be69b810..bb332a149d64 100644
--- a/textproc/py-python-docs-theme/Makefile
+++ b/textproc/py-python-docs-theme/Makefile
@@ -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
diff --git a/textproc/py-snowballstemmer/Makefile b/textproc/py-snowballstemmer/Makefile
index 5fd3081e90ec..49dfc5d7af93 100644
--- a/textproc/py-snowballstemmer/Makefile
+++ b/textproc/py-snowballstemmer/Makefile
@@ -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
diff --git a/textproc/py-sphinx18/Makefile b/textproc/py-sphinx18/Makefile
index 86ddc6a6d3f3..c5c78a23e3b4 100644
--- a/textproc/py-sphinx18/Makefile
+++ b/textproc/py-sphinx18/Makefile
@@ -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
diff --git a/textproc/py-sphinx_rtd_theme/Makefile b/textproc/py-sphinx_rtd_theme/Makefile
index 5e747a6f538a..3c12b2d465e7 100644
--- a/textproc/py-sphinx_rtd_theme/Makefile
+++ b/textproc/py-sphinx_rtd_theme/Makefile
@@ -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>
diff --git a/textproc/py-sphinxcontrib-websupport11/Makefile b/textproc/py-sphinxcontrib-websupport11/Makefile
index aad80614f286..fb604ebfc0a2 100644
--- a/textproc/py-sphinxcontrib-websupport11/Makefile
+++ b/textproc/py-sphinxcontrib-websupport11/Makefile
@@ -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
diff --git a/textproc/py-towncrier/Makefile b/textproc/py-towncrier/Makefile
index 3b776d69c475..bffbcf8f3208 100644
--- a/textproc/py-towncrier/Makefile
+++ b/textproc/py-towncrier/Makefile
@@ -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>
diff --git a/www/py-requests/Makefile b/www/py-requests/Makefile
index eb09b8594abf..785b526e81b6 100644
--- a/www/py-requests/Makefile
+++ b/www/py-requests/Makefile
@@ -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