pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-yapf



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon May 18 08:16:24 UTC 2020

Added Files:
        pkgsrc/devel/py-yapf: ALTERNATIVES DESCR Makefile PLIST distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/py-yapf/ALTERNATIVES \
    pkgsrc/devel/py-yapf/DESCR pkgsrc/devel/py-yapf/Makefile \
    pkgsrc/devel/py-yapf/PLIST pkgsrc/devel/py-yapf/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/py-yapf/ALTERNATIVES
diff -u /dev/null pkgsrc/devel/py-yapf/ALTERNATIVES:1.1
--- /dev/null   Mon May 18 08:16:24 2020
+++ pkgsrc/devel/py-yapf/ALTERNATIVES   Mon May 18 08:16:24 2020
@@ -0,0 +1 @@
+bin/yapf @PREFIX@/bin/yapf@PYVERSSUFFIX@
Index: pkgsrc/devel/py-yapf/DESCR
diff -u /dev/null pkgsrc/devel/py-yapf/DESCR:1.1
--- /dev/null   Mon May 18 08:16:24 2020
+++ pkgsrc/devel/py-yapf/DESCR  Mon May 18 08:16:24 2020
@@ -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.
Index: pkgsrc/devel/py-yapf/Makefile
diff -u /dev/null pkgsrc/devel/py-yapf/Makefile:1.1
--- /dev/null   Mon May 18 08:16:24 2020
+++ pkgsrc/devel/py-yapf/Makefile       Mon May 18 08:16:24 2020
@@ -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@localhost
+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"
Index: pkgsrc/devel/py-yapf/PLIST
diff -u /dev/null pkgsrc/devel/py-yapf/PLIST:1.1
--- /dev/null   Mon May 18 08:16:24 2020
+++ pkgsrc/devel/py-yapf/PLIST  Mon May 18 08:16:24 2020
@@ -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
Index: pkgsrc/devel/py-yapf/distinfo
diff -u /dev/null pkgsrc/devel/py-yapf/distinfo:1.1
--- /dev/null   Mon May 18 08:16:24 2020
+++ pkgsrc/devel/py-yapf/distinfo       Mon May 18 08:16:24 2020
@@ -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



Home | Main Index | Thread Index | Old Index