From 374f1a62e2b388fcac60aa25b3c5c5f8b18871cf Mon Sep 17 00:00:00 2001 From: Andrew Gaspar Date: Fri, 5 Jun 2020 19:25:42 -0600 Subject: py-flake8: add version 2.8.2 (#16959) * py-flake8: add version 3.8.2 * This version depends on different versions of py-pycodestyle and py-pyflakes * When built for python@:3.7, this depends on the py-importlib-metadata backport library * py-pycodestyle: add version 2.6.0 * py-pyflakes: add version 2.2.0 --- var/spack/repos/builtin/packages/py-flake8/package.py | 18 ++++++++++++------ .../repos/builtin/packages/py-pycodestyle/package.py | 1 + .../repos/builtin/packages/py-pyflakes/package.py | 1 + 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/var/spack/repos/builtin/packages/py-flake8/package.py b/var/spack/repos/builtin/packages/py-flake8/package.py index 462758ddf4..4c585ee755 100644 --- a/var/spack/repos/builtin/packages/py-flake8/package.py +++ b/var/spack/repos/builtin/packages/py-flake8/package.py @@ -13,6 +13,7 @@ class PyFlake8(PythonPackage): homepage = "https://github.com/PyCQA/flake8" url = "https://github.com/PyCQA/flake8/archive/3.7.8.tar.gz" + version('3.8.2', sha256='ae9b00ddaa2bb7fa69796ac73ba7607fcf06d79a8b777fa12ba5abef1e770491') version('3.7.8', sha256='201720797dc9691dd349819994e4a0bc281b70ee2ff77b0c928bb1d3c5aa9810') version('3.7.7', sha256='b3f76b02351008dc772276e74b09dd3d4b5c567ff8c6ab573352cb8fd7007444') version('3.5.0', sha256='60ffe2fdacce4ebe7cadc30f310cf1edfd8ff654ef79525d90cf0756e69de44e') @@ -31,12 +32,16 @@ class PyFlake8(PythonPackage): # http://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies # http://flake8.pycqa.org/en/latest/internal/releases.html#releasing-flake8 + # Flake8 3.8.X + depends_on('py-pycodestyle@2.6.0:2.6.999', when='@3.8.0:3.8.999', type=('build', 'run')) + depends_on('py-pyflakes@2.2.0:2.2.999', when='@3.8.0:3.8.999', type=('build', 'run')) + # Flake8 3.7.X # FIXME @0.3.0:0.3.999 causes concretization to hang - depends_on('py-entrypoints@0.3', when='@3.7.0:3.7.999', type=('build', 'run')) + depends_on('py-entrypoints@0.3', when='@3.7.0:3.8.999', type=('build', 'run')) depends_on('py-pyflakes@2.1.0:2.1.999', when='@3.7.0:3.7.999', type=('build', 'run')) depends_on('py-pycodestyle@2.5.0:2.5.999', when='@3.7.0:3.7.999', type=('build', 'run')) - depends_on('py-mccabe@0.6.0:0.6.999', when='@3.7.0:3.7.999', type=('build', 'run')) + depends_on('py-mccabe@0.6.0:0.6.999', when='@3.7.0:3.8.999', type=('build', 'run')) # Flake8 3.5.X depends_on('py-pyflakes@1.5:1.6', when='@3.5.0:3.5.999', type=('build', 'run')) @@ -54,10 +59,11 @@ class PyFlake8(PythonPackage): depends_on('py-mccabe@0.2.1:0.4', when='@2.5.0:2.5.999', type=('build', 'run')) # Python version-specific backports - depends_on('py-enum34', when='@3.0.0: ^python@:3.3', type=('build', 'run')) - depends_on('py-typing', when='@3.7.0: ^python@:3.4', type=('build', 'run')) - depends_on('py-configparser', when='@3.0.0: ^python@:3.1', type=('build', 'run')) - depends_on('py-functools32', when='@3.7.4: ^python@:3.1', type=('build', 'run')) + depends_on('py-importlib-metadata', when='@3.8.0: ^python@:3.7', type=('build', 'run')) + depends_on('py-enum34', when='@3.0.0: ^python@:3.3', type=('build', 'run')) + depends_on('py-typing', when='@3.7.0: ^python@:3.4', type=('build', 'run')) + depends_on('py-configparser', when='@3.0.0: ^python@:3.1', type=('build', 'run')) + depends_on('py-functools32', when='@3.7.4: ^python@:3.1', type=('build', 'run')) def patch(self): """Filter pytest-runner requirement out of setup.py.""" diff --git a/var/spack/repos/builtin/packages/py-pycodestyle/package.py b/var/spack/repos/builtin/packages/py-pycodestyle/package.py index 6f9da670f8..48e833ec2f 100644 --- a/var/spack/repos/builtin/packages/py-pycodestyle/package.py +++ b/var/spack/repos/builtin/packages/py-pycodestyle/package.py @@ -13,6 +13,7 @@ class PyPycodestyle(PythonPackage): homepage = "https://github.com/PyCQA/pycodestyle" url = "https://github.com/PyCQA/pycodestyle/archive/2.0.0.tar.gz" + version('2.6.0', sha256='08347fbc48cc92afd33117c1e8af9b99b292a4e5889f6b776f402e062fc39c97') version('2.5.0', sha256='a603453c07e8d8e15a43cf062aa7174741b74b4a27b110f9ad03d74d519173b5') version('2.3.1', sha256='e9fc1ca3fd85648f45c0d2e33591b608a17d8b9b78e22c5f898e831351bacb03') version('2.3.0', sha256='ac2a849987316521a56814b5618668d36cd5f3b04843803832a15b93b8383a50') diff --git a/var/spack/repos/builtin/packages/py-pyflakes/package.py b/var/spack/repos/builtin/packages/py-pyflakes/package.py index 156db2f0da..402a6c525b 100644 --- a/var/spack/repos/builtin/packages/py-pyflakes/package.py +++ b/var/spack/repos/builtin/packages/py-pyflakes/package.py @@ -12,6 +12,7 @@ class PyPyflakes(PythonPackage): homepage = "https://github.com/PyCQA/pyflakes" url = "https://github.com/PyCQA/pyflakes/archive/2.1.1.tar.gz" + version('2.2.0', sha256='4a6927b9ca7fc19817176d54b3ee2ee4202f064febdee8624ee8340303cfda7b') version('2.1.1', sha256='2c98f07a9dd57d9f33561f6b54a64a766cdf79a3c869bd8c07b7fe03094fb8c3') version('2.1.0', sha256='6cd8775b6430daad386c0de00dfbc27ce2c24468cdcc4d3da41e4aa39d8ce167') version('1.6.0', sha256='f9c72359e05bf8dc27eaaee8cdcae464497f2ccadae87ac6517605ba6040ec99') -- cgit v1.2.3-70-g09d2