New package: py-griffe and new build backend: py-pdm-pep517 (#32335)

* New package: py-griffe and new build backend: py-pdm-pep517

* add pdm to build backend docs
This commit is contained in:
Ryan Marcellino 2022-08-24 00:23:23 -04:00 committed by GitHub
parent a2bdbfcd24
commit af4788fdef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 2 deletions

View file

@ -50,8 +50,9 @@ important to understand.
include `setuptools <https://setuptools.pypa.io/>`__,
`flit <https://flit.pypa.io/>`_,
`poetry <https://python-poetry.org/>`_,
`hatchling <https://hatch.pypa.io/latest/>`_, and
`meson <https://meson-python.readthedocs.io/>`_.
`hatchling <https://hatch.pypa.io/latest/>`_,
`meson <https://meson-python.readthedocs.io/>`_, and
`pdm <https://pdm.fming.dev/latest/>`_.
^^^^^^^^^^^
Downloading
@ -368,6 +369,16 @@ it uses the meson build system. Meson uses the default
See https://meson-python.readthedocs.io/en/latest/usage/start.html
for more information.
"""
pdm
"""
If the ``pyproject.toml`` lists ``pdm.pep517.api`` as the ``build-backend``,
it uses the PDM build system. PDM uses the default ``pyproject.toml``
keys to list dependencies.
See https://pdm.fming.dev/latest/ for more information.
""""""
wheels
""""""
@ -758,3 +769,4 @@ For more information on build backend tools, see:
* poetry: https://python-poetry.org/
* hatchling: https://hatch.pypa.io/latest/
* meson: https://meson-python.readthedocs.io/
* pdm: https://pdm.fming.dev/latest/

View file

@ -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 PyGriffe(PythonPackage):
"""Signatures for entire Python programs. Extract the structure, the frame,
the skeleton of your project, to generate API documentation or find
breaking changes in your API."""
homepage = "https://mkdocstrings.github.io/griffe/"
pypi = "griffe/griffe-0.22.0.tar.gz"
version("0.22.0", sha256="a3c25a2b7bf729ecee7cd455b4eff548f01c620b8f58a8097a800caad221f12e")
depends_on("python@3.7:", type=("build", "run"))
depends_on("py-pdm-pep517", type="build")
depends_on("py-cached-property", type=("build", "run"), when="^python@:3.7")

View file

@ -0,0 +1,18 @@
# 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 PyPdmPep517(PythonPackage):
"""A PEP 517 backend for PDM that supports PEP 621 metadata."""
homepage = "https://pdm.fming.dev/latest/"
pypi = "pdm-pep517/pdm-pep517-1.0.4.tar.gz"
version("1.0.4", sha256="392f8c2b47c6ec20550cb8e19e24b9dbd27373413f067b56ecd75f9767f93015")
depends_on("python@3.7:", type=("build", "run"))