summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2022-04-11 04:00:32 -0500
committerGitHub <noreply@github.com>2022-04-11 11:00:32 +0200
commit831346a3fb2ae40be8d1a06b97487ab1e6f68386 (patch)
tree5e1a4295e03f7813a3b4c8e2db3b5a4309f4f7ea /var
parentae76834f3d491bc682b26734a20d733abb6e727d (diff)
downloadspack-831346a3fb2ae40be8d1a06b97487ab1e6f68386.tar.gz
spack-831346a3fb2ae40be8d1a06b97487ab1e6f68386.tar.bz2
spack-831346a3fb2ae40be8d1a06b97487ab1e6f68386.tar.xz
spack-831346a3fb2ae40be8d1a06b97487ab1e6f68386.zip
py-pyupgrade: add new package (#29747)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-pyupgrade/package.py19
-rw-r--r--var/spack/repos/builtin/packages/py-tokenize-rt/package.py17
2 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pyupgrade/package.py b/var/spack/repos/builtin/packages/py-pyupgrade/package.py
new file mode 100644
index 0000000000..6094a5b5a2
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pyupgrade/package.py
@@ -0,0 +1,19 @@
+# Copyright 2013-2022 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 PyPyupgrade(PythonPackage):
+ """A tool to automatically upgrade syntax for newer versions."""
+
+ homepage = "https://github.com/asottile/pyupgrade"
+ pypi = "pyupgrade/pyupgrade-2.31.1.tar.gz"
+
+ version('2.31.1', sha256='22e0ad6dd39c4381805cb059f1e691b6315c62c0ebcec98a5f29d22cd186a72a')
+
+ depends_on('python@3.7:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('py-tokenize-rt@3.2:', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/py-tokenize-rt/package.py b/var/spack/repos/builtin/packages/py-tokenize-rt/package.py
new file mode 100644
index 0000000000..d2379d584a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-tokenize-rt/package.py
@@ -0,0 +1,17 @@
+# Copyright 2013-2022 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 PyTokenizeRt(PythonPackage):
+ """A wrapper around the stdlib `tokenize` which roundtrips."""
+
+ homepage = "https://github.com/asottile/tokenize-rt"
+ pypi = "tokenize_rt/tokenize_rt-4.2.1.tar.gz"
+
+ version('4.2.1', sha256='0d4f69026fed520f8a1e0103aa36c406ef4661417f20ca643f913e33531b3b94')
+
+ depends_on('python@3.6.1:', type=('build', 'run'))