git: 1e4d4f1d4f48 - main - devel/py-pep621: Add py-pep621 0.4.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Jan 2022 19:26:09 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1e4d4f1d4f4844ec26a108401f927ff253ec3317
commit 1e4d4f1d4f4844ec26a108401f927ff253ec3317
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-23 18:05:25 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-23 18:05:25 +0000
devel/py-pep621: Add py-pep621 0.4.0
pep621 provides dataclass for PEP 621 metadata with support for core metadata
generation.
This project does not implement the parsing of pyproject.toml containing PEP 621
metadata.
Instead, given a Python data structure representing PEP 621 metadata (already
parsed), it will validate this input and generate a PEP 643-compliant metadata
file (e.g. PKG-INFO).
WWW: https://github.com/FFY00/python-pep621
---
devel/Makefile | 1 +
devel/py-pep621/Makefile | 25 +++++++++++++++++++++++++
devel/py-pep621/distinfo | 3 +++
devel/py-pep621/files/setup.py | 3 +++
devel/py-pep621/pkg-descr | 11 +++++++++++
5 files changed, 43 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 444184f3c9f0..17bb7e754244 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4910,6 +4910,7 @@
SUBDIR += py-pendulum
SUBDIR += py-pep517
SUBDIR += py-pep562
+ SUBDIR += py-pep621
SUBDIR += py-pep8-naming
SUBDIR += py-period
SUBDIR += py-persistent
diff --git a/devel/py-pep621/Makefile b/devel/py-pep621/Makefile
new file mode 100644
index 000000000000..eb0b9f058a4f
--- /dev/null
+++ b/devel/py-pep621/Makefile
@@ -0,0 +1,25 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME= pep621
+PORTVERSION= 0.4.0
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= PEP 621 metadata parsing
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=19.0:devel/py-packaging@${PY_FLAVOR}
+
+USES= python:3.7+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+post-patch:
+ @${CP} ${FILESDIR}/setup.py ${WRKSRC}/
+
+.include <bsd.port.mk>
diff --git a/devel/py-pep621/distinfo b/devel/py-pep621/distinfo
new file mode 100644
index 000000000000..cce4e26c18aa
--- /dev/null
+++ b/devel/py-pep621/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1642102111
+SHA256 (pep621-0.4.0.tar.gz) = 024271b42c3ce72fd4c57792da428c4a6c29fadee58c3580096e2a1a86131434
+SIZE (pep621-0.4.0.tar.gz) = 6400
diff --git a/devel/py-pep621/files/setup.py b/devel/py-pep621/files/setup.py
new file mode 100644
index 000000000000..606849326a40
--- /dev/null
+++ b/devel/py-pep621/files/setup.py
@@ -0,0 +1,3 @@
+from setuptools import setup
+
+setup()
diff --git a/devel/py-pep621/pkg-descr b/devel/py-pep621/pkg-descr
new file mode 100644
index 000000000000..18a0d857630d
--- /dev/null
+++ b/devel/py-pep621/pkg-descr
@@ -0,0 +1,11 @@
+pep621 provides dataclass for PEP 621 metadata with support for core metadata
+generation.
+
+This project does not implement the parsing of pyproject.toml containing PEP 621
+metadata.
+
+Instead, given a Python data structure representing PEP 621 metadata (already
+parsed), it will validate this input and generate a PEP 643-compliant metadata
+file (e.g. PKG-INFO).
+
+WWW: https://github.com/FFY00/python-pep621