summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Sherrock <lizzyd710@gmail.com>2022-06-16 15:14:40 -0400
committerGitHub <noreply@github.com>2022-06-16 12:14:40 -0700
commit8c3b82c140a111ad37a92c47992ec704f6df65ff (patch)
tree5d2fccb3597c455fb6d2142881eed5ad260b5bac
parent2e4b533420a5eef4fedf8d892c86a63ac9b45d60 (diff)
downloadspack-8c3b82c140a111ad37a92c47992ec704f6df65ff.tar.gz
spack-8c3b82c140a111ad37a92c47992ec704f6df65ff.tar.bz2
spack-8c3b82c140a111ad37a92c47992ec704f6df65ff.tar.xz
spack-8c3b82c140a111ad37a92c47992ec704f6df65ff.zip
New packages: py-ford and dependencies (#31107)
* Created package and added description * Add py-markdown-include * Created package * Finished creating package * Added py-md-environ * Added build dependencies * Added other deps * Add python-markdown-math (#4) * Created package and started to add info * Removed unneeded global/install options * Figured out version spec for markdown-math * Removed type=build from unnecessary dependencies * Removed unneeded install/global options, added version spec to dependency * Added wscullin as interim maintainer for packages * Fixed style issues * Took care of trailing whitespace * Removed comment line before imports * Changed file charset to match other packages * Update var/spack/repos/builtin/packages/py-ford/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * Update var/spack/repos/builtin/packages/py-ford/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * Removed test dependency after review feedback * Added new 6.1.12 version to py-ford Co-authored-by: Seth R. Johnson <johnsonsr@ornl.gov> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/py-ford/package.py36
-rw-r--r--var/spack/repos/builtin/packages/py-markdown-include/package.py22
-rw-r--r--var/spack/repos/builtin/packages/py-md-environ/package.py21
-rw-r--r--var/spack/repos/builtin/packages/py-python-markdown-math/package.py22
4 files changed, 101 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-ford/package.py b/var/spack/repos/builtin/packages/py-ford/package.py
new file mode 100644
index 0000000000..1c3e58d667
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-ford/package.py
@@ -0,0 +1,36 @@
+# 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.package import *
+
+
+class PyFord(PythonPackage):
+ """FORD, standing for FORtran Documenter, is an automatic documentation generator
+ for modern Fortran programs."""
+
+ pypi = "FORD/FORD-6.1.11.tar.gz"
+
+ maintainers = ['wscullin']
+
+ version('6.1.12', sha256='101191e1aa33cfe780ea5b2d66d02c7281b9b314e82bb138d76809a49c08506a')
+ version('6.1.11', sha256='feb9a88040e717e84c632e4b023904ab36a463fc9a8ff80c8c7f86454e5d8043')
+
+ depends_on('py-wheel@0.29:', type='build')
+
+ depends_on('py-setuptools@48:', type='build')
+ depends_on('py-setuptools-scm@4:5+toml', type='build')
+ depends_on('py-setuptools-scm-git-archive', type='build')
+
+ depends_on('py-markdown', type=('build', 'run'))
+ depends_on('py-markdown-include@0.5.1:', type='run')
+ depends_on('py-md-environ', type=('build', 'run'), when='@:6.1.8')
+ depends_on('py-python-markdown-math@0.8:0', type='run')
+ depends_on('py-toposort', type=('build', 'run'))
+ depends_on('py-jinja2@2.1:', type=('build', 'run'))
+ depends_on('py-pygments', type=('build', 'run'))
+ depends_on('py-beautifulsoup4@4.5.1:', type=('build', 'run'))
+ depends_on('py-graphviz', type=('build', 'run'))
+ depends_on('py-tqdm', type=('build', 'run'))
+ depends_on('py-importlib-metadata', when='^python@:3.7', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/py-markdown-include/package.py b/var/spack/repos/builtin/packages/py-markdown-include/package.py
new file mode 100644
index 0000000000..44bae173a0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-markdown-include/package.py
@@ -0,0 +1,22 @@
+# 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.package import *
+
+
+class PyMarkdownInclude(PythonPackage):
+ """This is an extension to Python-Markdown which provides an "include"
+ function, similar to that found in LaTeX (and also the
+ C pre-processor and Fortran)."""
+
+ pypi = "markdown-include/markdown-include-0.6.0.tar.gz"
+
+ maintainers = ['wscullin']
+
+ version('0.6.0', sha256='6f5d680e36f7780c7f0f61dca53ca581bd50d1b56137ddcd6353efafa0c3e4a2')
+
+ depends_on('py-setuptools', type='build')
+
+ depends_on('py-markdown', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/py-md-environ/package.py b/var/spack/repos/builtin/packages/py-md-environ/package.py
new file mode 100644
index 0000000000..9afffc78d7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-md-environ/package.py
@@ -0,0 +1,21 @@
+# 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.package import *
+
+
+class PyMdEnviron(PythonPackage):
+ """This is an extension to Python-Markdown which allows environment variables
+ to be used in the text."""
+
+ pypi = "md-environ/md-environ-0.1.0.tar.gz"
+
+ maintainers = ['wscullin']
+
+ version('0.1.0', sha256='fe3c2a255af523d6f522831c699336cd71f9d543714067d93206ed35836f1793')
+
+ depends_on('py-setuptools', type='build')
+
+ depends_on('py-markdown', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/py-python-markdown-math/package.py b/var/spack/repos/builtin/packages/py-python-markdown-math/package.py
new file mode 100644
index 0000000000..cddebd9297
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-python-markdown-math/package.py
@@ -0,0 +1,22 @@
+# 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.package import *
+
+
+class PyPythonMarkdownMath(PythonPackage):
+ """Math extension for Python-Markdown"""
+
+ pypi = "python-markdown-math/python-markdown-math-0.8.tar.gz"
+
+ maintainers = ['wscullin']
+
+ version('0.8', sha256='8564212af679fc18d53f38681f16080fcd3d186073f23825c7ce86fadd3e3635')
+
+ depends_on('python@3.6:', type=('build', 'run'))
+
+ depends_on('py-setuptools@30.3:', type='build')
+
+ depends_on('py-markdown@3.0:', type=('build', 'run'))