pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/py-tomli



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Jan 10 19:16:03 UTC 2022

Modified Files:
        pkgsrc/textproc/py-tomli: Makefile
Added Files:
        pkgsrc/textproc/py-tomli/files: setup.py

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


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/textproc/py-tomli/Makefile
cvs rdiff -u -r0 -r1.3 pkgsrc/textproc/py-tomli/files/setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-tomli/Makefile
diff -u pkgsrc/textproc/py-tomli/Makefile:1.4 pkgsrc/textproc/py-tomli/Makefile:1.5
--- pkgsrc/textproc/py-tomli/Makefile:1.4       Fri Jan  7 16:33:21 2022
+++ pkgsrc/textproc/py-tomli/Makefile   Mon Jan 10 19:16:03 2022
@@ -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/toml
 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"

Added files:

Index: pkgsrc/textproc/py-tomli/files/setup.py
diff -u /dev/null pkgsrc/textproc/py-tomli/files/setup.py:1.3
--- /dev/null   Mon Jan 10 19:16:03 2022
+++ pkgsrc/textproc/py-tomli/files/setup.py     Mon Jan 10 19:16:03 2022
@@ -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