From 1f69c118feddf5b7039ccac25a89845a204e291e Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 10 Jan 2022 19:16:03 +0000 Subject: [PATCH] py-tomli: switch to setup.py generated with flit --- textproc/py-tomli/Makefile | 10 +++++----- textproc/py-tomli/files/setup.py | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 textproc/py-tomli/files/setup.py diff --git a/textproc/py-tomli/Makefile b/textproc/py-tomli/Makefile index a750cde49381..2e0993d66063 100644 --- a/textproc/py-tomli/Makefile +++ b/textproc/py-tomli/Makefile @@ -1,5 +1,6 @@ -# $NetBSD: Makefile,v 1.4 2022/01/07 16:33:21 adam Exp $ +# $NetBSD: Makefile,v 1.5 2022/01/10 19:16:03 adam Exp $ +# Important: Re-generate files/setup.py on update. DISTNAME= tomli-2.0.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= textproc python @@ -10,13 +11,12 @@ HOMEPAGE= https://github.com/hukkin/tomli COMMENT= Lil' TOML parser LICENSE= mit -# It is possible to install this using flit_core, see -# https://github.com/takluyver/flit/pull/441/files -# for details. For now we keep using setuptools. +USE_LANGUAGES= # none PYTHON_VERSIONS_INCOMPATIBLE= 27 -PYSETUP= -c 'from setuptools import setup; setup(name="tomli", version="${PKGVERSION_NOREV}", packages=["tomli"], package_data={"": ["*"]})' +pre-configure: + ${CP} ${FILESDIR}/setup.py ${WRKSRC}/ .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" diff --git a/textproc/py-tomli/files/setup.py b/textproc/py-tomli/files/setup.py new file mode 100644 index 000000000000..1536d9424d98 --- /dev/null +++ b/textproc/py-tomli/files/setup.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +from setuptools import setup + +packages = \ +['tomli'] + +package_data = \ +{'': ['*']} + +setup(name='tomli', + version='2.0.0', + description="A lil' TOML parser", + author=None, + author_email='Taneli Hukkinen ', + url=None, + packages=packages, + package_data=package_data, + python_requires='>=3.7', + )