pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-flit_core make py-flit_core use pep517 for bu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1a413852b351
branches:  trunk
changeset: 371678:1a413852b351
user:      nros <nros%pkgsrc.org@localhost>
date:      Tue Jan 11 21:49:03 2022 +0000

description:
make py-flit_core use pep517 for building

diffstat:

 devel/py-flit_core/DESCR          |   4 +-
 devel/py-flit_core/Makefile       |  12 ++-------
 devel/py-flit_core/PLIST          |  49 +++++---------------------------------
 devel/py-flit_core/files/setup.py |  44 -----------------------------------
 4 files changed, 12 insertions(+), 97 deletions(-)

diffs (247 lines):

diff -r d1e9caa97db4 -r 1a413852b351 devel/py-flit_core/DESCR
--- a/devel/py-flit_core/DESCR  Tue Jan 11 21:37:06 2022 +0000
+++ b/devel/py-flit_core/DESCR  Tue Jan 11 21:49:03 2022 +0000
@@ -3,5 +3,5 @@
 It tries to require less thought about packaging and help you avoid
 common mistakes.
 
-flit_core is the core library inside flit, used to bootstrap the build
-of the flit tool.
+flit_core is the flit pep517 build backend, used as a build backend
+for a lot of python packages including the build of the flit tool.
diff -r d1e9caa97db4 -r 1a413852b351 devel/py-flit_core/Makefile
--- a/devel/py-flit_core/Makefile       Tue Jan 11 21:37:06 2022 +0000
+++ b/devel/py-flit_core/Makefile       Tue Jan 11 21:49:03 2022 +0000
@@ -1,6 +1,5 @@
-# $NetBSD: Makefile,v 1.2 2022/01/10 19:17:09 adam Exp $
+# $NetBSD: Makefile,v 1.3 2022/01/11 21:49:03 nros Exp $
 
-# Important: Re-generate files/setup.py on update.
 DISTNAME=      flit_core-3.6.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
@@ -18,11 +17,6 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-pre-configure:
-       ${CP} ${FILESDIR}/setup.py ${WRKSRC}/
-
-do-test:
-       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} flit_core/tests
-
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
+.include "../../lang/python/extension.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r d1e9caa97db4 -r 1a413852b351 devel/py-flit_core/PLIST
--- a/devel/py-flit_core/PLIST  Tue Jan 11 21:37:06 2022 +0000
+++ b/devel/py-flit_core/PLIST  Tue Jan 11 21:49:03 2022 +0000
@@ -1,38 +1,31 @@
-@comment $NetBSD: PLIST,v 1.2 2022/01/10 19:17:09 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.3 2022/01/11 21:49:03 nros Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
 ${PYSITELIB}/flit_core/__init__.py
 ${PYSITELIB}/flit_core/__init__.pyc
-${PYSITELIB}/flit_core/__init__.pyo
 ${PYSITELIB}/flit_core/buildapi.py
 ${PYSITELIB}/flit_core/buildapi.pyc
-${PYSITELIB}/flit_core/buildapi.pyo
 ${PYSITELIB}/flit_core/common.py
 ${PYSITELIB}/flit_core/common.pyc
-${PYSITELIB}/flit_core/common.pyo
 ${PYSITELIB}/flit_core/config.py
 ${PYSITELIB}/flit_core/config.pyc
-${PYSITELIB}/flit_core/config.pyo
 ${PYSITELIB}/flit_core/sdist.py
 ${PYSITELIB}/flit_core/sdist.pyc
-${PYSITELIB}/flit_core/sdist.pyo
 ${PYSITELIB}/flit_core/tests/__init__.py
 ${PYSITELIB}/flit_core/tests/__init__.pyc
-${PYSITELIB}/flit_core/tests/__init__.pyo
 ${PYSITELIB}/flit_core/tests/samples/EG_README.rst
 ${PYSITELIB}/flit_core/tests/samples/bad-description-ext.toml
 ${PYSITELIB}/flit_core/tests/samples/conflicting_modules/module1.py
 ${PYSITELIB}/flit_core/tests/samples/conflicting_modules/module1.pyc
-${PYSITELIB}/flit_core/tests/samples/conflicting_modules/module1.pyo
 ${PYSITELIB}/flit_core/tests/samples/conflicting_modules/pyproject.toml
 ${PYSITELIB}/flit_core/tests/samples/conflicting_modules/src/module1.py
 ${PYSITELIB}/flit_core/tests/samples/conflicting_modules/src/module1.pyc
-${PYSITELIB}/flit_core/tests/samples/conflicting_modules/src/module1.pyo
 ${PYSITELIB}/flit_core/tests/samples/constructed_version/module1.py
 ${PYSITELIB}/flit_core/tests/samples/constructed_version/module1.pyc
-${PYSITELIB}/flit_core/tests/samples/constructed_version/module1.pyo
 ${PYSITELIB}/flit_core/tests/samples/constructed_version/pyproject.toml
 ${PYSITELIB}/flit_core/tests/samples/extras-dev-conflict.toml
 ${PYSITELIB}/flit_core/tests/samples/extras.toml
@@ -42,65 +35,51 @@
 ${PYSITELIB}/flit_core/tests/samples/inclusion/doc/test.txt
 ${PYSITELIB}/flit_core/tests/samples/inclusion/module1.py
 ${PYSITELIB}/flit_core/tests/samples/inclusion/module1.pyc
-${PYSITELIB}/flit_core/tests/samples/inclusion/module1.pyo
 ${PYSITELIB}/flit_core/tests/samples/inclusion/pyproject.toml
 ${PYSITELIB}/flit_core/tests/samples/invalid_version1.py
 ${PYSITELIB}/flit_core/tests/samples/invalid_version1.pyc
-${PYSITELIB}/flit_core/tests/samples/invalid_version1.pyo
 ${PYSITELIB}/flit_core/tests/samples/missing-description-file.toml
 ${PYSITELIB}/flit_core/tests/samples/misspelled-key.toml
 ${PYSITELIB}/flit_core/tests/samples/module1-pkg.ini
 ${PYSITELIB}/flit_core/tests/samples/module1-pkg.toml
 ${PYSITELIB}/flit_core/tests/samples/module1.py
 ${PYSITELIB}/flit_core/tests/samples/module1.pyc
-${PYSITELIB}/flit_core/tests/samples/module1.pyo
 ${PYSITELIB}/flit_core/tests/samples/module2.py
 ${PYSITELIB}/flit_core/tests/samples/module2.pyc
-${PYSITELIB}/flit_core/tests/samples/module2.pyo
 ${PYSITELIB}/flit_core/tests/samples/moduleunimportable.py
 ${PYSITELIB}/flit_core/tests/samples/moduleunimportable.pyc
-${PYSITELIB}/flit_core/tests/samples/moduleunimportable.pyo
 ${PYSITELIB}/flit_core/tests/samples/my-description.rst
 ${PYSITELIB}/flit_core/tests/samples/no_docstring-pkg.toml
 ${PYSITELIB}/flit_core/tests/samples/no_docstring.py
 ${PYSITELIB}/flit_core/tests/samples/no_docstring.pyc
-${PYSITELIB}/flit_core/tests/samples/no_docstring.pyo
 ${PYSITELIB}/flit_core/tests/samples/ns1-pkg/EG_README.rst
 ${PYSITELIB}/flit_core/tests/samples/ns1-pkg/ns1/pkg/__init__.py
 ${PYSITELIB}/flit_core/tests/samples/ns1-pkg/ns1/pkg/__init__.pyc
-${PYSITELIB}/flit_core/tests/samples/ns1-pkg/ns1/pkg/__init__.pyo
 ${PYSITELIB}/flit_core/tests/samples/ns1-pkg/pyproject.toml
 ${PYSITELIB}/flit_core/tests/samples/package1.toml
 ${PYSITELIB}/flit_core/tests/samples/package1/__init__.py
 ${PYSITELIB}/flit_core/tests/samples/package1/__init__.pyc
-${PYSITELIB}/flit_core/tests/samples/package1/__init__.pyo
 ${PYSITELIB}/flit_core/tests/samples/package1/data_dir/foo.sh
 ${PYSITELIB}/flit_core/tests/samples/package1/foo.py
 ${PYSITELIB}/flit_core/tests/samples/package1/foo.pyc
-${PYSITELIB}/flit_core/tests/samples/package1/foo.pyo
 ${PYSITELIB}/flit_core/tests/samples/package1/subpkg/__init__.py
 ${PYSITELIB}/flit_core/tests/samples/package1/subpkg/__init__.pyc
-${PYSITELIB}/flit_core/tests/samples/package1/subpkg/__init__.pyo
 ${PYSITELIB}/flit_core/tests/samples/package1/subpkg/sp_data_dir/test.json
 ${PYSITELIB}/flit_core/tests/samples/package1/subpkg2/__init__.py
 ${PYSITELIB}/flit_core/tests/samples/package1/subpkg2/__init__.pyc
-${PYSITELIB}/flit_core/tests/samples/package1/subpkg2/__init__.pyo
 ${PYSITELIB}/flit_core/tests/samples/pep517/LICENSE
 ${PYSITELIB}/flit_core/tests/samples/pep517/README.rst
 ${PYSITELIB}/flit_core/tests/samples/pep517/module1.py
 ${PYSITELIB}/flit_core/tests/samples/pep517/module1.pyc
-${PYSITELIB}/flit_core/tests/samples/pep517/module1.pyo
 ${PYSITELIB}/flit_core/tests/samples/pep517/pyproject.toml
 ${PYSITELIB}/flit_core/tests/samples/pep621/LICENSE
 ${PYSITELIB}/flit_core/tests/samples/pep621/README.rst
 ${PYSITELIB}/flit_core/tests/samples/pep621/module1a.py
 ${PYSITELIB}/flit_core/tests/samples/pep621/module1a.pyc
-${PYSITELIB}/flit_core/tests/samples/pep621/module1a.pyo
 ${PYSITELIB}/flit_core/tests/samples/pep621/pyproject.toml
 ${PYSITELIB}/flit_core/tests/samples/pep621_nodynamic/README.rst
 ${PYSITELIB}/flit_core/tests/samples/pep621_nodynamic/module1.py
 ${PYSITELIB}/flit_core/tests/samples/pep621_nodynamic/module1.pyc
-${PYSITELIB}/flit_core/tests/samples/pep621_nodynamic/module1.pyo
 ${PYSITELIB}/flit_core/tests/samples/pep621_nodynamic/pyproject.toml
 ${PYSITELIB}/flit_core/tests/samples/requires-dev.toml
 ${PYSITELIB}/flit_core/tests/samples/requires-envmark.toml
@@ -108,47 +87,33 @@
 ${PYSITELIB}/flit_core/tests/samples/requires-requests.toml
 ${PYSITELIB}/flit_core/tests/test_build_thyself.py
 ${PYSITELIB}/flit_core/tests/test_build_thyself.pyc
-${PYSITELIB}/flit_core/tests/test_build_thyself.pyo
 ${PYSITELIB}/flit_core/tests/test_buildapi.py
 ${PYSITELIB}/flit_core/tests/test_buildapi.pyc
-${PYSITELIB}/flit_core/tests/test_buildapi.pyo
 ${PYSITELIB}/flit_core/tests/test_common.py
 ${PYSITELIB}/flit_core/tests/test_common.pyc
-${PYSITELIB}/flit_core/tests/test_common.pyo
 ${PYSITELIB}/flit_core/tests/test_config.py
 ${PYSITELIB}/flit_core/tests/test_config.pyc
-${PYSITELIB}/flit_core/tests/test_config.pyo
 ${PYSITELIB}/flit_core/tests/test_sdist.py
 ${PYSITELIB}/flit_core/tests/test_sdist.pyc
-${PYSITELIB}/flit_core/tests/test_sdist.pyo
 ${PYSITELIB}/flit_core/tests/test_versionno.py
 ${PYSITELIB}/flit_core/tests/test_versionno.pyc
-${PYSITELIB}/flit_core/tests/test_versionno.pyo
 ${PYSITELIB}/flit_core/tests/test_wheel.py
 ${PYSITELIB}/flit_core/tests/test_wheel.pyc
-${PYSITELIB}/flit_core/tests/test_wheel.pyo
 ${PYSITELIB}/flit_core/vendor/README
 ${PYSITELIB}/flit_core/vendor/__init__.py
 ${PYSITELIB}/flit_core/vendor/__init__.pyc
-${PYSITELIB}/flit_core/vendor/__init__.pyo
 ${PYSITELIB}/flit_core/vendor/tomli-1.2.3.dist-info/LICENSE
 ${PYSITELIB}/flit_core/vendor/tomli-1.2.3.dist-info/METADATA
 ${PYSITELIB}/flit_core/vendor/tomli/__init__.py
 ${PYSITELIB}/flit_core/vendor/tomli/__init__.pyc
-${PYSITELIB}/flit_core/vendor/tomli/__init__.pyo
 ${PYSITELIB}/flit_core/vendor/tomli/_parser.py
 ${PYSITELIB}/flit_core/vendor/tomli/_parser.pyc
-${PYSITELIB}/flit_core/vendor/tomli/_parser.pyo
 ${PYSITELIB}/flit_core/vendor/tomli/_re.py
 ${PYSITELIB}/flit_core/vendor/tomli/_re.pyc
-${PYSITELIB}/flit_core/vendor/tomli/_re.pyo
 ${PYSITELIB}/flit_core/vendor/tomli/_types.py
 ${PYSITELIB}/flit_core/vendor/tomli/_types.pyc
-${PYSITELIB}/flit_core/vendor/tomli/_types.pyo
 ${PYSITELIB}/flit_core/vendor/tomli/py.typed
 ${PYSITELIB}/flit_core/versionno.py
 ${PYSITELIB}/flit_core/versionno.pyc
-${PYSITELIB}/flit_core/versionno.pyo
 ${PYSITELIB}/flit_core/wheel.py
 ${PYSITELIB}/flit_core/wheel.pyc
-${PYSITELIB}/flit_core/wheel.pyo
diff -r d1e9caa97db4 -r 1a413852b351 devel/py-flit_core/files/setup.py
--- a/devel/py-flit_core/files/setup.py Tue Jan 11 21:37:06 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-#!/usr/bin/env python
-# setup.py generated by flit for tools that don't yet use PEP 517
-
-from distutils.core import setup
-
-packages = \
-['flit_core',
- 'flit_core.tests',
- 'flit_core.tests.samples.ns1-pkg.ns1.pkg',
- 'flit_core.tests.samples.package1',
- 'flit_core.tests.samples.package1.subpkg',
- 'flit_core.tests.samples.package1.subpkg2',
- 'flit_core.vendor',
- 'flit_core.vendor.tomli']
-
-package_data = \
-{'': ['*'],
- 'flit_core.tests': ['samples/*',
-                     'samples/conflicting_modules/*',
-                     'samples/conflicting_modules/src/*',
-                     'samples/constructed_version/*',
-                     'samples/inclusion/*',
-                     'samples/inclusion/LICENSES/*',
-                     'samples/inclusion/doc/*',
-                     'samples/inclusion/doc/subdir/*',
-                     'samples/ns1-pkg/*',
-                     'samples/ns1-pkg/ns1/*',
-                     'samples/pep517/*',
-                     'samples/pep621/*',
-                     'samples/pep621_nodynamic/*'],
- 'flit_core.tests.samples.package1': ['data_dir/*'],
- 'flit_core.tests.samples.package1.subpkg': ['sp_data_dir/*'],
- 'flit_core.vendor': ['tomli-1.2.3.dist-info/*']}
-
-setup(name='flit_core',
-      version='3.6.0',
-      description='Distribution-building parts of Flit. See flit package for more information',
-      author=None,
-      author_email='Thomas Kluyver & contributors <thomas%kluyver.me.uk@localhost>',
-      url=None,
-      packages=packages,
-      package_data=package_data,
-      python_requires='>=3.6',
-     )



Home | Main Index | Thread Index | Old Index