From df3dca2424ee83497c10a0b2e600c051afc84d96 Mon Sep 17 00:00:00 2001 From: khorben Date: Mon, 28 Sep 2020 23:55:26 +0000 Subject: [PATCH] py-black: import version 20.8b1 By using Black, you agree to cede control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting. You will save time and mental energy for more important matters. --- textproc/py-black/ALTERNATIVES | 3 ++ textproc/py-black/DESCR | 4 ++ textproc/py-black/Makefile | 35 +++++++++++++++++ textproc/py-black/PLIST | 68 ++++++++++++++++++++++++++++++++++ textproc/py-black/distinfo | 6 +++ 5 files changed, 116 insertions(+) create mode 100644 textproc/py-black/ALTERNATIVES create mode 100644 textproc/py-black/DESCR create mode 100644 textproc/py-black/Makefile create mode 100644 textproc/py-black/PLIST create mode 100644 textproc/py-black/distinfo diff --git a/textproc/py-black/ALTERNATIVES b/textproc/py-black/ALTERNATIVES new file mode 100644 index 000000000000..f7fa8d63fb9d --- /dev/null +++ b/textproc/py-black/ALTERNATIVES @@ -0,0 +1,3 @@ +bin/black @PREFIX@/bin/black-@PYVERSSUFFIX@ +bin/black-primer @PREFIX@/bin/black-primer-@PYVERSSUFFIX@ +bin/blackd @PREFIX@/bin/blackd-@PYVERSSUFFIX@ diff --git a/textproc/py-black/DESCR b/textproc/py-black/DESCR new file mode 100644 index 000000000000..ab3150f0f4f6 --- /dev/null +++ b/textproc/py-black/DESCR @@ -0,0 +1,4 @@ +By using Black, you agree to cede control over minutiae of hand-formatting. In +return, Black gives you speed, determinism, and freedom from pycodestyle nagging +about formatting. You will save time and mental energy for more important +matters. diff --git a/textproc/py-black/Makefile b/textproc/py-black/Makefile new file mode 100644 index 000000000000..64b00dcf1528 --- /dev/null +++ b/textproc/py-black/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2020/09/28 23:55:26 khorben Exp $ + +DISTNAME= black-20.8b1 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= textproc devel python +MASTER_SITES= ${MASTER_SITE_PYPI:=b/black/} + +MAINTAINER= root@zta.lk +HOMEPAGE= https://black.readthedocs.io/ +COMMENT= Uncompromising Python code formatter +LICENSE= mit + +USE_LANGUAGES= # none + +BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm +DEPENDS+= ${PYPKGPREFIX}-click>=6.5:../../devel/py-click +DEPENDS+= ${PYPKGPREFIX}-pathspec>=0.6<1:../../devel/py-pathspec +DEPENDS+= ${PYPKGPREFIX}-attrs>=18.1.0:../../devel/py-attrs +DEPENDS+= ${PYPKGPREFIX}-appdirs-[0-9]*:../../devel/py-appdirs +DEPENDS+= ${PYPKGPREFIX}-toml>=0.9.4:../../textproc/py-toml +DEPENDS+= ${PYPKGPREFIX}-typed-ast>=1.4.0:../../devel/py-typed-ast +DEPENDS+= ${PYPKGPREFIX}-regex-[0-9]*:../../textproc/py-regex +# only for blackd: +DEPENDS+= ${PYPKGPREFIX}-aiohttp>=3.3.2:../../www/py-aiohttp +DEPENDS+= ${PYPKGPREFIX}-aiohttp-cors-[0-9]*:../../www/py-aiohttp-cors + +PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-aiohttp + +post-install: + cd ${DESTDIR}${PREFIX}/bin && for b in black black-primer blackd; \ + do ${MV} $$b $$b-${PYVERSSUFFIX}; \ + done + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/py-black/PLIST b/textproc/py-black/PLIST new file mode 100644 index 000000000000..9bc7877bfe59 --- /dev/null +++ b/textproc/py-black/PLIST @@ -0,0 +1,68 @@ +@comment $NetBSD: PLIST,v 1.1 2020/09/28 23:55:26 khorben Exp $ +bin/black-${PYVERSSUFFIX} +bin/black-primer-${PYVERSSUFFIX} +bin/blackd-${PYVERSSUFFIX} +${PYSITELIB}/_black_version.py +${PYSITELIB}/_black_version.pyc +${PYSITELIB}/_black_version.pyo +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/entry_points.txt +${PYSITELIB}/${EGG_INFODIR}/not-zip-safe +${PYSITELIB}/${EGG_INFODIR}/requires.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/black/__init__.py +${PYSITELIB}/black/__init__.pyc +${PYSITELIB}/black/__init__.pyo +${PYSITELIB}/black/__main__.py +${PYSITELIB}/black/__main__.pyc +${PYSITELIB}/black/__main__.pyo +${PYSITELIB}/black/py.typed +${PYSITELIB}/black_primer/cli.py +${PYSITELIB}/black_primer/cli.pyc +${PYSITELIB}/black_primer/cli.pyo +${PYSITELIB}/black_primer/lib.py +${PYSITELIB}/black_primer/lib.pyc +${PYSITELIB}/black_primer/lib.pyo +${PYSITELIB}/blackd/__init__.py +${PYSITELIB}/blackd/__init__.pyc +${PYSITELIB}/blackd/__init__.pyo +${PYSITELIB}/blib2to3/Grammar.txt +${PYSITELIB}/blib2to3/PatternGrammar.txt +${PYSITELIB}/blib2to3/__init__.py +${PYSITELIB}/blib2to3/__init__.pyc +${PYSITELIB}/blib2to3/__init__.pyo +${PYSITELIB}/blib2to3/pgen2/__init__.py +${PYSITELIB}/blib2to3/pgen2/__init__.pyc +${PYSITELIB}/blib2to3/pgen2/__init__.pyo +${PYSITELIB}/blib2to3/pgen2/conv.py +${PYSITELIB}/blib2to3/pgen2/conv.pyc +${PYSITELIB}/blib2to3/pgen2/conv.pyo +${PYSITELIB}/blib2to3/pgen2/driver.py +${PYSITELIB}/blib2to3/pgen2/driver.pyc +${PYSITELIB}/blib2to3/pgen2/driver.pyo +${PYSITELIB}/blib2to3/pgen2/grammar.py +${PYSITELIB}/blib2to3/pgen2/grammar.pyc +${PYSITELIB}/blib2to3/pgen2/grammar.pyo +${PYSITELIB}/blib2to3/pgen2/literals.py +${PYSITELIB}/blib2to3/pgen2/literals.pyc +${PYSITELIB}/blib2to3/pgen2/literals.pyo +${PYSITELIB}/blib2to3/pgen2/parse.py +${PYSITELIB}/blib2to3/pgen2/parse.pyc +${PYSITELIB}/blib2to3/pgen2/parse.pyo +${PYSITELIB}/blib2to3/pgen2/pgen.py +${PYSITELIB}/blib2to3/pgen2/pgen.pyc +${PYSITELIB}/blib2to3/pgen2/pgen.pyo +${PYSITELIB}/blib2to3/pgen2/token.py +${PYSITELIB}/blib2to3/pgen2/token.pyc +${PYSITELIB}/blib2to3/pgen2/token.pyo +${PYSITELIB}/blib2to3/pgen2/tokenize.py +${PYSITELIB}/blib2to3/pgen2/tokenize.pyc +${PYSITELIB}/blib2to3/pgen2/tokenize.pyo +${PYSITELIB}/blib2to3/pygram.py +${PYSITELIB}/blib2to3/pygram.pyc +${PYSITELIB}/blib2to3/pygram.pyo +${PYSITELIB}/blib2to3/pytree.py +${PYSITELIB}/blib2to3/pytree.pyc +${PYSITELIB}/blib2to3/pytree.pyo diff --git a/textproc/py-black/distinfo b/textproc/py-black/distinfo new file mode 100644 index 000000000000..8962948bf3c5 --- /dev/null +++ b/textproc/py-black/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2020/09/28 23:55:26 khorben Exp $ + +SHA1 (black-20.8b1.tar.gz) = 65462f991edd03e8e7f4f26364d2ace6757b17b8 +RMD160 (black-20.8b1.tar.gz) = 63de27671405a15165325731e0b74e4bfe1be80d +SHA512 (black-20.8b1.tar.gz) = f047c2a1ce759a8e19eed2e1869752bb8a63bf17a554aff5d9e834a48cd390b23918b78e01d5c36c0fb7599439d7e422847bde504ff698d53df5c5939a8870d2 +Size (black-20.8b1.tar.gz) = 1096433 bytes