summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2023-03-24 05:08:42 +0100
committerGitHub <noreply@github.com>2023-03-24 04:08:42 +0000
commitd0d5526110e64e883c7c76d64cc4b6f72494a93a (patch)
treedf1466e0537e47ba3f4d8561fa93f61fbdac4f20
parent729b8113cc91c6bc5600e131c253905eff596ede (diff)
downloadspack-d0d5526110e64e883c7c76d64cc4b6f72494a93a.tar.gz
spack-d0d5526110e64e883c7c76d64cc4b6f72494a93a.tar.bz2
spack-d0d5526110e64e883c7c76d64cc4b6f72494a93a.tar.xz
spack-d0d5526110e64e883c7c76d64cc4b6f72494a93a.zip
Add a pre-check job to bootstrap the environment on Python 3.6 (#36358)
* Add a pre-check job that just bootstrap the environment on Python 3.6 * py-typing-extension: restore information on Python 3.6 installation * Fix job name, try to run quick test on installed python packages
-rw-r--r--.github/workflows/valid-style.yml25
-rw-r--r--var/spack/repos/builtin/packages/py-typing-extensions/package.py3
2 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/valid-style.yml b/.github/workflows/valid-style.yml
index 485d0b4979..61a651cada 100644
--- a/.github/workflows/valid-style.yml
+++ b/.github/workflows/valid-style.yml
@@ -58,3 +58,28 @@ jobs:
with:
with_coverage: ${{ inputs.with_coverage }}
python_version: '3.11'
+ # Check that spack can bootstrap the development environment on Python 3.6 - RHEL8
+ bootstrap-dev-rhel8:
+ runs-on: ubuntu-latest
+ container: registry.access.redhat.com/ubi8/ubi
+ steps:
+ - name: Install dependencies
+ run: |
+ dnf install -y \
+ bzip2 curl file gcc-c++ gcc gcc-gfortran git gnupg2 gzip \
+ make patch tcl unzip which xz
+ - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # @v2
+ - name: Setup repo and non-root user
+ run: |
+ git --version
+ git fetch --unshallow
+ . .github/workflows/setup_git.sh
+ useradd spack-test
+ chown -R spack-test .
+ - name: Bootstrap Spack development environment
+ shell: runuser -u spack-test -- bash {0}
+ run: |
+ source share/spack/setup-env.sh
+ spack -d bootstrap now --dev
+ spack style -t black
+ spack unit-test -V
diff --git a/var/spack/repos/builtin/packages/py-typing-extensions/package.py b/var/spack/repos/builtin/packages/py-typing-extensions/package.py
index f5d48d4c8d..ea78bd2cfe 100644
--- a/var/spack/repos/builtin/packages/py-typing-extensions/package.py
+++ b/var/spack/repos/builtin/packages/py-typing-extensions/package.py
@@ -26,5 +26,8 @@ class PyTypingExtensions(PythonPackage):
version("3.7.2", sha256="fb2cd053238d33a8ec939190f30cfd736c00653a85a2919415cecf7dc3d9da71")
version("3.6.6", sha256="51e7b7f3dcabf9ad22eed61490f3b8d23d9922af400fe6656cb08e66656b701f")
+ # typing-extensions 4+ uses flit
+ depends_on("python@3.7:", when="@4.2:", type=("build", "run"))
+ depends_on("python@3.6:", when="@4:", type=("build", "run"))
depends_on("py-flit-core@3.4:3", when="@4:", type="build")
depends_on("py-setuptools", when="@:3", type="build")