From c8d95512fcb91a695782ad46cda22d1b2c91f4b5 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Mon, 12 Jun 2023 12:29:35 +0200 Subject: [PATCH] bootstrap: add minimum versions required for flake8 and pytest (#38322) --- .github/workflows/valid-style.yml | 1 + lib/spack/spack/bootstrap/environment.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/valid-style.yml b/.github/workflows/valid-style.yml index 8faa6a0747..6132ce76cf 100644 --- a/.github/workflows/valid-style.yml +++ b/.github/workflows/valid-style.yml @@ -81,6 +81,7 @@ jobs: shell: runuser -u spack-test -- bash {0} run: | source share/spack/setup-env.sh + spack debug report spack -d bootstrap now --dev spack style -t black spack unit-test -V diff --git a/lib/spack/spack/bootstrap/environment.py b/lib/spack/spack/bootstrap/environment.py index 36bbc0d260..158b7ecae3 100644 --- a/lib/spack/spack/bootstrap/environment.py +++ b/lib/spack/spack/bootstrap/environment.py @@ -175,12 +175,12 @@ def black_root_spec() -> str: def flake8_root_spec() -> str: """Return the root spec used to bootstrap flake8""" - return _root_spec("py-flake8") + return _root_spec("py-flake8@3.8.2:") def pytest_root_spec() -> str: """Return the root spec used to bootstrap flake8""" - return _root_spec("py-pytest") + return _root_spec("py-pytest@6.2.4:") def ensure_environment_dependencies() -> None: