Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160355180
D46236.id143395.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
D46236.id143395.diff
View Options
diff --git a/devel/py-setuptools/Makefile b/devel/py-setuptools/Makefile
--- a/devel/py-setuptools/Makefile
+++ b/devel/py-setuptools/Makefile
@@ -1,6 +1,5 @@
PORTNAME= setuptools
-PORTVERSION= 63.1.0
-PORTREVISION= 1
+PORTVERSION= 75.1.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,33 +15,45 @@
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${CORE_DEPENDS}
+RUN_DEPENDS= ${CORE_DEPENDS}
+
USES= cpe python
-USE_PYTHON= allflavors autoplist concurrent distutils
+USE_PYTHON= allflavors autoplist concurrent pep517 pytest
CPE_VENDOR= python
-MAKE_ENV+= SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
-NO_ARCH= yes
-PYDISTUTILS_SETUP= ${PYSETUP}
+CORE_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=24:devel/py-packaging@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}more-itertools>=8.8:devel/py-more-itertools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0.43.0:devel/py-wheel@${PY_FLAVOR}
-PLIST_FILES= "@sample %%PYTHON_SITELIBDIR%%/easy-install.pth.dist %%PYTHON_SITELIBDIR%%/easy-install.pth"
+# circular dependencies
+#CORE_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jaraco.text>=3.7:devel/py-jaraco.text@${PY_FLAVOR} \
+# ${PYTHON_PKGNAMEPREFIX}platformdirs>=2.6.2:devel/py-platformdirs@${PY_FLAVOR}
+
+NO_ARCH= yes
.include <bsd.port.pre.mk>
-.if ${FLAVOR} != ${FLAVORS:[1]}
-SUB_FILES+= pkg-message
-SUB_LIST+= PYTHON_VER=${PYTHON_VER}
+.if ${PYTHON_REL} < 30900
+CORE_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=5.10.2:devel/py-importlib-resources@${PY_FLAVOR}
+.endif
+.if ${PYTHON_REL} < 31000
+CORE_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=6:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+.if ${PYTHON_REL} < 31100
+CORE_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=2.0.1:textproc/py-tomli@${PY_FLAVOR}
.endif
-# These create dependency loops in redports/poudriere, because setuptools
-# is currently an explicit BUILD & RUN dependency in Uses/python.mk.
-#TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
-# pkg install -y py38-pytest py38-mock py38-pytest-fixture-config py38-pytest-virtualenv py38-paver
-
-post-install:
- ${INSTALL_DATA} ${FILESDIR}/easy-install.pth.dist ${STAGEDIR}${PYTHON_SITELIBDIR}/
-
-do-test:
- cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
+post-patch:
+ # remove vendored packages of those already installed via pkg(8)
+ @cd ${WRKSRC}/setuptools/_vendor && ${RM} -r \
+ packaging* \
+ more_itertools* \
+ wheel* \
+ importlib_resources* \
+ importlib_metadata* \
+ tomli* \
+ zipp*
.include <bsd.port.post.mk>
diff --git a/devel/py-setuptools/distinfo b/devel/py-setuptools/distinfo
--- a/devel/py-setuptools/distinfo
+++ b/devel/py-setuptools/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1657634036
-SHA256 (python/setuptools-63.1.0.tar.gz) = 16923d366ced322712c71ccb97164d07472abeecd13f3a6c283f6d5d26722793
-SIZE (python/setuptools-63.1.0.tar.gz) = 2599380
+TIMESTAMP = 1726525726
+SHA256 (python/setuptools-75.1.0.tar.gz) = d59a21b17a275fb872a9c3dae73963160ae079f1049ed956880cd7c09b120538
+SIZE (python/setuptools-75.1.0.tar.gz) = 1348057
diff --git a/devel/py-setuptools/files/easy-install.pth.dist b/devel/py-setuptools/files/easy-install.pth.dist
deleted file mode 100644
--- a/devel/py-setuptools/files/easy-install.pth.dist
+++ /dev/null
@@ -1,2 +0,0 @@
-import sys; sys.__plen = len(sys.path)
-import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
diff --git a/devel/py-setuptools/files/patch-setuptools_package__index.py b/devel/py-setuptools/files/patch-setuptools_package__index.py
deleted file mode 100644
--- a/devel/py-setuptools/files/patch-setuptools_package__index.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- setuptools/package_index.py.orig 2022-07-04 02:25:25 UTC
-+++ setuptools/package_index.py
-@@ -197,7 +197,7 @@ def unique_values(func):
- return wrapper
-
-
--REL = re.compile(r"""<([^>]*\srel\s*=\s*['"]?([^'">]+)[^>]*)>""", re.I)
-+REL = re.compile(r"""<([^>]*\srel\s{0,10}=\s{0,10}['"]?([^'" >]+)[^>]*)>""", re.I)
- # this line is here to fix emacs' cruddy broken syntax highlighting
-
-
diff --git a/devel/py-setuptools/files/pkg-message.in b/devel/py-setuptools/files/pkg-message.in
deleted file mode 100644
--- a/devel/py-setuptools/files/pkg-message.in
+++ /dev/null
@@ -1,8 +0,0 @@
-[
-{ type: install
- message: <<EOM
- Only %%PREFIX%%/bin/easy_install-%%PYTHON_VER%% script has been installed
- since Python %%PYTHON_VER%% is not the default Python version.
-EOM
-}
-]
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 24, 3:19 PM (17 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34286860
Default Alt Text
D46236.id143395.diff (4 KB)
Attached To
Mode
D46236: devel/py-setuptools: update to 81.0.0
Attached
Detach File
Event Timeline
Log In to Comment