pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/py-tomli_w make py-tomli_w use pep517 for bui...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/472adfc33cff
branches:  trunk
changeset: 371680:472adfc33cff
user:      nros <nros%pkgsrc.org@localhost>
date:      Tue Jan 11 21:55:32 2022 +0000

description:
make py-tomli_w use pep517 for buildling

diffstat:

 textproc/py-tomli_w/Makefile       |   9 ++++-----
 textproc/py-tomli_w/PLIST          |  15 ++++++++-------
 textproc/py-tomli_w/files/setup.py |  20 --------------------
 3 files changed, 12 insertions(+), 32 deletions(-)

diffs (71 lines):

diff -r 8034b4c015bb -r 472adfc33cff textproc/py-tomli_w/Makefile
--- a/textproc/py-tomli_w/Makefile      Tue Jan 11 21:53:33 2022 +0000
+++ b/textproc/py-tomli_w/Makefile      Tue Jan 11 21:55:32 2022 +0000
@@ -1,6 +1,5 @@
-# $NetBSD: Makefile,v 1.1 2022/01/10 19:14:58 adam Exp $
+# $NetBSD: Makefile,v 1.2 2022/01/11 21:55:32 nros Exp $
 
-# Important: Re-generate files/setup.py on update.
 DISTNAME=      tomli_w-1.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc python
@@ -15,8 +14,8 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-pre-configure:
-       ${CP} ${FILESDIR}/setup.py ${WRKSRC}/
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-flit_core-[0-9]*:../../devel/py-flit_core
 
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
+.include "../../lang/python/extension.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 8034b4c015bb -r 472adfc33cff textproc/py-tomli_w/PLIST
--- a/textproc/py-tomli_w/PLIST Tue Jan 11 21:53:33 2022 +0000
+++ b/textproc/py-tomli_w/PLIST Tue Jan 11 21:55:32 2022 +0000
@@ -1,12 +1,13 @@
-@comment $NetBSD: PLIST,v 1.1 2022/01/10 19:14:58 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.2 2022/01/11 21:55:32 nros Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
 ${PYSITELIB}/tomli_w/__init__.py
 ${PYSITELIB}/tomli_w/__init__.pyc
-${PYSITELIB}/tomli_w/__init__.pyo
 ${PYSITELIB}/tomli_w/_writer.py
 ${PYSITELIB}/tomli_w/_writer.pyc
-${PYSITELIB}/tomli_w/_writer.pyo
 ${PYSITELIB}/tomli_w/py.typed
diff -r 8034b4c015bb -r 472adfc33cff textproc/py-tomli_w/files/setup.py
--- a/textproc/py-tomli_w/files/setup.py        Tue Jan 11 21:53:33 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-#!/usr/bin/env python
-
-from setuptools import setup
-
-packages = \
-['tomli_w']
-
-package_data = \
-{'': ['*']}
-
-setup(name='tomli_w',
-      version='1.0.0',
-      description="A lil' TOML writer",
-      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