From 931e300b63ba7bd31f52b5654ac721574343d1b5 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Sat, 12 Oct 2024 17:46:45 +0100 Subject: [PATCH] Pin Python version to 3.12 (#5456) * Pin Python version to 3.12 * Add back actions/setup-python to bare metal tests * Revert "Add back actions/setup-python to bare metal tests" This reverts commit cdee7e2da7e158b7caa318d7f2571f56ac87210a. * Update test_bare.sh to run commands via uv * Skip uv lock on PRs from forks * Revert "Update test_bare.sh to run commands via uv" This reverts commit 56f839e2b475b44b856a32ccf1437ae20e0a5404. * Add back actions/setup-python to bare metal tests * Only run uv lock workflow on dependabot PRs --- .github/workflows/ci.yml | 3 +++ .github/workflows/dependabot-uv-lock.yml | 1 + pyproject.toml | 3 +-- uv.lock | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da4a6575be..a2ef936fc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,6 +98,9 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" - name: Install uv uses: astral-sh/setup-uv@v3 with: diff --git a/.github/workflows/dependabot-uv-lock.yml b/.github/workflows/dependabot-uv-lock.yml index 7f8e864054..73fb88130c 100644 --- a/.github/workflows/dependabot-uv-lock.yml +++ b/.github/workflows/dependabot-uv-lock.yml @@ -11,6 +11,7 @@ permissions: jobs: lock: + if: ${{ github.actor == 'dependabot[bot]' }} runs-on: ubuntu-latest env: GH_PAT: ${{ secrets.GH_PAT }} diff --git a/pyproject.toml b/pyproject.toml index 65452e0bcb..f11948a401 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ license = { text = "BSD" } authors = [ { name = "Daniel Roy Greenfeld", email = "pydanny@gmail.com" }, ] -requires-python = ">=3.12" +requires-python = ">=3.12,<3.13" classifiers = [ "Development Status :: 4 - Beta", "Environment :: Console", @@ -25,7 +25,6 @@ classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development", ] diff --git a/uv.lock b/uv.lock index ed47daeff0..84927f1573 100644 --- a/uv.lock +++ b/uv.lock @@ -1,5 +1,5 @@ version = 1 -requires-python = ">=3.12" +requires-python = "==3.12.*" [[package]] name = "alabaster"