pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-asyncore: Add version 1.0.4 of "pyasyncore", for use with 3.12 and later.
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%NetBSD.org@localhost>
Pushed By: he
Date: Mon Nov 25 09:52:41 2024 +0000
Changeset: 29774fadc426859d965e9064417853b1bceb5934
Added Files:
py-asyncore/DESCR
py-asyncore/Makefile
py-asyncore/PLIST
py-asyncore/distinfo
Log Message:
py-asyncore: Add version 1.0.4 of "pyasyncore", for use with 3.12 and later.
This package contains the asyncore module as found in Python versions
prior to 3.12. It is provided so that existing code relying on
import asyncore is able to continue being used without significant
refactoring.
The module's source code is taken directly from the Python standard
library. The specific version of asyncore that is provided is the
last update before the addition of deprecation/removal warnings at
import time, and is essentially equivalent to the version bundled
with Python 3.9 (which was the last time the module was meaningfully
updated).
Please note that new projects should prefer asyncio.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=29774fadc426859d965e9064417853b1bceb5934
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-asyncore/DESCR | 13 +++++++++++++
py-asyncore/Makefile | 26 ++++++++++++++++++++++++++
py-asyncore/PLIST | 9 +++++++++
py-asyncore/distinfo | 5 +++++
4 files changed, 53 insertions(+)
diffs:
diff --git a/py-asyncore/DESCR b/py-asyncore/DESCR
new file mode 100644
index 0000000000..a09a112a99
--- /dev/null
+++ b/py-asyncore/DESCR
@@ -0,0 +1,13 @@
+This package contains the asyncore module as found in Python versions
+prior to 3.12. It is provided so that existing code relying on
+import asyncore is able to continue being used without significant
+refactoring.
+
+The module's source code is taken directly from the Python standard
+library. The specific version of asyncore that is provided is the
+last update before the addition of deprecation/removal warnings at
+import time, and is essentially equivalent to the version bundled
+with Python 3.9 (which was the last time the module was meaningfully
+updated).
+
+Please note that new projects should prefer asyncio.
diff --git a/py-asyncore/Makefile b/py-asyncore/Makefile
new file mode 100644
index 0000000000..2c7b7985fa
--- /dev/null
+++ b/py-asyncore/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD$
+
+DISTNAME= asyncore-v1.0.4
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/-v/-/1}
+CATEGORIES= python devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=simonrob/}
+DIST_SUBDIR= ${GITHUB_PROJECT}
+GITHUB_PROJECT= pyasyncore
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/simonrob/pyasyncore/
+COMMENT= The asyncore module found in Python prior to 3.12
+LICENSE= python-software-foundation
+
+# Only for 3.12 and onwards, for backward compatibility with the latter of:
+PYTHON_VERSIONS_INCOMPATIBLE= 27 38 39 310 311
+
+USE_LANGUAGES= c
+
+# Probably only works after "make install":
+do-test:
+ ${PYTHONBIN} ${WRKSRC}/tests/test_asyncore.py
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-asyncore/PLIST b/py-asyncore/PLIST
new file mode 100644
index 0000000000..b14ae9c67f
--- /dev/null
+++ b/py-asyncore/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD$
+${PYSITELIB}/asyncore/__init__.py
+${PYSITELIB}/asyncore/__init__.pyc
+${PYSITELIB}/asyncore/__init__.pyo
+${PYSITELIB}/pyasyncore-${PKGVERSION}.dist-info/LICENSE
+${PYSITELIB}/pyasyncore-${PKGVERSION}.dist-info/METADATA
+${PYSITELIB}/pyasyncore-${PKGVERSION}.dist-info/RECORD
+${PYSITELIB}/pyasyncore-${PKGVERSION}.dist-info/WHEEL
+${PYSITELIB}/pyasyncore-${PKGVERSION}.dist-info/top_level.txt
diff --git a/py-asyncore/distinfo b/py-asyncore/distinfo
new file mode 100644
index 0000000000..ef878b24ca
--- /dev/null
+++ b/py-asyncore/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (pyasyncore/asyncore-v1.0.4.tar.gz) = 835fc3e1f979d488a7f31e5f6e7e5d22717bfb4a18c3a3fc991fcfbe86dbb2eb
+SHA512 (pyasyncore/asyncore-v1.0.4.tar.gz) = 726b9d757f242a0fae985d35c6abf7a042ea481bb1d4d1f9c7d842dfdb5f315b71f4dd907b69b8a14c040f8e6e3538da41508f7fc0cce1d06b3a159b6fc00c85
+Size (pyasyncore/asyncore-v1.0.4.tar.gz) = 16000 bytes
Home |
Main Index |
Thread Index |
Old Index