pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-test-examples



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Jul 14 11:58:24 UTC 2024

Added Files:
        pkgsrc/devel/py-test-examples: DESCR Makefile PLIST distinfo

Log Message:
devel/py-test-examples: import py-test-examples-0.0.12

Pytest plugin for testing Python code examples in docstrings and markdown files.

pytest-examples can:
* lint code examples using ruff and black
* run code examples
* run code examples and check print statements are inlined correctly
  in the code

It can also update code examples in place to format them and insert
or update print statements.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-test-examples/DESCR \
    pkgsrc/devel/py-test-examples/Makefile \
    pkgsrc/devel/py-test-examples/PLIST \
    pkgsrc/devel/py-test-examples/distinfo

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-test-examples/DESCR
diff -u /dev/null pkgsrc/devel/py-test-examples/DESCR:1.1
--- /dev/null   Sun Jul 14 11:58:24 2024
+++ pkgsrc/devel/py-test-examples/DESCR Sun Jul 14 11:58:24 2024
@@ -0,0 +1,10 @@
+Pytest plugin for testing Python code examples in docstrings and markdown files.
+
+pytest-examples can:
+* lint code examples using ruff and black
+* run code examples
+* run code examples and check print statements are inlined correctly
+  in the code
+
+It can also update code examples in place to format them and insert
+or update print statements.
Index: pkgsrc/devel/py-test-examples/Makefile
diff -u /dev/null pkgsrc/devel/py-test-examples/Makefile:1.1
--- /dev/null   Sun Jul 14 11:58:24 2024
+++ pkgsrc/devel/py-test-examples/Makefile      Sun Jul 14 11:58:24 2024
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2024/07/14 11:58:24 wiz Exp $
+
+DISTNAME=      pytest_examples-0.0.12
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//:S/_/-/}
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest_examples/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://pypi.org/project/pytest_examples/
+COMMENT=       Pytest plugin for testing examples in docstrings and markdown files
+LICENSE=       mit
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
+DEPENDS+=      ${PYPKGPREFIX}-black>=23:../../textproc/py-black
+DEPENDS+=      ${PYPKGPREFIX}-ruff>=0.5:../../devel/py-ruff
+DEPENDS+=      ${PYPKGPREFIX}-test>=7:../../devel/py-test
+
+USE_LANGUAGES= # none
+
+# as of 0.0.12
+# 12 failed, 52 passed
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-test-examples/PLIST
diff -u /dev/null pkgsrc/devel/py-test-examples/PLIST:1.1
--- /dev/null   Sun Jul 14 11:58:24 2024
+++ pkgsrc/devel/py-test-examples/PLIST Sun Jul 14 11:58:24 2024
@@ -0,0 +1,31 @@
+@comment $NetBSD: PLIST,v 1.1 2024/07/14 11:58:24 wiz Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
+${PYSITELIB}/pytest_examples/__init__.py
+${PYSITELIB}/pytest_examples/__init__.pyc
+${PYSITELIB}/pytest_examples/__init__.pyo
+${PYSITELIB}/pytest_examples/config.py
+${PYSITELIB}/pytest_examples/config.pyc
+${PYSITELIB}/pytest_examples/config.pyo
+${PYSITELIB}/pytest_examples/eval_example.py
+${PYSITELIB}/pytest_examples/eval_example.pyc
+${PYSITELIB}/pytest_examples/eval_example.pyo
+${PYSITELIB}/pytest_examples/find_examples.py
+${PYSITELIB}/pytest_examples/find_examples.pyc
+${PYSITELIB}/pytest_examples/find_examples.pyo
+${PYSITELIB}/pytest_examples/lint.py
+${PYSITELIB}/pytest_examples/lint.pyc
+${PYSITELIB}/pytest_examples/lint.pyo
+${PYSITELIB}/pytest_examples/modify_files.py
+${PYSITELIB}/pytest_examples/modify_files.pyc
+${PYSITELIB}/pytest_examples/modify_files.pyo
+${PYSITELIB}/pytest_examples/py.typed
+${PYSITELIB}/pytest_examples/run_code.py
+${PYSITELIB}/pytest_examples/run_code.pyc
+${PYSITELIB}/pytest_examples/run_code.pyo
+${PYSITELIB}/pytest_examples/traceback.py
+${PYSITELIB}/pytest_examples/traceback.pyc
+${PYSITELIB}/pytest_examples/traceback.pyo
Index: pkgsrc/devel/py-test-examples/distinfo
diff -u /dev/null pkgsrc/devel/py-test-examples/distinfo:1.1
--- /dev/null   Sun Jul 14 11:58:24 2024
+++ pkgsrc/devel/py-test-examples/distinfo      Sun Jul 14 11:58:24 2024
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2024/07/14 11:58:24 wiz Exp $
+
+BLAKE2s (pytest_examples-0.0.12.tar.gz) = 55282aa59dc90e849a80b25a74c6446f5eca6539a18530587a55cccc18c352a0
+SHA512 (pytest_examples-0.0.12.tar.gz) = 57ac89fb76efcd86a9891635514e467efbf4a696023db2f169e9ca13274480368ce9f99c74ec0bfcbe992e3b18d988ccebd17d6d6226f4e162ef23518a61eb3e
+Size (pytest_examples-0.0.12.tar.gz) = 20429 bytes



Home | Main Index | Thread Index | Old Index