summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2021-07-06 01:40:12 -0500
committerGitHub <noreply@github.com>2021-07-06 08:40:12 +0200
commit115c39e76238df933c7a58ed2710fedf146ea106 (patch)
tree7319eea41e745ce20f5103ab98ca0f7d84cf387e /var
parentb8f1bd407e4d2b1f58a5a469528a40affb53ada1 (diff)
downloadspack-115c39e76238df933c7a58ed2710fedf146ea106.tar.gz
spack-115c39e76238df933c7a58ed2710fedf146ea106.tar.bz2
spack-115c39e76238df933c7a58ed2710fedf146ea106.tar.xz
spack-115c39e76238df933c7a58ed2710fedf146ea106.zip
py-black: add v21.6b0 (#24715)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-black/package.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-black/package.py b/var/spack/repos/builtin/packages/py-black/package.py
index b15f52f8da..05d8330b56 100644
--- a/var/spack/repos/builtin/packages/py-black/package.py
+++ b/var/spack/repos/builtin/packages/py-black/package.py
@@ -15,13 +15,18 @@ class PyBlack(PythonPackage):
homepage = "https://github.com/psf/black"
pypi = "black/black-20.8b1.tar.gz"
+ version('21.6b0', sha256='dc132348a88d103016726fe360cb9ede02cecf99b76e3660ce6c596be132ce04')
+ version('21.4b0', sha256='915d916c48646dbe8040d5265cff7111421a60a3dfe7f7e07273176a57c24a34')
version('20.8b1', sha256='1c02557aa099101b9d21496f8a914e9ed2222ef70336404eeeac8edba836fbea')
version('19.3b0', sha256='68950ffd4d9169716bcb8719a56c07a2f4485354fec061cdd5910aa07369731c')
version('18.9b0', sha256='e030a9a28f542debc08acceb273f228ac422798e5215ba2a791a6ddeaaca22a5')
+ variant('colorama', default=False, description='enable colorama support')
variant('d', default=False, description='enable blackd HTTP server')
+ variant('python2', default=False, description='enable python 2 formatting support')
- depends_on('python@3.6.0:')
+ depends_on('python@3.6.0:', type=('build', 'run'))
+ depends_on('python@3.6.2:', when='@21:', type=('build', 'run'))
# Needs setuptools at runtime so that `import pkg_resources` succeeds
# See #8843 and #8689 for examples of setuptools added as a runtime dep
depends_on('py-setuptools', type=('build', 'run'))
@@ -33,14 +38,21 @@ class PyBlack(PythonPackage):
depends_on('py-appdirs', type=('build', 'run'))
depends_on('py-toml@0.9.4:', type=('build', 'run'))
depends_on('py-toml@0.10.1:', when='@20.8b1:', type=('build', 'run'))
- depends_on('py-typed-ast@1.4.0:', when='@19.10b0:', type=('build', 'run'))
+ depends_on('py-typed-ast@1.4.0:', when='@19.10b0:20', type=('build', 'run'))
+ depends_on('py-typed-ast@1.4.2:', when='@21: ^python@:3.7.999', type=('build', 'run'))
depends_on('py-regex@2020.1.8:', when='@20.8b0:', type=('build', 'run'))
depends_on('py-pathspec@0.6:0.999', when='@19.10b0:', type=('build', 'run'))
+ depends_on('py-pathspec@0.8.1:0.999', when='@21.6:', type=('build', 'run'))
depends_on('py-dataclasses@0.6:', when='@20.8b0:^python@:3.6', type=('build', 'run'))
- depends_on('py-typing-extensions@3.7.4:', when='@20.8b0:', type=('build', 'run'))
+ depends_on('py-typing-extensions@3.7.4:', when='@20.8b0:20.999', type=('build', 'run'))
+ depends_on('py-typing-extensions@3.7.4:', when='@21: ^python@:3.7.999', type=('build', 'run'))
depends_on('py-mypy-extensions@0.4.3:', when='@20.8b0:', type=('build', 'run'))
+ depends_on('py-colorama@0.4.3:', when='+colorama', type=('build', 'run'))
depends_on('py-aiohttp@3.3.2:', when='+d', type=('build', 'run'))
+ depends_on('py-aiohttp@3.6.0:', when='@21.6: +d', type=('build', 'run'))
depends_on('py-aiohttp-cors', when='+d', type=('build', 'run'))
+ depends_on('py-aiohttp-cors@0.4.0:', when='@21.6: +d', type=('build', 'run'))
+ depends_on('py-typed-ast@1.4.2:', when='+python2', type=('build', 'run'))
@property
def import_modules(self):