py-grayskull: add new package (#40293)
* py-grayskull: add new package * [@spackbot] updating style on behalf of adamjstewart --------- Co-authored-by: adamjstewart <adamjstewart@users.noreply.github.com>
This commit is contained in:
parent
4a96d29e69
commit
ae185087e7
6 changed files with 111 additions and 8 deletions
|
@ -0,0 +1,21 @@
|
|||
# Copyright 2013-2023 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 PyCondaSouschef(PythonPackage):
|
||||
"""Project to handle conda recipes."""
|
||||
|
||||
homepage = "https://github.com/marcelotrevisani/souschef"
|
||||
pypi = "conda-souschef/conda-souschef-2.2.3.tar.gz"
|
||||
|
||||
version("2.2.3", sha256="9bf3dba0676bc97616636b80ad4a75cd90582252d11c86ed9d3456afb939c0c3")
|
||||
|
||||
depends_on("python@3.8:", type=("build", "run"))
|
||||
depends_on("py-setuptools@30.3:", type="build")
|
||||
depends_on("py-setuptools-scm", type="build")
|
||||
depends_on("py-ruamel-yaml@0.15.3:", type=("build", "run"))
|
||||
depends_on("py-ruamel-yaml-jinja2", type=("build", "run"))
|
35
var/spack/repos/builtin/packages/py-grayskull/package.py
Normal file
35
var/spack/repos/builtin/packages/py-grayskull/package.py
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Copyright 2013-2023 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 PyGrayskull(PythonPackage):
|
||||
"""Project to generate recipes for conda packages."""
|
||||
|
||||
homepage = "https://github.com/conda/grayskull"
|
||||
pypi = "grayskull/grayskull-2.5.0.tar.gz"
|
||||
|
||||
version("2.5.0", sha256="b021138655be550fd1b93b8db08b9c66169fac9cba6bcdad1411263e12fc703f")
|
||||
|
||||
depends_on("python@3.8:", type=("build", "run"))
|
||||
depends_on("py-setuptools@61:", type="build")
|
||||
depends_on("py-setuptools-scm@6.2:+toml", type="build")
|
||||
depends_on("py-beautifulsoup4", type=("build", "run"))
|
||||
depends_on("py-colorama", type=("build", "run"))
|
||||
depends_on("py-conda-souschef@2.2.3:", type=("build", "run"))
|
||||
depends_on("py-packaging@21.3:", type=("build", "run"))
|
||||
depends_on("py-pip", type=("build", "run"))
|
||||
depends_on("py-pkginfo", type=("build", "run"))
|
||||
depends_on("py-progressbar2@3.53:", type=("build", "run"))
|
||||
depends_on("py-rapidfuzz@3:", type=("build", "run"))
|
||||
depends_on("py-requests", type=("build", "run"))
|
||||
depends_on("py-ruamel-yaml@0.16.10:", type=("build", "run"))
|
||||
depends_on("py-ruamel-yaml-jinja2", type=("build", "run"))
|
||||
depends_on("py-setuptools@30.3:", type=("build", "run"))
|
||||
depends_on("py-semver@3.0", type=("build", "run"))
|
||||
depends_on("py-stdlib-list", type=("build", "run"))
|
||||
depends_on("py-tomli", type=("build", "run"))
|
||||
depends_on("py-tomli-w", type=("build", "run"))
|
|
@ -12,8 +12,14 @@ class PyRapidfuzz(PythonPackage):
|
|||
homepage = "https://github.com/maxbachmann/rapidfuzz"
|
||||
pypi = "rapidfuzz/rapidfuzz-1.8.2.tar.gz"
|
||||
|
||||
version("3.3.1", sha256="6783b3852f15ed7567688e2e358757a7b4f38683a915ba5edc6c64f1a3f0b450")
|
||||
version("1.8.2", sha256="d6efbb2b6b18b3a67d7bdfbcd9bb72732f55736852bbef823bdf210f9e0c6c90")
|
||||
|
||||
depends_on("python@2.7:", type=("build", "link", "run"))
|
||||
depends_on("python", type=("build", "link", "run"))
|
||||
depends_on("py-setuptools@42:", when="@3:", type="build")
|
||||
depends_on("py-setuptools", type="build")
|
||||
depends_on("py-numpy", type=("build", "run"))
|
||||
depends_on("py-scikit-build@0.17", when="@3:", type="build")
|
||||
|
||||
# CMakeLists.txt
|
||||
depends_on("cmake@3.12:", type="build")
|
||||
depends_on("ninja", type="build")
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
# Copyright 2013-2023 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 PyRuamelYamlJinja2(PythonPackage):
|
||||
"""jinja2 pre and post-processor to update with YAML."""
|
||||
|
||||
homepage = "https://sourceforge.net/p/ruamel-yaml-jinja2/code/ci/default/tree"
|
||||
pypi = "ruamel.yaml.jinja2/ruamel.yaml.jinja2-0.2.7.tar.gz"
|
||||
|
||||
version("0.2.7", sha256="8449be29d9a157fa92d1648adc161d718e469f0d38a6b21e0eabb76fd5b3e663")
|
||||
|
||||
depends_on("py-setuptools", type="build")
|
||||
|
||||
# __init__.py
|
||||
depends_on("py-ruamel-yaml@0.16.1:", type=("build", "run"))
|
|
@ -16,18 +16,37 @@ class PyScikitBuild(PythonPackage):
|
|||
the setuptools Python module and CMake."""
|
||||
|
||||
homepage = "https://scikit-build.readthedocs.io/en/latest/"
|
||||
pypi = "scikit-build/scikit-build-0.15.0.tar.gz"
|
||||
pypi = "scikit-build/scikit_build-0.17.6.tar.gz"
|
||||
|
||||
maintainers("coreyjadams")
|
||||
|
||||
version("0.17.6", sha256="b51a51a36b37c42650994b5047912f59b22e3210b23e321f287611f9ef6e5c9d")
|
||||
version("0.15.0", sha256="e723cd0f3489a042370b9ea988bbb9cfd7725e8b25b20ca1c7981821fcf65fb9")
|
||||
version("0.12.0", sha256="f851382c469bcd9a8c98b1878bcfdd13b68556279d2fd9a329be41956ae5a7fe")
|
||||
version("0.11.1", sha256="da40dfd69b2456fad1349a894b90180b43712152b8a85d2a00f4ae2ce8ac9a5c")
|
||||
version("0.10.0", sha256="7342017cc82dd6178e3b19377389b8a8d1f8b429d9cdb315cfb1094e34a0f526")
|
||||
|
||||
depends_on("py-setuptools@28.0.0:", type=("build", "run"))
|
||||
depends_on("py-setuptools@42.0.0:", when="@0.15.0:", type=("build", "run"))
|
||||
depends_on("py-setuptools-scm+toml", when="@0.15.0:", type="build")
|
||||
depends_on("py-packaging", type=("build", "run"))
|
||||
depends_on("py-wheel@0.29.0:", type=("build", "run"))
|
||||
depends_on("py-hatchling", when="@0.17:", type="build")
|
||||
depends_on("py-hatch-fancy-pypi-readme", when="@0.17:", type="build")
|
||||
depends_on("py-hatch-vcs", when="@0.17:", type="build")
|
||||
depends_on("py-distro", when="@0.11:", type=("build", "run"))
|
||||
depends_on("py-packaging", type=("build", "run"))
|
||||
depends_on("py-setuptools@42:", when="@0.15:", type=("build", "run"))
|
||||
depends_on("py-setuptools@28:", type=("build", "run"))
|
||||
depends_on("py-tomli", when="@0.17: ^python@:3.10", type=("build", "run"))
|
||||
depends_on("py-typing-extensions@3.7:", when="@0.17: ^python@:3.7", type=("build", "run"))
|
||||
depends_on("py-wheel@0.32:", when="@0.17:", type=("build", "run"))
|
||||
depends_on("py-wheel@0.29:", type=("build", "run"))
|
||||
|
||||
# Historical dependencies
|
||||
depends_on("py-setuptools-scm+toml", when="@0.15", type="build")
|
||||
|
||||
def url_for_version(self, version):
|
||||
url = (
|
||||
"https://files.pythonhosted.org/packages/source/s/scikit-build/scikit{}build-{}.tar.gz"
|
||||
)
|
||||
if version >= Version("0.17"):
|
||||
separator = "_"
|
||||
else:
|
||||
separator = "-"
|
||||
return url.format(separator, version)
|
||||
|
|
|
@ -13,6 +13,8 @@ class PySemver(PythonPackage):
|
|||
homepage = "https://semver.org/"
|
||||
pypi = "semver/semver-2.8.1.tar.gz"
|
||||
|
||||
version("3.0.1", sha256="9ec78c5447883c67b97f98c3b6212796708191d22e4ad30f4570f840171cbce1")
|
||||
version("2.8.1", sha256="5b09010a66d9a3837211bb7ae5a20d10ba88f8cb49e92cb139a69ef90d5060d8")
|
||||
|
||||
depends_on("py-setuptools", type="build")
|
||||
depends_on("py-setuptools-scm", when="@3:", type="build")
|
||||
|
|
Loading…
Reference in a new issue