pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-aspectlib
Module Name: pkgsrc
Committed By: wiz
Date: Mon Nov 9 09:29:29 UTC 2026
Added Files:
pkgsrc/devel/py-aspectlib: DESCR Makefile PLIST distinfo
pkgsrc/devel/py-aspectlib/patches: patch-pytest.ini
patch-tests_conftest.py patch-tests_test__integrations.py
Log Message:
devel/py-aspectlib: import py-aspectlib-2.0.0
aspectlib is an aspect-oriented programming, monkey-patch and
decorators library. It is useful when changing behavior in existing
code is desired. It includes tools for debugging and testing: simple
mock/record and a complete capture/replay framework.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-aspectlib/DESCR \
pkgsrc/devel/py-aspectlib/Makefile pkgsrc/devel/py-aspectlib/PLIST \
pkgsrc/devel/py-aspectlib/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-aspectlib/patches/patch-pytest.ini \
pkgsrc/devel/py-aspectlib/patches/patch-tests_conftest.py \
pkgsrc/devel/py-aspectlib/patches/patch-tests_test__integrations.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/py-aspectlib/DESCR
diff -u /dev/null pkgsrc/devel/py-aspectlib/DESCR:1.1
--- /dev/null Mon Nov 9 09:29:29 2026
+++ pkgsrc/devel/py-aspectlib/DESCR Mon Nov 9 09:29:28 2026
@@ -0,0 +1,4 @@
+aspectlib is an aspect-oriented programming, monkey-patch and
+decorators library. It is useful when changing behavior in existing
+code is desired. It includes tools for debugging and testing: simple
+mock/record and a complete capture/replay framework.
Index: pkgsrc/devel/py-aspectlib/Makefile
diff -u /dev/null pkgsrc/devel/py-aspectlib/Makefile:1.1
--- /dev/null Mon Nov 9 09:29:29 2026
+++ pkgsrc/devel/py-aspectlib/Makefile Mon Nov 9 09:29:28 2026
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2026/11/09 09:29:28 wiz Exp $
+
+DISTNAME= aspectlib-2.0.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_PYPI:=a/aspectlib/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/ionelmc/python-aspectlib
+COMMENT= Aspect-oriented programming, monkey-patch and decorators library
+LICENSE= 2-clause-bsd
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=0:../../devel/py-setuptools
+TEST_DEPENDS+= ${PYPKGPREFIX}-process-tests>=0:../../devel/py-process-tests
+TEST_DEPENDS+= ${PYPKGPREFIX}-tornado>=0:../../www/py-tornado
+
+USE_LANGUAGES= # none
+
+.if make(test)
+ALLOW_NETWORK_ACCESS= yes
+.endif
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-aspectlib/PLIST
diff -u /dev/null pkgsrc/devel/py-aspectlib/PLIST:1.1
--- /dev/null Mon Nov 9 09:29:29 2026
+++ pkgsrc/devel/py-aspectlib/PLIST Mon Nov 9 09:29:28 2026
@@ -0,0 +1,26 @@
+@comment $NetBSD: PLIST,v 1.1 2026/11/09 09:29:28 wiz Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/AUTHORS.rst
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/aspectlib/__init__.py
+${PYSITELIB}/aspectlib/__init__.pyc
+${PYSITELIB}/aspectlib/__init__.pyo
+${PYSITELIB}/aspectlib/contrib.py
+${PYSITELIB}/aspectlib/contrib.pyc
+${PYSITELIB}/aspectlib/contrib.pyo
+${PYSITELIB}/aspectlib/debug.py
+${PYSITELIB}/aspectlib/debug.pyc
+${PYSITELIB}/aspectlib/debug.pyo
+${PYSITELIB}/aspectlib/pytestsupport.py
+${PYSITELIB}/aspectlib/pytestsupport.pyc
+${PYSITELIB}/aspectlib/pytestsupport.pyo
+${PYSITELIB}/aspectlib/test.py
+${PYSITELIB}/aspectlib/test.pyc
+${PYSITELIB}/aspectlib/test.pyo
+${PYSITELIB}/aspectlib/utils.py
+${PYSITELIB}/aspectlib/utils.pyc
+${PYSITELIB}/aspectlib/utils.pyo
Index: pkgsrc/devel/py-aspectlib/distinfo
diff -u /dev/null pkgsrc/devel/py-aspectlib/distinfo:1.1
--- /dev/null Mon Nov 9 09:29:29 2026
+++ pkgsrc/devel/py-aspectlib/distinfo Mon Nov 9 09:29:29 2026
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2026/11/09 09:29:29 wiz Exp $
+
+BLAKE2s (aspectlib-2.0.0.tar.gz) = e943a173903a17cdfb9be4781b9995ebc32a60f136f2fda3568c5392eefb0282
+SHA512 (aspectlib-2.0.0.tar.gz) = 3611d3f887febae8a60df6ad5567437adaa2105e6622a7d9b543c02f593c9dee43002cd91b89f5d005fc70a8b197b5c568eefa3a0fdb6fc05665f4a1c5107316
+Size (aspectlib-2.0.0.tar.gz) = 156591 bytes
+SHA1 (patch-pytest.ini) = bea7a370284f3ba2ac82310d32534ef3c87f7838
+SHA1 (patch-tests_conftest.py) = 7abdf8464c669719b4bd1534876c2e33910cb729
+SHA1 (patch-tests_test__integrations.py) = 1171ecf6de2b1929ae2f3a28096fca015066ec23
Index: pkgsrc/devel/py-aspectlib/patches/patch-pytest.ini
diff -u /dev/null pkgsrc/devel/py-aspectlib/patches/patch-pytest.ini:1.1
--- /dev/null Mon Nov 9 09:29:29 2026
+++ pkgsrc/devel/py-aspectlib/patches/patch-pytest.ini Mon Nov 9 09:29:29 2026
@@ -0,0 +1,14 @@
+$NetBSD: patch-pytest.ini,v 1.1 2026/11/09 09:29:29 wiz Exp $
+
+https://github.com/ionelmc/python-aspectlib/commit/2516ffe0110d93ac228f2fe15be74f905984f071
+
+--- pytest.ini.orig 2026-11-09 08:33:28.354886944 +0000
++++ pytest.ini
+@@ -32,6 +32,7 @@ filterwarnings =
+ filterwarnings =
+ error
+ ignore:Setting test_aspectlib.MissingGlobal to <class 'test_aspectlib.MissingGlobal'>. There was no previous definition, probably patching the wrong module.
++ ignore:the \(type, exc, tb\) signature of throw\(\) is deprecated, use the single-arg signature instead.:DeprecationWarning
+ # You can add exclusions, some examples:
+ # ignore:'aspectlib' defines default_app_config:PendingDeprecationWarning::
+ # ignore:The {{% if:::
Index: pkgsrc/devel/py-aspectlib/patches/patch-tests_conftest.py
diff -u /dev/null pkgsrc/devel/py-aspectlib/patches/patch-tests_conftest.py:1.1
--- /dev/null Mon Nov 9 09:29:29 2026
+++ pkgsrc/devel/py-aspectlib/patches/patch-tests_conftest.py Mon Nov 9 09:29:29 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-tests_conftest.py,v 1.1 2026/11/09 09:29:29 wiz Exp $
+
+https://github.com/ionelmc/python-aspectlib/blob/master/tests/conftest.py
+
+--- tests/conftest.py.orig 2026-11-09 08:29:56.903996473 +0000
++++ tests/conftest.py
+@@ -1,5 +1,6 @@
+-def pytest_ignore_collect(path, config):
+- basename = path.basename
++from pathlib import Path
+
+- if 'pytestsupport' in basename:
++
++def pytest_ignore_collect(collection_path: Path, config):
++ if 'pytestsupport' in collection_path.__fspath__():
+ return True
Index: pkgsrc/devel/py-aspectlib/patches/patch-tests_test__integrations.py
diff -u /dev/null pkgsrc/devel/py-aspectlib/patches/patch-tests_test__integrations.py:1.1
--- /dev/null Mon Nov 9 09:29:29 2026
+++ pkgsrc/devel/py-aspectlib/patches/patch-tests_test__integrations.py Mon Nov 9 09:29:29 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-tests_test__integrations.py,v 1.1 2026/11/09 09:29:29 wiz Exp $
+
+Add NetBSD errno for ECONNREFUSED.
+https://github.com/ionelmc/python-aspectlib/issues/31
+
+--- tests/test_integrations.py.orig 2022-10-20 15:54:11.000000000 +0000
++++ tests/test_integrations.py
+@@ -23,7 +23,7 @@ LOG_TEST_SOCKET = r"""^\{_?socket(object)?\}.connect\(
+ from io import StringIO
+
+ LOG_TEST_SOCKET = r"""^\{_?socket(object)?\}.connect\(\('127.0.0.1', 1\)\) +<<< .*tests[\/]test_integrations.py:\d+:test_socket.*
+-\{_?socket(object)?\}.connect \~ raised .*(ConnectionRefusedError|error)\((10061|111), .*refused.*\)"""
++\{_?socket(object)?\}.connect \~ raised .*(ConnectionRefusedError|error)\((10061|111|61), .*refused.*\)"""
+
+
+ def test_mock_builtin():
Home |
Main Index |
Thread Index |
Old Index