From 711d026d5b83fc70e78d2b96338e01dbb77ab16d Mon Sep 17 00:00:00 2001 From: Olivier Ramonat Date: Mon, 21 Oct 2024 10:12:47 +0200 Subject: [PATCH 1/2] Run additonal checks with the latest Python version on GitHub --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 93f425de..3a237d91 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -39,7 +39,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: 3.12 - name: Install Tox and any other packages run: | python -m pip install -U pip @@ -55,5 +55,5 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: 3.12 - uses: pre-commit/action@v2.0.0 From b73b0e6a2a9599238b0c7e7607cd3271117b60b8 Mon Sep 17 00:00:00 2001 From: Olivier Ramonat Date: Wed, 23 Oct 2024 12:21:00 +0200 Subject: [PATCH 2/2] Install distro on macOS when running mypy Add the dependency only in the `check` optional dependency list given that `distro` is not supported yet on macOS. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index f6390d1d..4dc5e597 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,6 +71,7 @@ check = [ "types-PyYAML", "types-requests", "types-setuptools", + "distro; sys_platform=='darwin'", # for type checking ] [project.scripts]