py-icecream: added version 2.1.3

Do you ever use print() or log() to debug your code? Of course you do.
IceCream, or ic for short, makes print debugging a little sweeter.

ic() is like print(), but better:
1. It prints both expressions/variable names and their values.
2. It's 60% faster to type.
3. Data structures are pretty printed.
4. Output is syntax highlighted.
5. It optionally includes program context: filename, line number, and parent
   function.
This commit is contained in:
adam 2023-07-18 15:46:27 +00:00
parent 5724eb32bb
commit daff60835f
5 changed files with 62 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.593 2023/07/13 18:07:25 nia Exp $
# $NetBSD: Makefile,v 1.594 2023/07/18 15:46:27 adam Exp $
#
COMMENT= Miscellaneous utilities
@ -263,6 +263,7 @@ SUBDIR+= py-asciinema
SUBDIR+= py-autocommand
SUBDIR+= py-crashtest
SUBDIR+= py-ghp-import
SUBDIR+= py-icecream
SUBDIR+= py-immutables
SUBDIR+= py-installer
SUBDIR+= py-lazy_loader

10
misc/py-icecream/DESCR Normal file
View File

@ -0,0 +1,10 @@
Do you ever use print() or log() to debug your code? Of course you do.
IceCream, or ic for short, makes print debugging a little sweeter.
ic() is like print(), but better:
1. It prints both expressions/variable names and their values.
2. It's 60% faster to type.
3. Data structures are pretty printed.
4. Output is syntax highlighted.
5. It optionally includes program context: filename, line number, and parent
function.

24
misc/py-icecream/Makefile Normal file
View File

@ -0,0 +1,24 @@
# $NetBSD: Makefile,v 1.1 2023/07/18 15:46:27 adam Exp $
DISTNAME= icecream-2.1.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= misc python
MASTER_SITES= ${MASTER_SITE_PYPI:=i/icecream/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/gruns/icecream
COMMENT= Never use print() to debug again
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-asttokens>=2.0.1:../../lang/py-asttokens
DEPENDS+= ${PYPKGPREFIX}-colorama>=0.3.9:../../comms/py-colorama
DEPENDS+= ${PYPKGPREFIX}-executing>=0.3.1:../../lang/py-executing
DEPENDS+= ${PYPKGPREFIX}-pygments>=2.2.0:../../textproc/py-pygments
#TEST_DEPENDS+= ${PYPKGPREFIX}-test>=6.2.4:../../devel/py-test
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"

21
misc/py-icecream/PLIST Normal file
View File

@ -0,0 +1,21 @@
@comment $NetBSD: PLIST,v 1.1 2023/07/18 15:46:27 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/icecream/__init__.py
${PYSITELIB}/icecream/__init__.pyc
${PYSITELIB}/icecream/__init__.pyo
${PYSITELIB}/icecream/__version__.py
${PYSITELIB}/icecream/__version__.pyc
${PYSITELIB}/icecream/__version__.pyo
${PYSITELIB}/icecream/builtins.py
${PYSITELIB}/icecream/builtins.pyc
${PYSITELIB}/icecream/builtins.pyo
${PYSITELIB}/icecream/coloring.py
${PYSITELIB}/icecream/coloring.pyc
${PYSITELIB}/icecream/coloring.pyo
${PYSITELIB}/icecream/icecream.py
${PYSITELIB}/icecream/icecream.pyc
${PYSITELIB}/icecream/icecream.pyo

View File

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2023/07/18 15:46:27 adam Exp $
BLAKE2s (icecream-2.1.3.tar.gz) = 655b73dd8d0279406a2538c90c89275c1f7067cb07fb502fff4933fd8512b68f
SHA512 (icecream-2.1.3.tar.gz) = cbed12fd9b49511f10fd36813c386bb468a6a2c81610414e4753a35733209c93684fcc10889e8917a0584c72ef624d2298664b44a8dd4e733edf5464321c2b95
Size (icecream-2.1.3.tar.gz) = 14722 bytes