Add py-myst-parser & update py-mdit-py-plugins and py-sphinxcontrib-mermaid (#33427)

* Update py-sphinxcontrib-mermaid

* Add py-myst-parser

* Fix py-mdit-py-plugins and py-myst-parser dependencies

* Add py-exhale package

* Update var/spack/repos/builtin/packages/py-mdit-py-plugins/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update var/spack/repos/builtin/packages/py-myst-parser/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update var/spack/repos/builtin/packages/py-myst-parser/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update var/spack/repos/builtin/packages/py-myst-parser/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update py-exhale and py-myst-parser dependencies

* Add @svenevs as py-exhale maintainer

* Update var/spack/repos/builtin/packages/py-mdit-py-plugins/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Zach Jibben 2022-10-24 19:38:23 -06:00 committed by GitHub
parent baa21d664b
commit 8e78a91ebd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 64 additions and 4 deletions

View file

@ -0,0 +1,27 @@
# 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 PyExhale(PythonPackage):
"""Automatic C++ library api documentation generation: breathe doxygen in
and exhale it out."""
homepage = "https://github.com/svenevs/exhale"
pypi = "exhale/exhale-0.3.6.tar.gz"
maintainers = ["svenevs"]
version("0.3.6", sha256="ab41be313e1236bd4386e4696fb35f37ce8103c2059cf8d1f083da5411bb74d7")
depends_on("python@3.7:", type=("build", "run"))
depends_on("py-setuptools@42:", type="build")
depends_on("py-breathe@4.32.0:", type="build")
depends_on("py-docutils@0.12:", type="build")
depends_on("py-sphinx@3:4", type="build")
depends_on("py-beautifulsoup4", type=("build", "run"))
depends_on("py-lxml", type=("build", "run"))
depends_on("py-six", type=("build", "run"))

View file

@ -12,10 +12,15 @@ class PyMditPyPlugins(PythonPackage):
homepage = "https://github.com/executablebooks/mdit-py-plugins/"
git = "https://github.com/executablebooks/mdit-py-plugins/"
pypi = "mdit-py-plugins/mdit-py-plugins-0.2.8.tar.gz"
pypi = "mdit-py-plugins/mdit-py-plugins-0.3.1.tar.gz"
version("0.3.1", sha256="3fc13298497d6e04fe96efdd41281bfe7622152f9caa1815ea99b5c893de9441")
version("0.2.8", sha256="5991cef645502e80a5388ec4fc20885d2313d4871e8b8e320ca2de14ac0c015f")
depends_on("py-setuptools", type="build")
depends_on("py-markdown-it-py@1.0:1", type=("build", "run"))
depends_on("python@3.6:3", type=("build", "run"))
depends_on("py-flit-core@3.4:3", when="@0.3.1", type=("build", "run"))
depends_on("python@3.7:", when="@0.3.1", type=("build", "run"))
depends_on("py-markdown-it-py@1.0:2", when="@0.3.1", type=("build", "run"))
depends_on("py-setuptools", when="@:0.2", type="build")
depends_on("py-markdown-it-py@1.0:1", when="@0.2.8", type=("build", "run"))
depends_on("python@3.6:3", when="@0.2.8", type=("build", "run"))

View file

@ -0,0 +1,27 @@
# 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 PyMystParser(PythonPackage):
"""A Sphinx and Docutils extension to parse MyST, a rich and
extensible flavour of Markdown for authoring technical and
scientific documentation."""
homepage = "https://github.com/executablebooks/MyST-Parser"
pypi = "myst-parser/myst-parser-0.18.1.tar.gz"
version("0.18.1", sha256="79317f4bb2c13053dd6e64f9da1ba1da6cd9c40c8a430c447a7b146a594c246d")
depends_on("python@3.7:", type=("build", "run"))
depends_on("py-flit-core@3.4:3", type="build")
depends_on("py-docutils@0.15:0.19", type=("build", "run"))
depends_on("py-jinja2", type=("build", "run")) # let sphinx decide version
depends_on("py-markdown-it-py@1.0.0:2", type=("build", "run"))
depends_on("py-mdit-py-plugins@0.3.1:0.3", type=("build", "run"))
depends_on("py-pyyaml", type=("build", "run"))
depends_on("py-sphinx@4.0.0:5", type=("build", "run"))
depends_on("py-typing-extensions", type=("build", "run"))

View file

@ -14,6 +14,7 @@ class PySphinxcontribMermaid(PythonPackage):
homepage = "https://github.com/mgaitan/sphinxcontrib-mermaid"
pypi = "sphinxcontrib-mermaid/sphinxcontrib-mermaid-0.4.0.tar.gz"
version("0.7.1", sha256="aa8a40b50ec86ad12824b62180240ca52a9bda8424455d7eb252eae9aa5d293c")
version("0.4.0", sha256="0ee45ba45b9575505eacdd6212e4e545213f4f93dfa32c7eeca32720dbc3b468")
depends_on("py-setuptools", type="build")