diff options
author | wiz <wiz@pkgsrc.org> | 2020-05-18 08:16:24 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2020-05-18 08:16:24 +0000 |
commit | 0133fdc405eb0f98b34502a33e8529b7fe95aa18 (patch) | |
tree | 5dac68c277e2e1977def951d04a457a9b71826a2 /devel | |
parent | 0fc6a419b76eaf1281349c14dfc3fc1ea063a3eb (diff) | |
download | pkgsrc-0133fdc405eb0f98b34502a33e8529b7fe95aa18.tar.gz |
devel/py-yapf: import py-yapf-0.30.0
Packaged for wip by nils@, nikita@, hauke@, rillig@
YAPF - Yet Another Python Formatter - is a python formatting
tool based based off of 'clang-format'.
In essence, the algorithm takes the code and reformats it to
the best formatting that conforms to the style guide, even if
the original code didn't violate the style guide.
The idea is also similar to the 'gofmt' tool for the Go
programming language: end all holy wars about formatting -
if the whole code base of a project is simply piped through
YAPF whenever modifications are made, the style remains consistent
throughout the project and there's no point arguing about style
in every code review.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-yapf/ALTERNATIVES | 1 | ||||
-rw-r--r-- | devel/py-yapf/DESCR | 11 | ||||
-rw-r--r-- | devel/py-yapf/Makefile | 19 | ||||
-rw-r--r-- | devel/py-yapf/PLIST | 154 | ||||
-rw-r--r-- | devel/py-yapf/distinfo | 6 |
5 files changed, 191 insertions, 0 deletions
diff --git a/devel/py-yapf/ALTERNATIVES b/devel/py-yapf/ALTERNATIVES new file mode 100644 index 00000000000..b9c4dcbf00a --- /dev/null +++ b/devel/py-yapf/ALTERNATIVES @@ -0,0 +1 @@ +bin/yapf @PREFIX@/bin/yapf@PYVERSSUFFIX@ diff --git a/devel/py-yapf/DESCR b/devel/py-yapf/DESCR new file mode 100644 index 00000000000..25869e2d075 --- /dev/null +++ b/devel/py-yapf/DESCR @@ -0,0 +1,11 @@ +YAPF - Yet Another Python Formatter - is a python formatting +tool based based off of 'clang-format'. +In essence, the algorithm takes the code and reformats it to +the best formatting that conforms to the style guide, even if +the original code didn't violate the style guide. +The idea is also similar to the 'gofmt' tool for the Go +programming language: end all holy wars about formatting - +if the whole code base of a project is simply piped through +YAPF whenever modifications are made, the style remains consistent +throughout the project and there's no point arguing about style +in every code review. diff --git a/devel/py-yapf/Makefile b/devel/py-yapf/Makefile new file mode 100644 index 00000000000..3146f047810 --- /dev/null +++ b/devel/py-yapf/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2020/05/18 08:16:24 wiz Exp $ + +DISTNAME= yapf-0.30.0 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= devel textproc +MASTER_SITES= ${MASTER_SITE_PYPI:=y/yapf/} + +MAINTAINER= nils@NetBSD.org +HOMEPAGE= https://github.com/google/yapf/ +COMMENT= Python files formatter +LICENSE= apache-2.0 + +USE_LANGUAGES= # none + +post-install: + ${MV} ${DESTDIR}${PREFIX}/bin/yapf ${DESTDIR}${PREFIX}/bin/yapf${PYVERSSUFFIX} + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/py-yapf/PLIST b/devel/py-yapf/PLIST new file mode 100644 index 00000000000..c141cf9a1b1 --- /dev/null +++ b/devel/py-yapf/PLIST @@ -0,0 +1,154 @@ +@comment $NetBSD: PLIST,v 1.1 2020/05/18 08:16:24 wiz Exp $ +bin/yapf${PYVERSSUFFIX} +${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}/top_level.txt +${PYSITELIB}/yapf/__init__.py +${PYSITELIB}/yapf/__main__.py +${PYSITELIB}/yapf/__init__.pyo +${PYSITELIB}/yapf/__init__.pyc +${PYSITELIB}/yapf/__main__.pyo +${PYSITELIB}/yapf/__main__.pyc +${PYSITELIB}/yapf/yapflib/__init__.py +${PYSITELIB}/yapf/yapflib/__init__.pyo +${PYSITELIB}/yapf/yapflib/__init__.pyc +${PYSITELIB}/yapf/yapflib/blank_line_calculator.pyo +${PYSITELIB}/yapf/yapflib/blank_line_calculator.pyc +${PYSITELIB}/yapf/yapflib/comment_splicer.pyo +${PYSITELIB}/yapf/yapflib/comment_splicer.pyc +${PYSITELIB}/yapf/yapflib/continuation_splicer.pyo +${PYSITELIB}/yapf/yapflib/continuation_splicer.pyc +${PYSITELIB}/yapf/yapflib/errors.pyo +${PYSITELIB}/yapf/yapflib/errors.pyc +${PYSITELIB}/yapf/yapflib/file_resources.pyo +${PYSITELIB}/yapf/yapflib/file_resources.pyc +${PYSITELIB}/yapf/yapflib/format_decision_state.pyo +${PYSITELIB}/yapf/yapflib/format_decision_state.pyc +${PYSITELIB}/yapf/yapflib/format_token.pyo +${PYSITELIB}/yapf/yapflib/format_token.pyc +${PYSITELIB}/yapf/yapflib/identify_container.pyo +${PYSITELIB}/yapf/yapflib/identify_container.pyc +${PYSITELIB}/yapf/yapflib/line_joiner.pyo +${PYSITELIB}/yapf/yapflib/line_joiner.pyc +${PYSITELIB}/yapf/yapflib/object_state.pyo +${PYSITELIB}/yapf/yapflib/object_state.pyc +${PYSITELIB}/yapf/yapflib/py3compat.pyo +${PYSITELIB}/yapf/yapflib/py3compat.pyc +${PYSITELIB}/yapf/yapflib/pytree_unwrapper.pyo +${PYSITELIB}/yapf/yapflib/pytree_unwrapper.pyc +${PYSITELIB}/yapf/yapflib/pytree_utils.pyo +${PYSITELIB}/yapf/yapflib/pytree_utils.pyc +${PYSITELIB}/yapf/yapflib/pytree_visitor.pyo +${PYSITELIB}/yapf/yapflib/pytree_visitor.pyc +${PYSITELIB}/yapf/yapflib/reformatter.pyo +${PYSITELIB}/yapf/yapflib/reformatter.pyc +${PYSITELIB}/yapf/yapflib/split_penalty.pyo +${PYSITELIB}/yapf/yapflib/split_penalty.pyc +${PYSITELIB}/yapf/yapflib/style.pyo +${PYSITELIB}/yapf/yapflib/style.pyc +${PYSITELIB}/yapf/yapflib/subtype_assigner.pyo +${PYSITELIB}/yapf/yapflib/subtype_assigner.pyc +${PYSITELIB}/yapf/yapflib/unwrapped_line.pyo +${PYSITELIB}/yapf/yapflib/unwrapped_line.pyc +${PYSITELIB}/yapf/yapflib/verifier.pyo +${PYSITELIB}/yapf/yapflib/verifier.pyc +${PYSITELIB}/yapf/yapflib/yapf_api.pyo +${PYSITELIB}/yapf/yapflib/yapf_api.pyc +${PYSITELIB}/yapf/yapflib/blank_line_calculator.py +${PYSITELIB}/yapf/yapflib/comment_splicer.py +${PYSITELIB}/yapf/yapflib/continuation_splicer.py +${PYSITELIB}/yapf/yapflib/errors.py +${PYSITELIB}/yapf/yapflib/file_resources.py +${PYSITELIB}/yapf/yapflib/format_decision_state.py +${PYSITELIB}/yapf/yapflib/format_token.py +${PYSITELIB}/yapf/yapflib/identify_container.py +${PYSITELIB}/yapf/yapflib/line_joiner.py +${PYSITELIB}/yapf/yapflib/object_state.py +${PYSITELIB}/yapf/yapflib/py3compat.py +${PYSITELIB}/yapf/yapflib/pytree_unwrapper.py +${PYSITELIB}/yapf/yapflib/pytree_utils.py +${PYSITELIB}/yapf/yapflib/pytree_visitor.py +${PYSITELIB}/yapf/yapflib/reformatter.py +${PYSITELIB}/yapf/yapflib/split_penalty.py +${PYSITELIB}/yapf/yapflib/style.py +${PYSITELIB}/yapf/yapflib/subtype_assigner.py +${PYSITELIB}/yapf/yapflib/unwrapped_line.py +${PYSITELIB}/yapf/yapflib/verifier.py +${PYSITELIB}/yapf/yapflib/yapf_api.py +${PYSITELIB}/yapftests/__init__.py +${PYSITELIB}/yapftests/__init__.pyo +${PYSITELIB}/yapftests/__init__.pyc +${PYSITELIB}/yapftests/blank_line_calculator_test.pyo +${PYSITELIB}/yapftests/blank_line_calculator_test.pyc +${PYSITELIB}/yapftests/comment_splicer_test.pyo +${PYSITELIB}/yapftests/comment_splicer_test.pyc +${PYSITELIB}/yapftests/file_resources_test.pyo +${PYSITELIB}/yapftests/file_resources_test.pyc +${PYSITELIB}/yapftests/format_decision_state_test.pyo +${PYSITELIB}/yapftests/format_decision_state_test.pyc +${PYSITELIB}/yapftests/format_token_test.pyo +${PYSITELIB}/yapftests/format_token_test.pyc +${PYSITELIB}/yapftests/line_joiner_test.pyo +${PYSITELIB}/yapftests/line_joiner_test.pyc +${PYSITELIB}/yapftests/main_test.pyo +${PYSITELIB}/yapftests/main_test.pyc +${PYSITELIB}/yapftests/pytree_unwrapper_test.pyo +${PYSITELIB}/yapftests/pytree_unwrapper_test.pyc +${PYSITELIB}/yapftests/pytree_utils_test.pyo +${PYSITELIB}/yapftests/pytree_utils_test.pyc +${PYSITELIB}/yapftests/pytree_visitor_test.pyo +${PYSITELIB}/yapftests/pytree_visitor_test.pyc +${PYSITELIB}/yapftests/reformatter_basic_test.pyo +${PYSITELIB}/yapftests/reformatter_basic_test.pyc +${PYSITELIB}/yapftests/reformatter_buganizer_test.pyo +${PYSITELIB}/yapftests/reformatter_buganizer_test.pyc +${PYSITELIB}/yapftests/reformatter_facebook_test.pyo +${PYSITELIB}/yapftests/reformatter_facebook_test.pyc +${PYSITELIB}/yapftests/reformatter_pep8_test.pyo +${PYSITELIB}/yapftests/reformatter_pep8_test.pyc +${PYSITELIB}/yapftests/reformatter_python3_test.pyo +${PYSITELIB}/yapftests/reformatter_python3_test.pyc +${PYSITELIB}/yapftests/reformatter_style_config_test.pyo +${PYSITELIB}/yapftests/reformatter_style_config_test.pyc +${PYSITELIB}/yapftests/reformatter_verify_test.pyo +${PYSITELIB}/yapftests/reformatter_verify_test.pyc +${PYSITELIB}/yapftests/split_penalty_test.pyo +${PYSITELIB}/yapftests/split_penalty_test.pyc +${PYSITELIB}/yapftests/style_test.pyo +${PYSITELIB}/yapftests/style_test.pyc +${PYSITELIB}/yapftests/subtype_assigner_test.pyo +${PYSITELIB}/yapftests/subtype_assigner_test.pyc +${PYSITELIB}/yapftests/unwrapped_line_test.pyo +${PYSITELIB}/yapftests/unwrapped_line_test.pyc +${PYSITELIB}/yapftests/utils.pyo +${PYSITELIB}/yapftests/utils.pyc +${PYSITELIB}/yapftests/yapf_test.pyo +${PYSITELIB}/yapftests/yapf_test.pyc +${PYSITELIB}/yapftests/yapf_test_helper.pyo +${PYSITELIB}/yapftests/yapf_test_helper.pyc +${PYSITELIB}/yapftests/blank_line_calculator_test.py +${PYSITELIB}/yapftests/comment_splicer_test.py +${PYSITELIB}/yapftests/file_resources_test.py +${PYSITELIB}/yapftests/format_decision_state_test.py +${PYSITELIB}/yapftests/format_token_test.py +${PYSITELIB}/yapftests/line_joiner_test.py +${PYSITELIB}/yapftests/main_test.py +${PYSITELIB}/yapftests/pytree_unwrapper_test.py +${PYSITELIB}/yapftests/pytree_utils_test.py +${PYSITELIB}/yapftests/pytree_visitor_test.py +${PYSITELIB}/yapftests/reformatter_basic_test.py +${PYSITELIB}/yapftests/reformatter_buganizer_test.py +${PYSITELIB}/yapftests/reformatter_facebook_test.py +${PYSITELIB}/yapftests/reformatter_pep8_test.py +${PYSITELIB}/yapftests/reformatter_python3_test.py +${PYSITELIB}/yapftests/reformatter_style_config_test.py +${PYSITELIB}/yapftests/reformatter_verify_test.py +${PYSITELIB}/yapftests/split_penalty_test.py +${PYSITELIB}/yapftests/style_test.py +${PYSITELIB}/yapftests/subtype_assigner_test.py +${PYSITELIB}/yapftests/unwrapped_line_test.py +${PYSITELIB}/yapftests/utils.py +${PYSITELIB}/yapftests/yapf_test.py +${PYSITELIB}/yapftests/yapf_test_helper.py diff --git a/devel/py-yapf/distinfo b/devel/py-yapf/distinfo new file mode 100644 index 00000000000..164a1722090 --- /dev/null +++ b/devel/py-yapf/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2020/05/18 08:16:24 wiz Exp $ + +SHA1 (yapf-0.30.0.tar.gz) = 64c4e4125e82c328e9feecfe28d8798da88859c4 +RMD160 (yapf-0.30.0.tar.gz) = 659c90348056ad943b1eb7a56743ec1be493c942 +SHA512 (yapf-0.30.0.tar.gz) = 47070ccbae54d482499c5fcf594be09f47e64540141dac6fb7c4d8e0e596dc9d050a127a62d1a0468cc10fff8626bfe3c12a0f42794b817fade9463d1a1d6ab3 +Size (yapf-0.30.0.tar.gz) = 187854 bytes |