Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109713116
D37920.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37920.diff
View Options
Index: devel/py-packaging/Makefile
===================================================================
--- devel/py-packaging/Makefile
+++ devel/py-packaging/Makefile
@@ -1,10 +1,11 @@
PORTNAME= packaging
-PORTVERSION= 23.0
+DISTVERSION= 23.0
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-MAINTAINER= sunpoet@FreeBSD.org
+MAINTAINER= python@FreeBSD.org
COMMENT= Core utilities for Python packages
WWW= https://github.com/pypa/packaging
@@ -13,12 +14,11 @@
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.APACHE
LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/LICENSE.BSD
-USES= python:3.7+
-USE_PYTHON= autoplist concurrent distutils
+USES= python
+USE_PYTHON= allflavors autoplist concurrent pep517
+PEP517_BUILD_CMD= ${PYTHON_CMD} -m flit_core.wheel
+PEP517_BUILD_DEPEND= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.3:devel/py-flit-core@${PY_FLAVOR}
NO_ARCH= yes
-post-patch:
- @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
-
.include <bsd.port.mk>
Index: devel/py-packaging/files/setup.py
===================================================================
--- devel/py-packaging/files/setup.py
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env python
-# setup.py generated by flit for tools that don't yet use PEP 517
-
-from distutils.core import setup
-
-packages = \
-['packaging']
-
-package_data = \
-{'': ['*']}
-
-package_dir = \
-{'': 'src'}
-
-setup(name='packaging',
- version='%%PORTVERSION%%',
- description='Core utilities for Python packages',
- author=None,
- author_email='Donald Stufft <donald@stufft.io>',
- url=None,
- packages=packages,
- package_data=package_data,
- package_dir=package_dir,
- python_requires='>=3.7',
- )
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 9, 4:02 PM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16557308
Default Alt Text
D37920.diff (1 KB)
Attached To
Mode
D37920: devel/py-packaging: convert to USE_PYTHON=pep517
Attached
Detach File
Event Timeline
Log In to Comment