diff --git a/devel/py-colorama/Makefile b/devel/py-colorama/Makefile index 58dcb11d3707..d8aff6a2fd29 100644 --- a/devel/py-colorama/Makefile +++ b/devel/py-colorama/Makefile @@ -1,20 +1,20 @@ # Created by: Alexey V. Degtyarev PORTNAME= colorama -PORTVERSION= 0.4.4 +PORTVERSION= 0.4.5 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ygy@FreeBSD.org COMMENT= Cross-platform API to print colored terminal text from Python applications LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt -USES= python:3.6+ -USE_PYTHON= distutils autoplist +USES= python:3.7+ +USE_PYTHON= autoplist distutils NO_ARCH= yes .include diff --git a/devel/py-colorama/distinfo b/devel/py-colorama/distinfo index 73cfe9a3745f..67a1b2616d95 100644 --- a/devel/py-colorama/distinfo +++ b/devel/py-colorama/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1605702758 -SHA256 (colorama-0.4.4.tar.gz) = 5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b -SIZE (colorama-0.4.4.tar.gz) = 27813 +TIMESTAMP = 1657341034 +SHA256 (colorama-0.4.5.tar.gz) = e6c6b4334fc50988a639d9b98aa429a0b57da6e17b9a44f0451f930b6967b7a4 +SIZE (colorama-0.4.5.tar.gz) = 27469 diff --git a/devel/py-colorama/files/patch-setup.py b/devel/py-colorama/files/patch-setup.py deleted file mode 100644 index fdc9e02d0db4..000000000000 --- a/devel/py-colorama/files/patch-setup.py +++ /dev/null @@ -1,26 +0,0 @@ -Default to UTF-8 encoding to fix build with Python 3.6 - -Obtained from: https://github.com/tartley/colorama/pull/294/files - ---- setup.py.orig 2020-10-12 21:22:32 UTC -+++ setup.py -@@ -3,6 +3,7 @@ - - from __future__ import with_statement - -+from io import open - import os - import re - try: -@@ -14,8 +15,9 @@ except ImportError: - NAME = 'colorama' - - --def read_file(path): -- with open(os.path.join(os.path.dirname(__file__), path)) as fp: -+def read_file(path, encoding='utf8'): -+ with open(os.path.join(os.path.dirname(__file__), path), -+ encoding=encoding) as fp: - return fp.read() - - def _get_version_match(content):