Skip to content

Commit

Permalink
Add Python 3.12, Drop Python 3.9 (#59)
Browse files Browse the repository at this point in the history
* Drop python 3.9, add python 3.12

* Update the template project also to min 3.10
  • Loading branch information
klaasnicolaas authored Oct 25, 2023
1 parent 15f1dfe commit 885abdd
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 24 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@ Automatically generate release notes with the [Release Drafter](https://github.c

## Start developing on this template

The project uses [Poetry][poetry] for dependencies management and packaging. Make sure you have it installed in your development machine. To install the development dependencies in a virtual environment, type:
This Python template project relies on [Poetry][poetry] as its dependency manager,
providing comprehensive management and control over project dependencies.

You need at least:

- Python 3.10+
- [Poetry][poetry-install]

Install all packages, including all development requirements:

```shell
poetry install
Expand Down
16 changes: 3 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"
python = "^3.10"

[tool.poetry.group.dev.dependencies]
copier = "8.3.0"
Expand Down
2 changes: 1 addition & 1 deletion template/.github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

env:
DEFAULT_PYTHON: "3.9"
DEFAULT_PYTHON: "3.10"

jobs:
codespell:
Expand Down
2 changes: 1 addition & 1 deletion template/.github/workflows/release.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- published

env:
DEFAULT_PYTHON: "3.9"
DEFAULT_PYTHON: "3.10"

jobs:
release:
Expand Down
4 changes: 2 additions & 2 deletions template/.github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:
workflow_dispatch:

env:
DEFAULT_PYTHON: "3.9"
DEFAULT_PYTHON: "3.10"

jobs:
pytest:
name: Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11"]
python: ["3.10", "3.11", "3.12"]
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion template/.github/workflows/typing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

env:
DEFAULT_PYTHON: "3.9"
DEFAULT_PYTHON: "3.10"

jobs:
mypy:
Expand Down
2 changes: 1 addition & 1 deletion template/README.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ providing comprehensive management and control over project dependencies.

You need at least:

- Python 3.9+
- Python 3.10+
- [Poetry][poetry-install]

Install all packages, including all development requirements:
Expand Down
6 changes: 3 additions & 3 deletions template/pyproject.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: {{ software_license }}",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
Expand All @@ -92,7 +92,7 @@ packages = [

[tool.poetry.dependencies]
aiohttp = ">=3.0.0"
python = "^3.9"
python = "^3.10"
yarl = ">=1.6.0"

[tool.poetry.urls]
Expand Down Expand Up @@ -129,7 +129,7 @@ show_missing = true
# free to run mypy on Windows, Linux, or macOS and get consistent
# results.
platform = "linux"
python_version = "3.9"
python_version = "3.10"

# flake8-mypy expects the two following for sensible formatting
show_column_numbers = true
Expand Down

0 comments on commit 885abdd

Please sign in to comment.