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 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 ', - url=None, - packages=packages, - package_data=package_data, - package_dir=package_dir, - python_requires='>=3.7', - )