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 cdee7e2da7.

* 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 56f839e2b4.

* Add back actions/setup-python to bare metal tests

* Only run uv lock workflow on dependabot PRs
This commit is contained in:
Bruno Alla 2024-10-12 17:46:45 +01:00 committed by GitHub
parent 822c1c0327
commit 931e300b63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 3 deletions

View File

@ -98,6 +98,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv - name: Install uv
uses: astral-sh/setup-uv@v3 uses: astral-sh/setup-uv@v3
with: with:

View File

@ -11,6 +11,7 @@ permissions:
jobs: jobs:
lock: lock:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
GH_PAT: ${{ secrets.GH_PAT }} GH_PAT: ${{ secrets.GH_PAT }}

View File

@ -14,7 +14,7 @@ license = { text = "BSD" }
authors = [ authors = [
{ name = "Daniel Roy Greenfeld", email = "pydanny@gmail.com" }, { name = "Daniel Roy Greenfeld", email = "pydanny@gmail.com" },
] ]
requires-python = ">=3.12" requires-python = ">=3.12,<3.13"
classifiers = [ classifiers = [
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
"Environment :: Console", "Environment :: Console",
@ -25,7 +25,6 @@ classifiers = [
"Programming Language :: Python", "Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development", "Topic :: Software Development",
] ]

View File

@ -1,5 +1,5 @@
version = 1 version = 1
requires-python = ">=3.12" requires-python = "==3.12.*"
[[package]] [[package]]
name = "alabaster" name = "alabaster"