1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

devel/py-pprintpp: Add py-pprintpp 0.4.0

pprint++ is a drop-in replacement for pprint that's actually pretty.
This commit is contained in:
Po-Chuan Hsieh 2024-09-30 20:43:25 +08:00
parent c3686ab14c
commit 029625db06
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
5 changed files with 38 additions and 0 deletions

View File

@ -5420,6 +5420,7 @@
SUBDIR += py-pox
SUBDIR += py-poyo
SUBDIR += py-ppft
SUBDIR += py-pprintpp
SUBDIR += py-prance
SUBDIR += py-pre-commit
SUBDIR += py-pre-commit-hooks

View File

@ -0,0 +1,22 @@
PORTNAME= pprintpp
PORTVERSION= 0.4.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Drop-in replacement for pprint that's actually pretty
WWW= https://github.com/wolever/pprintpp
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1727314490
SHA256 (pprintpp-0.4.0.tar.gz) = ea826108e2c7f49dc6d66c752973c3fc9749142a798d6b254e1e301cfdbc6403
SIZE (pprintpp-0.4.0.tar.gz) = 17995

View File

@ -0,0 +1,11 @@
--- setup.py.orig 2018-07-01 01:42:25 UTC
+++ setup.py
@@ -8,7 +8,7 @@ try:
os.chdir(os.path.dirname(sys.argv[0]) or ".")
try:
- long_description = open("README.rst", "U").read()
+ long_description = open("README.rst", "r", encoding="UTF-8").read()
except IOError:
long_description = "See https://github.com/wolever/pprintpp"

View File

@ -0,0 +1 @@
pprint++ is a drop-in replacement for pprint that's actually pretty.