aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-04-05 23:56:48 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-04-05 23:56:48 +0000
commit431bfb2326da5683855083337ef5cfa04ca5f599 (patch)
treebd1194d64370e7915dfab18e4ffd14cba2f6bc7e
parent20f42b8a49ef5e764371e38e8d2ceedd3e171a10 (diff)
devel/py-stdlibs: Add py-stdlibs 2024.1.28
stdlibs provides a static listing of all known modules in the Python standard library, with separate lists available for each major release dating back to Python 2.3. It also includes combined lists of all module names that were ever available in any 3.x release, any 2.x release, or both. Note: On Python versions 3.10 or newer, a list of module names for the active runtime is available sys.stdlib_module_names. This package exists to provide an historical record for use with static analysis and other tooling. This package only includes listings for CPython releases. If other runtimes would be useful, open an issue and start a discussion on how best that can be accomodated.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-stdlibs/Makefile22
-rw-r--r--devel/py-stdlibs/distinfo3
-rw-r--r--devel/py-stdlibs/pkg-descr12
4 files changed, 38 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index c0f887ef5c5e..d234ef48768d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5702,6 +5702,7 @@
SUBDIR += py-statgrab
SUBDIR += py-statsd
SUBDIR += py-stdlib-list
+ SUBDIR += py-stdlibs
SUBDIR += py-stdnum
SUBDIR += py-stevedore
SUBDIR += py-stone
diff --git a/devel/py-stdlibs/Makefile b/devel/py-stdlibs/Makefile
new file mode 100644
index 000000000000..8f7024d27b68
--- /dev/null
+++ b/devel/py-stdlibs/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= stdlibs
+PORTVERSION= 2024.1.28
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= List of packages in the stdlib
+WWW= https://stdlibs.omnilib.dev/en/stable/ \
+ https://github.com/omnilib/stdlibs
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.8<4:devel/py-flit-core@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-stdlibs/distinfo b/devel/py-stdlibs/distinfo
new file mode 100644
index 000000000000..d4c705db45f0
--- /dev/null
+++ b/devel/py-stdlibs/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1712330557
+SHA256 (stdlibs-2024.1.28.tar.gz) = ea158ac5b23c1a304153678908044d89a94c6354fa724f4452d754f9d6c16941
+SIZE (stdlibs-2024.1.28.tar.gz) = 25491
diff --git a/devel/py-stdlibs/pkg-descr b/devel/py-stdlibs/pkg-descr
new file mode 100644
index 000000000000..b1c3a4d8fe2e
--- /dev/null
+++ b/devel/py-stdlibs/pkg-descr
@@ -0,0 +1,12 @@
+stdlibs provides a static listing of all known modules in the Python standard
+library, with separate lists available for each major release dating back to
+Python 2.3. It also includes combined lists of all module names that were ever
+available in any 3.x release, any 2.x release, or both.
+
+Note: On Python versions 3.10 or newer, a list of module names for the active
+runtime is available sys.stdlib_module_names. This package exists to provide an
+historical record for use with static analysis and other tooling.
+
+This package only includes listings for CPython releases. If other runtimes
+would be useful, open an issue and start a discussion on how best that can be
+accomodated.