pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Tue Nov 12 15:45:46 UTC 2024

Modified Files:
        pkgsrc/devel: Makefile
Added Files:
        pkgsrc/devel/py-cram: ALTERNATIVES DESCR Makefile PLIST distinfo

Log Message:
devel/py-cram: import cram-0.7

Description:

   Cram is a functional testing framework for command line
   applications.  Cram tests look like snippets of interactive shell
   sessions.  Cram runs each command and compares the command output in
   the test with the command's actual output.


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

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/Makefile
diff -u pkgsrc/devel/Makefile:1.4360 pkgsrc/devel/Makefile:1.4361
--- pkgsrc/devel/Makefile:1.4360        Mon Nov 11 09:00:59 2024
+++ pkgsrc/devel/Makefile       Tue Nov 12 15:45:45 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4360 2024/11/11 09:00:59 wiz Exp $
+# $NetBSD: Makefile,v 1.4361 2024/11/12 15:45:45 riastradh Exp $
 #
 
 COMMENT=       Development utilities
@@ -2537,6 +2537,7 @@ SUBDIR+=  py-coveralls
 SUBDIR+=       py-cparser
 SUBDIR+=       py-cpplint
 SUBDIR+=       py-cppy
+SUBDIR+=       py-cram
 SUBDIR+=       py-crayons
 SUBDIR+=       py-curtsies
 SUBDIR+=       py-cwcwidth

Added files:

Index: pkgsrc/devel/py-cram/ALTERNATIVES
diff -u /dev/null pkgsrc/devel/py-cram/ALTERNATIVES:1.1
--- /dev/null   Tue Nov 12 15:45:46 2024
+++ pkgsrc/devel/py-cram/ALTERNATIVES   Tue Nov 12 15:45:45 2024
@@ -0,0 +1 @@
+bin/cram @PREFIX@/bin/cram-@PYVERSSUFFIX@
Index: pkgsrc/devel/py-cram/DESCR
diff -u /dev/null pkgsrc/devel/py-cram/DESCR:1.1
--- /dev/null   Tue Nov 12 15:45:46 2024
+++ pkgsrc/devel/py-cram/DESCR  Tue Nov 12 15:45:45 2024
@@ -0,0 +1,4 @@
+Cram is a functional testing framework for command line applications.
+Cram tests look like snippets of interactive shell sessions.  Cram runs
+each command and compares the command output in the test with the
+command's actual output.
Index: pkgsrc/devel/py-cram/Makefile
diff -u /dev/null pkgsrc/devel/py-cram/Makefile:1.1
--- /dev/null   Tue Nov 12 15:45:46 2024
+++ pkgsrc/devel/py-cram/Makefile       Tue Nov 12 15:45:45 2024
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1 2024/11/12 15:45:45 riastradh Exp $
+
+DISTNAME=      cram-0.7
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cram/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://pypi.org/project/cram/
+COMMENT=       Simple testing framework for command line applications
+LICENSE=       gnu-gpl-v2
+
+post-install:
+       cd ${DESTDIR:Q}${PREFIX:Q}/bin && ${MV} cram cram-${PYVERSSUFFIX}
+
+TEST_DEPENDS+= bash>=0:../../shells/bash
+TEST_DEPENDS+= patch>=0:../../devel/patch      # expects GNU patch(1) output
+
+# /bin/bash is referenced via command line arguments and strings, not
+# in `#!' interpreter lines, so use SUBST instead of REPLACE_BASH.
+SUBST_CLASSES+=                bash
+SUBST_STAGE.bash=      pre-configure
+SUBST_MESSAGE.bash=    Fixing /bin/bash references
+SUBST_FILES.bash+=     tests/setup.sh
+SUBST_FILES.bash+=     tests/test.t
+SUBST_SED.bash+=       -e 's,/bin/bash,'${PREFIX:Q}'/bin/bash,g'
+
+do-test:
+       @${STEP_MSG} Running cram tests
+       ${RUN}cd ${WRKSRC:Q} && \
+               ${SETENV} ${TEST_ENV} \
+                       PYTHON=${PYTHONBIN:Q} \
+                       PYTHONPATH="$$(pwd)" \
+                       PATH=${PREFIX:Q}/gnu/bin:"$$PATH" \
+               ${PYTHONBIN:Q} scripts/cram tests
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-cram/PLIST
diff -u /dev/null pkgsrc/devel/py-cram/PLIST:1.1
--- /dev/null   Tue Nov 12 15:45:46 2024
+++ pkgsrc/devel/py-cram/PLIST  Tue Nov 12 15:45:45 2024
@@ -0,0 +1,37 @@
+@comment $NetBSD: PLIST,v 1.1 2024/11/12 15:45:45 riastradh Exp $
+bin/cram-${PYVERSSUFFIX}
+${PYSITELIB}/${WHEEL_INFODIR}/COPYING.txt
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/cram/__init__.py
+${PYSITELIB}/cram/__init__.pyc
+${PYSITELIB}/cram/__init__.pyo
+${PYSITELIB}/cram/__main__.py
+${PYSITELIB}/cram/__main__.pyc
+${PYSITELIB}/cram/__main__.pyo
+${PYSITELIB}/cram/_cli.py
+${PYSITELIB}/cram/_cli.pyc
+${PYSITELIB}/cram/_cli.pyo
+${PYSITELIB}/cram/_diff.py
+${PYSITELIB}/cram/_diff.pyc
+${PYSITELIB}/cram/_diff.pyo
+${PYSITELIB}/cram/_encoding.py
+${PYSITELIB}/cram/_encoding.pyc
+${PYSITELIB}/cram/_encoding.pyo
+${PYSITELIB}/cram/_main.py
+${PYSITELIB}/cram/_main.pyc
+${PYSITELIB}/cram/_main.pyo
+${PYSITELIB}/cram/_process.py
+${PYSITELIB}/cram/_process.pyc
+${PYSITELIB}/cram/_process.pyo
+${PYSITELIB}/cram/_run.py
+${PYSITELIB}/cram/_run.pyc
+${PYSITELIB}/cram/_run.pyo
+${PYSITELIB}/cram/_test.py
+${PYSITELIB}/cram/_test.pyc
+${PYSITELIB}/cram/_test.pyo
+${PYSITELIB}/cram/_xunit.py
+${PYSITELIB}/cram/_xunit.pyc
+${PYSITELIB}/cram/_xunit.pyo
Index: pkgsrc/devel/py-cram/distinfo
diff -u /dev/null pkgsrc/devel/py-cram/distinfo:1.1
--- /dev/null   Tue Nov 12 15:45:46 2024
+++ pkgsrc/devel/py-cram/distinfo       Tue Nov 12 15:45:45 2024
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2024/11/12 15:45:45 riastradh Exp $
+
+BLAKE2s (cram-0.7.tar.gz) = 54647802aa8e9b46abd4a2d3eacfb777680b637f68de25e638df6f7d43f5f0e0
+SHA512 (cram-0.7.tar.gz) = 9fa57e504abac8fd15bf5ff4a74405cb7acd10fd4c797adee87052a4f1c4e975bbc0f4219afd9485358b2c2939b48b3ffe538ae2abc6eea71e0ba8b458d50103
+Size (cram-0.7.tar.gz) = 33527 bytes



Home | Main Index | Thread Index | Old Index