From 79dd3432e023e4d5e3b03693515e6ed8957229b9 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Tue, 15 Oct 2024 15:04:47 +0100 Subject: [PATCH] add space in pyproject to trigger new cache --- .github/workflows/ci.yml | 24 ++++++++++++------------ pyproject.toml | 1 + 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb126956..1676d07d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,12 +44,12 @@ jobs: # Restore cached virtualenv, if available # * The pyproject.toml hash is part of the cache key, invalidating # the cache if the file changes -# - name: Restore cached virtualenv -# id: restore-cache -# uses: actions/cache/restore@v3 -# with: -# path: ./venv -# key: ${{ runner.os }}-venv-${{ hashFiles('**/pyproject.toml') }} + - name: Restore cached virtualenv + id: restore-cache + uses: actions/cache/restore@v3 + with: + path: ./venv + key: ${{ runner.os }}-venv-${{ hashFiles('**/pyproject.toml') }} # Should mirror the build-venv stage in the Containerfile - name: Build venv @@ -85,12 +85,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - # Restore cached virtualenv -# - name: Restore cached virtualenv -# uses: actions/cache/restore@v3 -# with: -# path: ./venv -# key: ${{ runner.os }}-venv-${{ hashFiles('**/pyproject.toml') }} +# Restore cached virtualenv + - name: Restore cached virtualenv + uses: actions/cache/restore@v3 + with: + path: ./venv + key: ${{ runner.os }}-venv-${{ hashFiles('**/pyproject.toml') }} - name: Install package run: ./venv/bin/python -m pip install -q . diff --git a/pyproject.toml b/pyproject.toml index a90902fb..8d98a8b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,6 @@ # --- PROJECT CONFIGURATION --- # + [build-system] requires = ["setuptools>=67", "wheel", "setuptools-git-versioning>=1.13.3"] build-backend = "setuptools.build_meta"