summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumbach <healther@users.noreply.github.com>2019-06-23 23:33:22 +0200
committerElizabeth Fischer <elizabeth.fischer@columbia.edu>2019-06-23 17:33:22 -0400
commit2687af2c53404e0b03abc0351d077836f36f2ba0 (patch)
tree4920e30738103f56f86f82467349069e4d802b4c
parentd65e6ad7e3ee86fe77e2af151b28a40cede4737d (diff)
downloadspack-2687af2c53404e0b03abc0351d077836f36f2ba0.tar.gz
spack-2687af2c53404e0b03abc0351d077836f36f2ba0.tar.bz2
spack-2687af2c53404e0b03abc0351d077836f36f2ba0.tar.xz
spack-2687af2c53404e0b03abc0351d077836f36f2ba0.zip
New package py-astor (and test dependency py-astunparse) (#11813)
* add package py-astor Change-Id: I2f6becfb5e9771170bf2df5eb629920e1c0998d7 * add new package py-astunparse Change-Id: Id2d3e8dec28e720ed1cb121dad0d1a405c27ca29 * Update package.py * Update package.py * Update package.py
-rw-r--r--var/spack/repos/builtin/packages/py-astor/package.py22
-rw-r--r--var/spack/repos/builtin/packages/py-astunparse/package.py22
2 files changed, 44 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-astor/package.py b/var/spack/repos/builtin/packages/py-astor/package.py
new file mode 100644
index 0000000000..872941a377
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-astor/package.py
@@ -0,0 +1,22 @@
+# Copyright 2013-2019 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 PyAstor(PythonPackage):
+ """
+ astor is designed to allow easy manipulation of Python source via the AST.
+ """
+
+ homepage = "https://pypi.python.org/pypi/astor"
+ url = "https://pypi.io/packages/source/a/astor/astor-0.8.0.tar.gz"
+
+ version('0.8.0', sha256='37a6eed8b371f1228db08234ed7f6cfdc7817a3ed3824797e20cbb11dc2a7862')
+ version('0.6', sha256='175ec395cde36aa0178c5a3120d03954c65d1ef4bb19ec4aa30e9d7a7cc426c4')
+
+ depends_on('python@2.7:2.8,3.4:')
+ depends_on('py-setuptools', type='build')
+ depends_on('py-nose', type='test')
+ depends_on('py-astunparse', type='test')
diff --git a/var/spack/repos/builtin/packages/py-astunparse/package.py b/var/spack/repos/builtin/packages/py-astunparse/package.py
new file mode 100644
index 0000000000..3af8ed847b
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-astunparse/package.py
@@ -0,0 +1,22 @@
+# Copyright 2013-2019 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 PyAstunparse(PythonPackage):
+ """An AST unparser for Python.
+
+ This is a factored out version of unparse found in the Python source
+ distribution; under Demo/parser in Python 2 and under Tools/parser in
+ Python 3."""
+
+ homepage = "https://pypi.org/project/astunparse/"
+ url = "https://pypi.io/packages/source/a/astunparse/astunparse-1.6.2.tar.gz"
+
+ version('1.6.2', sha256='dab3e426715373fd76cd08bb1abe64b550f5aa494cf1e32384f26fd60961eb67')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-wheel@0.23.0:0.99.99', type=('build', 'run'))
+ depends_on('py-six@1.6.1:1.99.99', type=('build', 'run'))