diff options
author | Glenn Johnson <glenn-johnson@uiowa.edu> | 2021-05-20 21:27:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 21:27:59 -0500 |
commit | 6e378102fdc3e27d3a449ed6c6698b2468b78772 (patch) | |
tree | a6f38a3b98e368d6d8735a7831ea5fc1ffc53e96 | |
parent | d2178fb47bd7be63d6cff89a360d8f52c9a204e8 (diff) | |
download | spack-6e378102fdc3e27d3a449ed6c6698b2468b78772.tar.gz spack-6e378102fdc3e27d3a449ed6c6698b2468b78772.tar.bz2 spack-6e378102fdc3e27d3a449ed6c6698b2468b78772.tar.xz spack-6e378102fdc3e27d3a449ed6c6698b2468b78772.zip |
New package: py-reindent (#23828)
-rw-r--r-- | var/spack/repos/builtin/packages/py-reindent/package.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-reindent/package.py b/var/spack/repos/builtin/packages/py-reindent/package.py new file mode 100644 index 0000000000..09c489faff --- /dev/null +++ b/var/spack/repos/builtin/packages/py-reindent/package.py @@ -0,0 +1,19 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class PyReindent(PythonPackage): + """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.""" + + pypi = "reindent/reindent-3.5.1.tar.gz" + + version('3.5.1', sha256='59aeb8fbc16e45686f65df23b91896a17eb14ace7a7546860f50d2bb5ec4c9c0') + + depends_on('py-setuptools', type='build') |