Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2022 10:30:44 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a7a2fec8aaf4 - main - devel/py-termcolor-whl: Add py-termcolor-whl 1.1.2
Message-ID:  <202208271030.27RAUif2047161@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a7a2fec8aaf411675833f4aa7dc9f6d0ace67b4d

commit a7a2fec8aaf411675833f4aa7dc9f6d0ace67b4d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-27 10:10:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-27 10:10:27 +0000

    devel/py-termcolor-whl: Add py-termcolor-whl 1.1.2
    
    a: ASCII text
---
 devel/Makefile                        |  1 +
 devel/py-termcolor-whl/Makefile       | 25 +++++++++++++++++++++++++
 devel/py-termcolor-whl/distinfo       |  3 +++
 devel/py-termcolor-whl/files/setup.py | 25 +++++++++++++++++++++++++
 devel/py-termcolor-whl/pkg-descr      |  1 +
 5 files changed, 55 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 974224f919ca..9cf3a34c4a30 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5345,6 +5345,7 @@
     SUBDIR += py-tempora
     SUBDIR += py-tenacity
     SUBDIR += py-termcolor
+    SUBDIR += py-termcolor-whl
     SUBDIR += py-termstyle
     SUBDIR += py-testfixtures
     SUBDIR += py-testinfra
diff --git a/devel/py-termcolor-whl/Makefile b/devel/py-termcolor-whl/Makefile
new file mode 100644
index 000000000000..fd7646db526c
--- /dev/null
+++ b/devel/py-termcolor-whl/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	termcolor-whl
+PORTVERSION=	1.1.2
+CATEGORIES=	devel python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	ANSI Color formatting for output in terminal, successor to termcolor
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	matthewdeanmartin
+GH_PROJECT=	termcolor
+GH_TAGNAME=	4ecd396
+
+post-patch:
+	@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
+
+.include <bsd.port.mk>
diff --git a/devel/py-termcolor-whl/distinfo b/devel/py-termcolor-whl/distinfo
new file mode 100644
index 000000000000..e16c722466d6
--- /dev/null
+++ b/devel/py-termcolor-whl/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660576688
+SHA256 (matthewdeanmartin-termcolor-1.1.2-4ecd396_GH0.tar.gz) = ca6d3a5c5d1e095dbb943a1387d4d075de53fa74426866227e0502edf2268dea
+SIZE (matthewdeanmartin-termcolor-1.1.2-4ecd396_GH0.tar.gz) = 5654
diff --git a/devel/py-termcolor-whl/files/setup.py b/devel/py-termcolor-whl/files/setup.py
new file mode 100644
index 000000000000..2f844ada3540
--- /dev/null
+++ b/devel/py-termcolor-whl/files/setup.py
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+from setuptools import setup
+
+packages = \
+['termcolor']
+
+package_data = \
+{'': ['*']}
+
+setup_kwargs = {
+    'name': 'termcolor-whl',
+    'version': '1.1.2',
+    'description': 'ANSI Color formatting for output in terminal, successor to termcolor (has wheels!)',
+    'long_description': '# termcolor\nColorize your console output.\n\nThis is the successor to `termcolor`\n \n### Example\n\n     import sys\n     from termcolor import colored, cprint\n\n     text = colored(\'Hello, World!\', \'red\', attrs=[\'reverse\', \'blink\'])\n     print(text)\n     cprint(\'Hello, World!\', \'green\', \'on_red\')\n\n     print_red_on_cyan = lambda x: cprint(x, \'red\', \'on_cyan\')\n     print_red_on_cyan(\'Hello, World!\')\n     print_red_on_cyan(\'Hello, Universe!\')\n\n     for i in range(10):\n         cprint(i, \'magenta\', end=\' \')\n\n     cprint("Attention!", \'red\', attrs=[\'bold\'], file=sys.stderr)\n\n### Disabling\nAny value in the environment variable `ANSI_COLORS_DISABLED` will disable colors.\n\n### Text Properties\nText colors:\n\n> -   grey\n> -   red\n> -   green\n> -   yellow\n> -   blue\n> -   magenta\n> -   cyan\n> -   white\n\nText highlights:\n> -   on\\_grey\n> -   on\\_red\n> -   on\\_green\n> -   on\\_yellow\n> -   on\\_blue\n>
  -   on\\_magenta\n> -   on\\_cyan\n> -   on\\_white\n\n> Attributes:\n> -   bold\n> -   dark\n> -   underline\n> -   blink\n> -   reverse\n> -   concealed\n\n### Terminal properties\n\n    Terminal       bold      dark   underline   blink        reverse   concealed\n    -------------- --------- ------ ----------- ------------ --------- -----------\n    xterm          yes       no     yes         bold         yes       yes\n    linux          yes       yes    bold        yes          yes       no\n    rxvt           yes       no     yes         bold/black   yes       no\n    dtterm         yes       yes    yes         reverse      yes       yes\n    teraterm       reverse   no     yes         rev/red      yes       no\n    aixterm        normal    no     yes         no           yes       yes\n    PuTTY          color     no     yes         no           yes       no\n    Windows        no        no     no          no           yes       no\n    Cygwin SSH     yes       no     color 
       color        color     yes\n    Mac Te!
 rminal   yes       no     yes         yes          yes       yes\n\n### License and Authorship\nOriginal author: Konstantin Lepa <konstantin.lepa@gmail.com>, Copyright (c) 2008-2011 Volvox Development Team\nOriginal license: MIT.\n\nOriginal source code repository no longer available, this is a fork of the artifacts published to pypi\n\n## Documents\n- [Changes](https://github.com/matthewdeanmartin/termcolor/blob/main/docs/CHANGES.MD)',
+    'author': 'Konstantin Lepa',
+    'author_email': 'konstantin.lepa@gmail.com',
+    'maintainer': None,
+    'maintainer_email': None,
+    'url': 'https://github.com/matthewdeanmartin/termcolor',
+    'packages': packages,
+    'package_data': package_data,
+    'python_requires': '>=2.6',
+}
+
+setup(**setup_kwargs)
diff --git a/devel/py-termcolor-whl/pkg-descr b/devel/py-termcolor-whl/pkg-descr
new file mode 100644
index 000000000000..b00abbabafc7
--- /dev/null
+++ b/devel/py-termcolor-whl/pkg-descr
@@ -0,0 +1 @@
+a: ASCII text



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208271030.27RAUif2047161>