py-enum-tools: add new package and dependencies (#39672)

* Adds package 'enum-tools'

* Fixes syntax

* py-enum-tools: update pypi link and dependencies

* py-whey: add new package

* py-consolekit: add new package

* py-shippinglabel: add new package

* py-project-parser: add new package

* py-handy-archives: add new package

* py-domdf-python-tools: add new package

* py-dom-toml: add new package

* py-dist-meta: add new package

* py-deprecation-alias: add new package

* py-pygments: add versions 2.16.0 and 2.16.1

* py-mistletoe: add new package

* py-apeye: add new package

* py-apeye-core: add new package

* Fix dependencies' names and remove redundancies

* Fix style

* py-enum-tools: fix dependencies

* py-mistletoe: update dependencies

* Apply suggestions from code review

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

* py-whey: fix dependencies

* py-whey: fix style

* py-apeye: fix dependencies

---------

Co-authored-by: Fábio de Andrade Barboza <f168817@dac.unicamp.br>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Fábio de Andrade Barboza 2023-09-11 17:12:46 -03:00 committed by GitHub
parent 3f686734ab
commit 873652a33e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 305 additions and 0 deletions

View file

@ -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 PyApeyeCore(PythonPackage):
"""Core (offline) functionality for the apeye library."""
homepage = "https://github.com/domdfcoding/apeye-core"
pypi = "apeye_core/apeye_core-1.1.4.tar.gz"
version("1.1.4", sha256="72bb89fed3baa647cb81aa28e1d851787edcbf9573853b5d2b5f87c02f50eaf5")
depends_on("py-hatch-requirements-txt", type="build")
depends_on("py-hatchling", type="build")
depends_on("py-domdf-python-tools@2.6:", type=("build", "run"))
depends_on("py-idna@2.5:", type=("build", "run"))

View file

@ -0,0 +1,22 @@
# 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 PyApeye(PythonPackage):
"""Handy tools for working with URLs and APIs."""
homepage = "https://github.com/domdfcoding/apeye"
pypi = "apeye/apeye-1.4.1.tar.gz"
version("1.4.1", sha256="14ea542fad689e3bfdbda2189a354a4908e90aee4bf84c15ab75d68453d76a36")
depends_on("py-flit-core@3.2:3", type="build")
depends_on("py-apeye-core@1:", type=("build", "run"))
depends_on("py-domdf-python-tools@2.6:", type=("build", "run"))
depends_on("py-platformdirs@2.3:", type=("build", "run"))
depends_on("py-requests@2.24:", type=("build", "run"))

View file

@ -0,0 +1,25 @@
# 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 PyConsolekit(PythonPackage):
"""Additional utilities for click."""
homepage = "https://github.com/domdfcoding/consolekit"
pypi = "consolekit/consolekit-1.5.1.tar.gz"
version("1.5.1", sha256="55ea43e226863e1d618ec9b860c9842d84249d895c3376c03b158d8f3a335626")
depends_on("py-flit-core@3.2:3", type="build")
depends_on("py-click@7.1.2:", type=("build", "run"))
depends_on("py-colorama@0.4.3:", type=("build", "run"), when="^python@:3.9 platform=windows")
depends_on("py-deprecation-alias@0.1.1:", type=("build", "run"))
depends_on("py-domdf-python-tools@2.6:", type=("build", "run"))
depends_on("py-mistletoe@0.7.2:", type=("build", "run"))
depends_on("py-typing-extensions@3.10:", type=("build", "run"))
conflicts("^py-typing-extensions@3.10.0.1")

View file

@ -0,0 +1,22 @@
# 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 PyDeprecationAlias(PythonPackage):
"""Wrapper providing support for deprecated aliases."""
homepage = "https://github.com/domdfcoding/deprecation-alias"
pypi = "deprecation_alias/deprecation-alias-0.3.2.tar.gz"
version("0.3.2", sha256="1c9e1a5ddd0a276a1a18e7a4f9d56b53232217491c4549eaa45e51753013ce76")
depends_on("py-wheel@0.34.2:", type="build")
depends_on("py-setuptools@40.6:", type="build")
conflicts("^py-setuptools@61")
depends_on("py-deprecation@2.1:", type=("build", "run"))
depends_on("py-packaging@20.4:", type=("build", "run"))

View file

@ -0,0 +1,23 @@
# 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 PyDistMeta(PythonPackage):
"""Parse and create Python distribution metadata."""
homepage = "https://github.com/repo-helper/dist-meta"
pypi = "dist_meta/dist-meta-0.8.0.tar.gz"
version("0.8.0", sha256="541d51f75b7f580c80d8d7b23112d0b4bf3edbc9442e425a7c4fcd75f4138551")
depends_on("py-wheel@0.34.2:", type="build")
depends_on("py-setuptools@40.6:", type="build")
conflicts("^py-setuptools@61")
depends_on("py-domdf-python-tools@3.1:", type=("build", "run"))
depends_on("py-handy-archives@0.1:", type=("build", "run"))
depends_on("py-packaging@20.9:", type=("build", "run"))

View file

@ -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 PyDomToml(PythonPackage):
"""Dom's tools for Tom's Obvious, Minimal Language."""
homepage = "https://github.com/domdfcoding/dom_toml"
pypi = "dom_toml/dom_toml-0.6.1.tar.gz"
version("0.6.1", sha256="a0bfc204ae32c72ed36e526dce56108a3b20741ac3c055207206ce3b2f302868")
depends_on("py-flit-core@3.2:3", type="build")
depends_on("py-domdf-python-tools@2.8:", type=("build", "run"))
depends_on("py-toml@0.10.2:", type=("build", "run"))

View file

@ -0,0 +1,23 @@
# 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 PyDomdfPythonTools(PythonPackage):
"""Helpful functions for Python"""
homepage = "https://github.com/domdfcoding/domdf_python_tools"
pypi = "domdf_python_tools/domdf_python_tools-3.6.1.tar.gz"
version("3.6.1", sha256="acc04563d23bce4d437dd08af6b9bea788328c412772a044d8ca428a7ad861be")
depends_on("py-wheel@0.34.2:", type="build")
depends_on("py-setuptools@40.6:", type="build")
conflicts("^py-setuptools@61")
depends_on("py-importlib-metadata@3.6:", type=("build", "run"), when="^python@:3.8")
depends_on("py-natsort@7.0.1:", type=("build", "run"))
depends_on("py-typing-extensions@3.7.4.1:", type=("build", "run"))

View file

@ -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 PyEnumTools(PythonPackage):
"""Tools to expand Python's enum module."""
homepage = "https://github.com/domdfcoding/enum_tools"
pypi = "enum_tools/enum_tools-0.10.0.tar.gz"
version("0.10.0", sha256="777dc3cfb4314780bb9ca2460b518be58c3f29e13bd77b33badead4c2c136976")
depends_on("py-whey", type="build")
depends_on("py-pygments@2.6.1:", type=("build", "run"))
depends_on("py-typing-extensions@3.7.4.3:", type=("build", "run"))

View file

@ -0,0 +1,18 @@
# 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 PyHandyArchives(PythonPackage):
"""Some handy archive helpers for Python."""
homepage = "https://github.com/domdfcoding/handy-archives"
pypi = "handy_archives/handy_archives-0.2.0.tar.gz"
version("0.2.0", sha256="fba21101fd9e29d5e3b72823261aaae06b9350686f0d2067786d64dce73eb3f6")
depends_on("py-flit-core@3.2:3", type="build")

View file

@ -0,0 +1,19 @@
# 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 PyMistletoe(PythonPackage):
"""A fast, extensible Markdown parser in pure Python."""
homepage = "https://github.com/miyuchina/mistletoe"
pypi = "mistletoe/mistletoe-1.2.1.tar.gz"
version("1.2.1", sha256="7d0c1ab3747047d169f9fc4b925d1cba3f5c13eaf0b90c365b72e47e59d00a02")
depends_on("python@3.5:3", type=("build", "run"))
depends_on("py-setuptools", type="build")

View file

@ -13,6 +13,8 @@ class PyPygments(PythonPackage):
pypi = "Pygments/Pygments-2.4.2.tar.gz"
git = "https://github.com/pygments/pygments.git"
version("2.16.1", sha256="1daff0494820c69bc8941e407aa20f577374ee88364ee10a98fdbe0aece96e29")
version("2.16.0", sha256="4f6df32f21dca07a54a0a130bda9a25d2241e9e0a206841d061c85a60cc96145")
version("2.15.1", sha256="8ace4d3c1dd481894b2005f560ead0f9f19ee64fe983366be1a21e171d12775c")
version("2.13.0", sha256="56a8508ae95f98e2b9bdf93a6be5ae3f7d8af858b43e02c5a2ff083726be40c1")
version("2.12.0", sha256="5eb116118f9612ff1ee89ac96437bb6b49e8f04d8a13b514ba26f620208e26eb")

View file

@ -0,0 +1,31 @@
# 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 PyPyprojectParser(PythonPackage):
"""Parser for 'pyproject.toml'"""
homepage = "https://github.com/repo-helper/pyproject-parser"
pypi = "pyproject_parser/pyproject-parser-0.9.1.tar.gz"
version("0.9.1", sha256="fa0b2ff78bc95788b08d00e1aafa66d3f7f3ab693f19d9c2e23e20000a69fd9b")
depends_on("py-wheel@0.34.2:", type="build")
depends_on("py-setuptools@40.6:", type="build")
conflicts("^py-setuptools@61")
depends_on("py-apeye-core@1:", type=("build", "run"))
depends_on("py-attrs@20.3:", type=("build", "run"))
depends_on("py-dom-toml@0.4:", type=("build", "run"))
depends_on("py-domdf-python-tools@2.8:", type=("build", "run"))
depends_on("py-natsort@7.1.1:", type=("build", "run"))
depends_on("py-packaging@20.9:", type=("build", "run"))
depends_on("py-shippinglabel@1:", type=("build", "run"))
depends_on("py-toml@0.10.2:", type=("build", "run"))
depends_on("py-tomli@1.2.3:", type=("build", "run"), when="^python@:3.10")
depends_on("py-typing-extensions@3.7.4.3:", type=("build", "run"))
conflicts("^py-typing-extensions@4.7.0")

View file

@ -0,0 +1,27 @@
# 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 PyShippinglabel(PythonPackage):
"""Utilities for handling packages."""
homepage = "https://github.com/domdfcoding/shippinglabel"
pypi = "shippinglabel/shippinglabel-1.5.0.tar.gz"
version("1.5.0", sha256="b2332bf29853e29f877dab21f17f2a8632fd2b48f5f32a6fa0b254a6fdd0a451")
depends_on("py-wheel@0.34.2:", type="build")
depends_on("py-setuptools@40.6:", type="build")
conflicts("^py-setuptools@61")
depends_on("py-apeye@1:", type=("build", "run"))
depends_on("py-dist-meta@0.1.2:", type=("build", "run"))
depends_on("py-dom-toml@0.2.2:", type=("build", "run"))
depends_on("py-domdf-python-tools@3.1:", type=("build", "run"))
depends_on("py-packaging@20.9:", type=("build", "run"))
depends_on("py-platformdirs@2.3:", type=("build", "run"))
depends_on("py-typing-extensions@3.7.4.3:", type=("build", "run"))

View file

@ -0,0 +1,32 @@
# 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 PyWhey(PythonPackage):
"""A simple Python wheel builder for simple projects."""
homepage = "https://github.com/repo-helper/whey"
pypi = "whey/whey-0.0.24.tar.gz"
version("0.0.24", sha256="411905d85aa8aa239733818894e08dc20b682f0a3614f942aa35b430db568aa2")
depends_on("py-wheel@0.34.2", type="build")
depends_on("py-setuptools@40.6:", type="build")
conflicts("^py-setuptools@61")
depends_on("py-click@7.1.2:", type=("build", "run"))
depends_on("py-consolekit@1.4.1:", type=("build", "run"))
depends_on("py-dist-meta@0.1:", type=("build", "run"))
depends_on("py-dom-toml@0.4:", type=("build", "run"))
depends_on("py-domdf-python-tools@2.8:", type=("build", "run"))
depends_on("py-handy-archives@0.1:", type=("build", "run"))
depends_on("py-natsort@7.1.1:", type=("build", "run"))
depends_on("py-packaging@20.9:", type=("build", "run"))
depends_on("py-pyproject-parser@0.6:", type=("build", "run"))
depends_on("py-shippinglabel@0.16:", type=("build", "run"))