Skip to content

Commit

Permalink
feat: Official support for Python 3.12 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Oct 2, 2023
1 parent 4015640 commit 1794e7c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.12
- name: Install dependencies
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
- uses: actions/setup-python@v4
with:
cache: pip
python-version: "3.11"
python-version: "3.12"
allow-prereleases: true
- name: Install dependencies
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
Expand All @@ -54,7 +55,8 @@ jobs:
- uses: actions/setup-python@v4
with:
cache: pip
python-version: "3.11"
python-version: "3.12"
allow-prereleases: true
- name: Install dependencies
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
Expand All @@ -75,10 +77,10 @@ jobs:
os: ["ubuntu-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- python-version: "3.11"
- python-version: "3.12"
os: "windows-latest"

- python-version: "3.11"
- python-version: "3.12"
os: "macos-latest"
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -107,13 +109,14 @@ jobs:
runs-on: ubuntu-latest
needs: test
env:
PYTHON: "3.11"
PYTHON: "3.12"
HATCH_ENV: coverage
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON }}
allow-prereleases: true
- name: Install dependencies
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.26.3
rev: 0.27.0
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.291
rev: v0.0.292
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black
language_version: python3.11
Expand All @@ -50,6 +50,6 @@ repos:
- id: validate_manifest

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.1.0"
rev: "1.2.0"
hooks:
- id: pyproject-fmt
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Typing :: Typed",
Expand Down

0 comments on commit 1794e7c

Please sign in to comment.