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:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v3
with:

View File

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

View File

@ -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",
]

View File

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