git: 02b9c8c0b279 - main - devel/py-flit-core: Update to 3.6.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 23 Jan 2022 19:27:50 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=02b9c8c0b279324c6e61588e8da1b27a5b796b9b

commit 02b9c8c0b279324c6e61588e8da1b27a5b796b9b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-23 18:19:21 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-23 18:19:21 +0000

    devel/py-flit-core: Update to 3.6.0
    
    - Update WWW
    
    Changes:        https://github.com/pypa/flit/blob/main/doc/history.rst
---
 devel/py-flit-core/Makefile       |  5 ++--
 devel/py-flit-core/distinfo       |  6 ++--
 devel/py-flit-core/files/setup.py | 61 +++++++++++++++++++++++++++------------
 devel/py-flit-core/pkg-descr      |  2 +-
 4 files changed, 49 insertions(+), 25 deletions(-)

diff --git a/devel/py-flit-core/Makefile b/devel/py-flit-core/Makefile
index 6458e9310467..ee8b0f11d0aa 100644
--- a/devel/py-flit-core/Makefile
+++ b/devel/py-flit-core/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	flit-core
-PORTVERSION=	3.5.1
+PORTVERSION=	3.6.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,7 +12,6 @@ COMMENT=	Distribution-building parts of Flit
 
 LICENSE=	BSD3CLAUSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}testpath>=0:devel/py-testpath@${PY_FLAVOR}
 
@@ -22,7 +21,7 @@ USE_PYTHON=	autoplist concurrent distutils
 NO_ARCH=	yes
 
 post-patch:
-	@${CP} ${FILESDIR}/setup.py ${WRKSRC}
+	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
 
 do-test:
 	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
diff --git a/devel/py-flit-core/distinfo b/devel/py-flit-core/distinfo
index 8ad456cca27c..3f40bc5768ef 100644
--- a/devel/py-flit-core/distinfo
+++ b/devel/py-flit-core/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1638556562
-SHA256 (flit_core-3.5.1.tar.gz) = 3083720351a6cb00e0634a1ec0e26eae7b273174c3c6c03d5b597a14203b282e
-SIZE (flit_core-3.5.1.tar.gz) = 27497
+TIMESTAMP = 1642102263
+SHA256 (flit_core-3.6.0.tar.gz) = 5892962ab8b8ea945835b3a288fe9dd69316f1903d5288c3f5cafdcdd04756ad
+SIZE (flit_core-3.6.0.tar.gz) = 37534
diff --git a/devel/py-flit-core/files/setup.py b/devel/py-flit-core/files/setup.py
index f18b5a65653c..2e7730161628 100644
--- a/devel/py-flit-core/files/setup.py
+++ b/devel/py-flit-core/files/setup.py
@@ -1,19 +1,44 @@
-from setuptools import setup, find_packages
-import flit_core
+#!/usr/bin/env python
+# setup.py generated by flit for tools that don't yet use PEP 517
 
-setup(
-    name='flit_core',
-    version=flit_core.__version__,
-    author='Thomas Kluyver & contributors',
-    author_email='thomas@kluyver.me.uk',
-    description="Flit's core machinery for building packages.",
-    long_description='Distribution-building parts of Flit. See flit package for more information',
-    url='https://github.com/takluyver/flit',
-    packages=find_packages(),
-    install_requires=['tomli'],
-    python_requires='>=3.6',
-    classifiers=[
-        "License :: OSI Approved :: BSD License",
-        "Topic :: Software Development :: Libraries :: Python Modules",
-    ]
-)
+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='%%PORTVERSION%%',
+      description='Distribution-building parts of Flit. See flit package for more information',
+      author=None,
+      author_email='Thomas Kluyver & contributors <thomas@kluyver.me.uk>',
+      url=None,
+      packages=packages,
+      package_data=package_data,
+      python_requires='>=3.6',
+     )
diff --git a/devel/py-flit-core/pkg-descr b/devel/py-flit-core/pkg-descr
index 8daf61ca425a..7786289534f1 100644
--- a/devel/py-flit-core/pkg-descr
+++ b/devel/py-flit-core/pkg-descr
@@ -1,4 +1,4 @@
 flit_core provides a PEP 517 build backend for packages using Flit. The only
 public interface is the API specified by PEP 517, at flit_core.buildapi.
 
-WWW: https://github.com/pypa/flit/tree/master/flit_core
+WWW: https://github.com/pypa/flit/tree/main/flit_core