Date: Sun, 12 Feb 2023 18:46:32 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 9bb250cfb034 - main - textproc/py-tomli: Convert to USE_PYTHON=pep517 Message-ID: <202302121846.31CIkW2K097875@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=9bb250cfb034501c2344337d97dc61f31c70ef5c commit 9bb250cfb034501c2344337d97dc61f31c70ef5c Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-02-12 18:36:56 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-02-12 18:41:47 +0000 textproc/py-tomli: Convert to USE_PYTHON=pep517 - Add build for all Python flavors/versions (USE_PYTHON=allflavors) - Bump PORTREVISION for dependency and package change --- textproc/py-tomli/Makefile | 9 +++++---- textproc/py-tomli/files/setup.py | 25 ------------------------- 2 files changed, 5 insertions(+), 29 deletions(-) diff --git a/textproc/py-tomli/Makefile b/textproc/py-tomli/Makefile index b440e6a17fc3..8a367993d5a6 100644 --- a/textproc/py-tomli/Makefile +++ b/textproc/py-tomli/Makefile @@ -1,5 +1,6 @@ PORTNAME= tomli PORTVERSION= 2.0.1 +PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,12 +12,12 @@ WWW= https://github.com/hukkin/tomli LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils +USES= python +USE_PYTHON= allflavors autoplist concurrent pep517 NO_ARCH= yes -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py +PEP517_BUILD_CMD= ${PYTHON_CMD} -m flit_core.wheel +PEP517_BUILD_DEPEND= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.2.0<4:devel/py-flit-core@${PY_FLAVOR} .include <bsd.port.mk> diff --git a/textproc/py-tomli/files/setup.py b/textproc/py-tomli/files/setup.py deleted file mode 100644 index 3a7a2820c9a8..000000000000 --- a/textproc/py-tomli/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 = \ -['tomli'] - -package_data = \ -{'': ['*']} - -package_dir = \ -{'': 'src'} - -setup(name='tomli', - version='%%PORTVERSION%%', - description="A lil' TOML parser", - author=None, - author_email='Taneli Hukkinen <hukkin@users.noreply.github.com>', - url=None, - packages=packages, - package_data=package_data, - package_dir=package_dir, - python_requires='>=3.7', - )
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302121846.31CIkW2K097875>