git: 210e8d9ee1c8 - main - devel/py-pdm-pep517: Add py-pdm-pep517 0.8.4
Po-Chuan Hsieh
sunpoet at FreeBSD.org
Mon Sep 27 19:48:58 UTC 2021
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=210e8d9ee1c8909256d661eb4fa01990745cf014
commit 210e8d9ee1c8909256d661eb4fa01990745cf014
Author: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-09-27 19:44:01 +0000
Commit: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-09-27 19:48:06 +0000
devel/py-pdm-pep517: Add py-pdm-pep517 0.8.4
This is the backend for PDM projects, while you can also use it alone. It reads
the metadata of PEP 621 format and coverts it to Core metadata.
WWW: https://github.com/pdm-project/pdm-pep517
---
devel/Makefile | 1 +
devel/py-pdm-pep517/Makefile | 23 +++++++++++++++
devel/py-pdm-pep517/distinfo | 3 ++
devel/py-pdm-pep517/files/setup.py | 60 ++++++++++++++++++++++++++++++++++++++
devel/py-pdm-pep517/pkg-descr | 4 +++
5 files changed, 91 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 3b243a10f99a..70469a516457 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4843,6 +4843,7 @@
SUBDIR += py-paver
SUBDIR += py-pbr
SUBDIR += py-pdm
+ SUBDIR += py-pdm-pep517
SUBDIR += py-pebble
SUBDIR += py-pefile
SUBDIR += py-pendulum
diff --git a/devel/py-pdm-pep517/Makefile b/devel/py-pdm-pep517/Makefile
new file mode 100644
index 000000000000..4ecca72e4533
--- /dev/null
+++ b/devel/py-pdm-pep517/Makefile
@@ -0,0 +1,23 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+
+PORTNAME= pdm-pep517
+PORTVERSION= 0.8.4
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= PEP 517 backend for PDM that supports PEP 621 metadata
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+post-patch:
+ @${CP} ${FILESDIR}/setup.py ${WRKSRC}/
+
+.include <bsd.port.mk>
diff --git a/devel/py-pdm-pep517/distinfo b/devel/py-pdm-pep517/distinfo
new file mode 100644
index 000000000000..5fa5f483c591
--- /dev/null
+++ b/devel/py-pdm-pep517/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1632760424
+SHA256 (pdm-pep517-0.8.4.tar.gz) = 2331c038bc53e1033c7114b15581cde90c5a6d79af6c5665fa9d2eb8f7702756
+SIZE (pdm-pep517-0.8.4.tar.gz) = 183872
diff --git a/devel/py-pdm-pep517/files/setup.py b/devel/py-pdm-pep517/files/setup.py
new file mode 100644
index 000000000000..66ff89472270
--- /dev/null
+++ b/devel/py-pdm-pep517/files/setup.py
@@ -0,0 +1,60 @@
+
+# -*- coding: utf-8 -*-
+from setuptools import setup
+
+import codecs
+
+with codecs.open('README.md', encoding="utf-8") as fp:
+ long_description = fp.read()
+EXTRAS_REQUIRE = {
+ 'setuptools': [
+ 'setuptools>=42',
+ 'wheel',
+ 'editables==0.2',
+ ],
+}
+ENTRY_POINTS = {
+ 'distutils.commands': [
+ 'editable_wheel = pdm.pep517.setuptools.editable:editable_wheel',
+ ],
+}
+
+setup_kwargs = {
+ 'name': 'pdm-pep517',
+ 'version': '0.8.4',
+ 'description': 'A PEP 517 backend for PDM that supports PEP 621 metadata',
+ 'long_description': long_description,
+ 'license': 'MIT',
+ 'author': '',
+ 'author_email': 'Frost Ming <mianghong at gmail.com>',
+ 'maintainer': None,
+ 'maintainer_email': None,
+ 'url': 'https://pdm.fming.dev',
+ 'packages': [
+ 'pdm.pep517',
+ 'pdm.pep517._vendor',
+ 'pdm.pep517._vendor.cerberus',
+ 'pdm.pep517._vendor.packaging',
+ 'pdm.pep517._vendor.toml',
+ ],
+ 'package_data': {'': ['*']},
+ 'long_description_content_type': 'text/markdown',
+ 'keywords': ['packaging', 'PEP 517', 'build'],
+ 'classifiers': [
+ 'Development Status :: 3 - Alpha',
+ 'License :: OSI Approved :: MIT License',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
+ 'Topic :: Software Development :: Build Tools',
+ ],
+ 'extras_require': EXTRAS_REQUIRE,
+ 'python_requires': '>=3.6',
+ 'entry_points': ENTRY_POINTS,
+
+}
+
+
+setup(**setup_kwargs)
diff --git a/devel/py-pdm-pep517/pkg-descr b/devel/py-pdm-pep517/pkg-descr
new file mode 100644
index 000000000000..ff0389876c98
--- /dev/null
+++ b/devel/py-pdm-pep517/pkg-descr
@@ -0,0 +1,4 @@
+This is the backend for PDM projects, while you can also use it alone. It reads
+the metadata of PEP 621 format and coverts it to Core metadata.
+
+WWW: https://github.com/pdm-project/pdm-pep517
More information about the dev-commits-ports-all
mailing list