Skip to content

Commit

Permalink
feat: drop Python 3.10 and add Python 3.12 (#23)
Browse files Browse the repository at this point in the history
### Summary of Changes

* Remove support for Python 3.10
* Add support for Python 3.12
  • Loading branch information
lars-reimann authored Oct 3, 2023
1 parent 0edcb99 commit 091826d
Show file tree
Hide file tree
Showing 7 changed files with 323 additions and 353 deletions.
2 changes: 1 addition & 1 deletion .github/linters/.ruff.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ignore-init-module-imports = true
line-length = 120
target-version = "py310"
target-version = "py311"

select = [
"F",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
uses: lars-reimann/.github/.github/workflows/poetry-codecov-reusable.yml@main
with:
working-directory: .
python-version: ${{ matrix.python-version }}
module-name: safeds_stubgen
coverage: ${{ matrix.python-version == '3.10' }}
coverage: ${{ matrix.python-version == '3.11' }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
uses: lars-reimann/.github/.github/workflows/poetry-codecov-reusable.yml@main
with:
working-directory: .
python-version: ${{ matrix.python-version }}
module-name: safeds_stubgen
coverage: ${{ matrix.python-version == '3.10' }}
coverage: ${{ matrix.python-version == '3.11' }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
uses: lars-reimann/.github/.github/workflows/poetry-pypi-reusable.yml@main
with:
working-directory: .
python-version: "3.10"
python-version: "3.11"
secrets:
GITHUB_PAT: ${{ secrets.PAT }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
660 changes: 315 additions & 345 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ packages = [
generate-safeds-stubs = "safeds_stubgen.main:main"

[tool.poetry.dependencies]
python = "^3.10,<3.12"
python = "^3.11,<3.13"
mypy = "^1.5.1"

[tool.poetry.group.dev.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: '3.10'
python: '3.11'
commands:
- pip install poetry
- poetry config virtualenvs.create false
Expand Down

0 comments on commit 091826d

Please sign in to comment.