py-build: add new package (#27270)

This commit is contained in:
Adam J. Stewart 2021-11-15 03:48:43 -06:00 committed by GitHub
parent d9a687af45
commit ee8f46e826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# Copyright 2013-2021 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 import *
class PyBuild(PythonPackage):
"""A simple, correct PEP517 package builder."""
homepage = "https://github.com/pypa/build"
pypi = "build/build-0.7.0.tar.gz"
version('0.7.0', sha256='1aaadcd69338252ade4f7ec1265e1a19184bf916d84c9b7df095f423948cb89f')
depends_on('python@3.6:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-packaging@19:', type=('build', 'run'))
depends_on('py-pep517@0.9.1:', type=('build', 'run'))
depends_on('py-tomli@1:', type=('build', 'run'))
depends_on('py-colorama', when='platform=windows', type=('build', 'run'))
depends_on('py-importlib-metadata@0.22:', when='^python@:3.7', type=('build', 'run'))

View File

@ -0,0 +1,20 @@
# Copyright 2013-2021 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 import *
class PyPep517(PythonPackage):
"""Wrappers to build Python packages using PEP 517 hooks."""
homepage = "https://github.com/pypa/pep517"
pypi = "pep517/pep517-0.12.0.tar.gz"
version('0.12.0', sha256='931378d93d11b298cf511dd634cf5ea4cb249a28ef84160b3247ee9afb4e8ab0')
depends_on('py-toml', when='^python@:3.5', type=('build', 'run'))
depends_on('py-importlib-metadata', when='^python@:3.7', type=('build', 'run'))
depends_on('py-zipp', when='^python@:3.7', type=('build', 'run'))
depends_on('py-tomli@1.1:', when='^python@3.6:', type=('build', 'run'))