From 733aff2a5e2ff2e6c00c883a88c2c949d17f7427 Mon Sep 17 00:00:00 2001 From: Travis Thompson <102229498+trvto@users.noreply.github.com> Date: Thu, 25 Apr 2024 12:08:33 +0200 Subject: [PATCH] Use ${{github.workspace}} in constraint file path (#97) * use github workspace var * also fix in release.yml * try different way to import --- .github/workflows/nox-session.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- docs/build-docs | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nox-session.yml b/.github/workflows/nox-session.yml index bff14e5..d56c9b3 100644 --- a/.github/workflows/nox-session.yml +++ b/.github/workflows/nox-session.yml @@ -92,12 +92,12 @@ jobs: - name: Install Poetry run: | - pipx install --pip-args=--constraint=dev-tool-requirements.txt poetry + pipx install --pip-args=--constraint=${{ github.workspace }}/dev-tool-requirements.txt poetry poetry --version - name: Install Nox run: | - pipx install --pip-args=--constraint=dev-tool-requirements.txt nox + pipx install --pip-args=--constraint=${{ github.workspace }}/dev-tool-requirements.txt nox nox --version - name: Compute pre-commit cache key diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d4d5e7f..0b1a41c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,12 +51,12 @@ jobs: - name: Install Poetry run: | - pipx install --pip-args=--constraint=dev-tool-requirements.txt poetry + pipx install --pip-args=--constraint=${{ github.workspace }}/dev-tool-requirements.txt poetry poetry --version - name: Install Nox run: | - pipx install --pip-args=--constraint=dev-tool-requirements.txt nox + pipx install --pip-args=--constraint=${{ github.workspace }}/dev-tool-requirements.txt nox nox --version - name: Build wheel diff --git a/docs/build-docs b/docs/build-docs index 786d462..772e12a 100755 --- a/docs/build-docs +++ b/docs/build-docs @@ -1,6 +1,6 @@ #!/usr/bin/env python import argparse -import datetime +from datetime import date import shutil import subprocess import sys @@ -67,6 +67,8 @@ def build_module_docs() -> None: "-D", f"project=pytket-{MODULE}", "-D", + f"copyright={date.today().year} Cambridge Quantum Computing", + "-D", f"version={'.'.join(v[:2])}", "-D", f"release={'.'.join(v)}",