Skip to content

Commit

Permalink
feat: 3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Sep 28, 2023
1 parent 0ad489b commit 8d5996e
Show file tree
Hide file tree
Showing 7 changed files with 328 additions and 84 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,28 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
architecture: x64
allow-prereleases: true
- run: pip install nox==2023.4.22 nox-poetry poetry
- run: nox --session mypy-${{matrix.python-version}}

test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-version}}
architecture: x64
allow-prereleases: true
- run: pip install nox==2023.4.22 nox-poetry poetry
- run: nox --sessions test-${{matrix.python-version}}
4 changes: 1 addition & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ repos:
repo: https://github.com/psf/black
rev: 23.7.0
- hooks:
- additional_dependencies:
- black==23.7.0
id: blacken-docs
- id: blacken-docs
repo: https://github.com/asottile/blacken-docs
rev: 1.16.0

Expand Down
3 changes: 1 addition & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
from nox_poetry import session

nox.options.sessions = ["clean", "test", "report", "mypy"]
nox.options.reuse_existing_virtualenvs = True

python_versions = ["3.7", "3.8", "3.9", "3.10", "3.11"]
python_versions = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]


@session(python="python3.11")
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pysource-codegen = "pysource_codegen.__main__:run"

[tool.poetry.dependencies]
python = "^3.7"
astunparse = "^1.6.3"
astunparse = { version = "^1.6.3", python ="<3.9"}
typed-ast = "^1.5.5"
typing-extensions = "^4.7.1"

Expand All @@ -31,3 +31,6 @@ source = ["tests","pysource_codegen"]
parallel = true
branch = true
data_file = "$TOP/.coverage"

[tool.coverage.report]
exclude_lines = ["assert False", "raise NotImplemented"]
Loading

0 comments on commit 8d5996e

Please sign in to comment.