py-tomli: switch to setup.py generated with flit

This commit is contained in:
adam 2022-01-10 19:16:03 +00:00
parent 0591ff6811
commit 1f69c118fe
2 changed files with 25 additions and 5 deletions

View file

@ -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"

View file

@ -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 <hukkin@users.noreply.github.com>',
url=None,
packages=packages,
package_data=package_data,
python_requires='>=3.7',
)