From 16bfddf24264cd1d4418a6a6796ddfdff2848c8a Mon Sep 17 00:00:00 2001 From: Rikard Gillemyr Date: Tue, 16 Apr 2024 23:49:02 +0200 Subject: [PATCH 1/2] Upgrade argcomplete -> 3.3.0 This version contains a fix for the API changes in argcomplete in Python 3.11.9 and 3.11.3. Work on #138. --- requirements.in | 2 +- requirements.txt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/requirements.in b/requirements.in index 5f1f1e8..b5f57ef 100644 --- a/requirements.in +++ b/requirements.in @@ -1,5 +1,5 @@ # Core -argcomplete==3.2.3 +argcomplete==3.3.0 dill==0.3.8 graph-theory==2023.7.6 msgspec==0.18.6 diff --git a/requirements.txt b/requirements.txt index 73b02ab..5568876 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ # This file was autogenerated by uv via the following command: -# uv pip compile --generate-hashes requirements.in -argcomplete==3.2.3 \ - --hash=sha256:bf7900329262e481be5a15f56f19736b376df6f82ed27576fa893652c5de6c23 \ - --hash=sha256:c12355e0494c76a2a7b73e3a59b09024ca0ba1e279fb9ed6c1b82d5b74b6a70c +# uv pip compile --generate-hashes requirements.in --output-file requirements.txt +argcomplete==3.3.0 \ + --hash=sha256:c168c3723482c031df3c207d4ba8fa702717ccb9fc0bfe4117166c1f537b4a54 \ + --hash=sha256:fd03ff4a5b9e6580569d34b273f741e85cd9e072f3feeeee3eba4891c70eda62 dill==0.3.8 \ --hash=sha256:3ebe3c479ad625c4553aca177444d89b486b1d84982eeacded644afc0cf797ca \ --hash=sha256:c36ca9ffb54365bdd2f8eb3eff7d2a21237f8452b57ace88b1ac615b7e815bd7 From 083ebf571f2961eacc9bcd5a41b066a53dc62a25 Mon Sep 17 00:00:00 2001 From: Rikard Gillemyr Date: Tue, 16 Apr 2024 23:52:04 +0200 Subject: [PATCH 2/2] Lock Python versions Lock Python versions down to patch versions 3.11.9 and 3.12.3 for mise and the code_quality GitHub workflow. Have nox use versions locked to minor versions 3.11 and 3.12 in noxfile.py so that it will use the latest matching version that is installed. In the code_quality workflow, run nox with the explicit Python versions defined in the workflow. Closes #138. --- .github/workflows/code_quality.yml | 6 +++--- .mise.toml | 2 +- noxfile.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 752c229..47273ef 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -10,7 +10,7 @@ jobs: nox: strategy: matrix: - python_version: ["3.11.8", "3.12.2"] + python_version: ["3.11.9", "3.12.3"] nox_session: [tests, basics, examples] os: [ubuntu-latest, macos-latest, macos-14] install_uv: [0, 1] @@ -31,12 +31,12 @@ jobs: fi - name: Test with nox run: | - nox --python ${{ matrix.python_version }} --session ${{ matrix.nox_session }} -db ${{ matrix.install_uv == 1 && 'uv' || 'virtualenv' }} + nox -P ${{ matrix.python_version }} --session ${{ matrix.nox_session }} -db ${{ matrix.install_uv == 1 && 'uv' || 'virtualenv' }} pyright_and_ruff: strategy: matrix: - python_version: ["3.11.8", "3.12.2"] + python_version: ["3.11.9", "3.12.3"] runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v4 diff --git a/.mise.toml b/.mise.toml index 06a5d5f..6cdbf30 100644 --- a/.mise.toml +++ b/.mise.toml @@ -2,4 +2,4 @@ python_compile = true [tools] -python = ["3.12.2", "3.11.8"] +python = ["3.12.3", "3.11.9"] diff --git a/noxfile.py b/noxfile.py index 1a9207f..5dc44dd 100644 --- a/noxfile.py +++ b/noxfile.py @@ -3,7 +3,7 @@ nox.options.error_on_external_run = True nox.options.stop_on_first_error -python_versions = ["3.11.8", "3.12.2"] +python_versions = ["3.11", "3.12"] @nox.session(python=python_versions)