pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/py-tomli py-tomli: switch to setup.py generat...
details: https://anonhg.NetBSD.org/pkgsrc/rev/56d35825dba5
branches: trunk
changeset: 371514:56d35825dba5
user: adam <adam%pkgsrc.org@localhost>
date: Mon Jan 10 19:16:03 2022 +0000
description:
py-tomli: switch to setup.py generated with flit
diffstat:
textproc/py-tomli/Makefile | 10 +++++-----
textproc/py-tomli/files/setup.py | 20 ++++++++++++++++++++
2 files changed, 25 insertions(+), 5 deletions(-)
diffs (52 lines):
diff -r 87fcd4284479 -r 56d35825dba5 textproc/py-tomli/Makefile
--- a/textproc/py-tomli/Makefile Mon Jan 10 19:14:58 2022 +0000
+++ b/textproc/py-tomli/Makefile Mon Jan 10 19:16:03 2022 +0000
@@ -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 @@
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 -r 87fcd4284479 -r 56d35825dba5 textproc/py-tomli/files/setup.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-tomli/files/setup.py Mon Jan 10 19:16:03 2022 +0000
@@ -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@localhost>',
+ url=None,
+ packages=packages,
+ package_data=package_data,
+ python_requires='>=3.7',
+ )
Home |
Main Index |
Thread Index |
Old Index