pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-psleak: add package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Sat Dec 27 16:02:00 2025 +0100
Changeset: e41b8e2b3e046327b7392c77672f62dff0e556cf
Modified Files:
Makefile
Added Files:
py-psleak/DESCR
py-psleak/Makefile
py-psleak/PLIST
py-psleak/TODO
py-psleak/distinfo
Log Message:
py-psleak: add package
self tests don't finish, reported upstream
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e41b8e2b3e046327b7392c77672f62dff0e556cf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
py-psleak/DESCR | 3 +++
py-psleak/Makefile | 18 ++++++++++++++++++
py-psleak/PLIST | 9 +++++++++
py-psleak/TODO | 21 +++++++++++++++++++++
py-psleak/distinfo | 5 +++++
6 files changed, 57 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 5c0e9c9f81..80a34c06e6 100644
--- a/Makefile
+++ b/Makefile
@@ -4496,6 +4496,7 @@ SUBDIR+= py-proxy_tools
SUBDIR+= py-psamm
SUBDIR+= py-pseudopy
SUBDIR+= py-pseudorandom
+SUBDIR+= py-psleak
SUBDIR+= py-psychopy
SUBDIR+= py-psygnal
SUBDIR+= py-ptex
diff --git a/py-psleak/DESCR b/py-psleak/DESCR
new file mode 100644
index 0000000000..5a957b2901
--- /dev/null
+++ b/py-psleak/DESCR
@@ -0,0 +1,3 @@
+A testing framework for detecting memory leaks and unclosed resources
+created by Python functions, particularly those implemented in C
+or other native extensions.
diff --git a/py-psleak/Makefile b/py-psleak/Makefile
new file mode 100644
index 0000000000..05a908ee47
--- /dev/null
+++ b/py-psleak/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME= psleak-0.1.2
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= sysutils python
+MASTER_SITES= ${MASTER_SITE_PYPI:=p/psleak/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/giampaolo/psleak
+COMMENT= Detect memory and resource leaks in Python C extensions
+LICENSE= modified-bsd
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+DEPENDS+= ${PYPKGPREFIX}-psutil-[0-9]*:../../sysutils/py-psutil
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-instafail-[0-9]*:../../devel/py-test-instafail
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-psleak/PLIST b/py-psleak/PLIST
new file mode 100644
index 0000000000..e8a11cd9c7
--- /dev/null
+++ b/py-psleak/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD$
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/psleak.py
+${PYSITELIB}/psleak.pyc
+${PYSITELIB}/psleak.pyo
diff --git a/py-psleak/TODO b/py-psleak/TODO
new file mode 100644
index 0000000000..5ffbd219ee
--- /dev/null
+++ b/py-psleak/TODO
@@ -0,0 +1,21 @@
+Self tests fail
+
+=================================================================================================== test session starts ====================================================================================================
+__________________________________________________________________________________________ ERROR collecting tests/test_c_leaks.py __________________________________________________________________________________________
+ImportError while importing test module '/scratch/sysutils/py-psleak/work/psleak-0.1.2/tests/test_c_leaks.py'.
+Hint: make sure your test modules/packages have valid Python names.
+Traceback:
+/usr/pkg/lib/python3.14/importlib/__init__.py:88: in import_module
+ return _bootstrap._gcd_import(name[level:], package, level)
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+tests/test_c_leaks.py:8: in <module>
+ import test_ext as cext
+E ModuleNotFoundError: No module named 'test_ext'
+collected 37 items / 1 error
+
+================================================================================================= short test summary info ==================================================================================================
+ERROR tests/test_c_leaks.py
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+===================================================================================================== 1 error in 0.09s =====================================================================================================
+
+https://github.com/giampaolo/psleak/issues/6
diff --git a/py-psleak/distinfo b/py-psleak/distinfo
new file mode 100644
index 0000000000..967c9986a6
--- /dev/null
+++ b/py-psleak/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (psleak-0.1.2.tar.gz) = 5ebf53f2aec2e685670ea4b1108dc1dd61147f4abb2b67dbe9180e379d7d7287
+SHA512 (psleak-0.1.2.tar.gz) = 3723f7f1ed9e63f9c5fa66403ba7bfa057787ace6fd7c04e7a0f069e65a9524c8bc694b72419ab39b68f8452424a9241d6ec58db529d170d3df16efbe095c38f
+Size (psleak-0.1.2.tar.gz) = 24552 bytes
Home |
Main Index |
Thread Index |
Old Index