git: 3b5c528f8932 - main - textproc/py-reindent: New port: Reindent python scripts
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 May 2023 23:26:38 UTC
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=3b5c528f893230154572321b0aba60e19db9035f commit 3b5c528f893230154572321b0aba60e19db9035f Author: Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org> AuthorDate: 2023-04-28 11:09:46 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-05-11 23:23:31 +0000 textproc/py-reindent: New port: Reindent python scripts Change Python (.py) files to use 4-space indents and no hard tab characters. Also trim excess spaces and tabs from ends of lines, and remove empty lines at the end of files. Also ensure the last line ends with a newline. WWW: https://pypi.org/project/reindent/ PR: 269828 --- textproc/Makefile | 1 + textproc/py-reindent/Makefile | 16 ++++++++++++++++ textproc/py-reindent/distinfo | 3 +++ textproc/py-reindent/pkg-descr | 3 +++ 4 files changed, 23 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 7f5852bfed10..ddfe5822bc07 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1500,6 +1500,7 @@ SUBDIR += py-readchar SUBDIR += py-recommonmark SUBDIR += py-regex + SUBDIR += py-reindent SUBDIR += py-reno SUBDIR += py-restructuredtext-lint SUBDIR += py-reverend diff --git a/textproc/py-reindent/Makefile b/textproc/py-reindent/Makefile new file mode 100644 index 000000000000..6d27619a49a5 --- /dev/null +++ b/textproc/py-reindent/Makefile @@ -0,0 +1,16 @@ +PORTNAME= reindent +DISTVERSION= 3.5.1 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= DtxdF@disroot.org +COMMENT= Reindent python scripts +WWW= https://pypi.org/project/reindent/ + +LICENSE= PD + +USES= python +USE_PYTHON= autoplist distutils + +.include <bsd.port.mk> diff --git a/textproc/py-reindent/distinfo b/textproc/py-reindent/distinfo new file mode 100644 index 000000000000..78a0b9108924 --- /dev/null +++ b/textproc/py-reindent/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1677367180 +SHA256 (reindent-3.5.1.tar.gz) = 59aeb8fbc16e45686f65df23b91896a17eb14ace7a7546860f50d2bb5ec4c9c0 +SIZE (reindent-3.5.1.tar.gz) = 5847 diff --git a/textproc/py-reindent/pkg-descr b/textproc/py-reindent/pkg-descr new file mode 100644 index 000000000000..14b984c3aeb8 --- /dev/null +++ b/textproc/py-reindent/pkg-descr @@ -0,0 +1,3 @@ +Change Python (.py) files to use 4-space indents and no hard tab characters. +Also trim excess spaces and tabs from ends of lines, and remove empty lines +at the end of files. Also ensure the last line ends with a newline.