Skip to content

Commit

Permalink
Drop python 3.10 (#68)
Browse files Browse the repository at this point in the history
* Drop python 3.10

* Update docs
  • Loading branch information
klaasnicolaas authored Nov 22, 2023
1 parent 617cf97 commit c65d4bb
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 45 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ A [GitHub workflow](template/.github/workflows/release.yaml.j2) is included that

- Create and verify an account on [PyPI](https://pypi.org/account/register/).
- Add a [Trusted Publisher](https://docs.pypi.org/trusted-publishers/creating-a-project-through-oidc/) to your PyPI account.
- Create an Environments in the GitHub repository settings. Name it "`release`", choose **selected branches** and add a deployment branch rule for `main` and `v*`.
- Create an Environment in the GitHub repository settings and name it "`release`".

Now, when you [create a new release](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository#creating-a-release) from your repository, a workflow will run and deploy the code to PyPI.

Expand Down Expand Up @@ -69,7 +69,7 @@ providing comprehensive management and control over project dependencies.

You need at least:

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

Install all packages, including all development requirements:
Expand Down
40 changes: 9 additions & 31 deletions poetry.lock

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
[tool.poetry]
name = "pypackage-template"
version = "0.1.0"
version = "0.0.0"
description = "A template for generating a Python package"
authors = ["Klaas Schoute <[email protected]>"]
license = "MIT"
readme = "README.md"
packages = [
{ include = "template"},
]

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

[tool.poetry.group.dev.dependencies]
codespell = "2.2.6"
copier = "9.0.1"
pre-commit = "3.5.0"
pre-commit-hooks = "4.5.0"
yamllint = "1.33.0"
codespell = "2.2.6"

[build-system]
build-backend = "poetry.core.masonry.api"
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.10"
DEFAULT_PYTHON: "3.11"

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.10"
DEFAULT_PYTHON: "3.11"

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.10"
DEFAULT_PYTHON: "3.11"

jobs:
pytest:
name: Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.10", "3.11", "3.12"]
python: ["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.10"
DEFAULT_PYTHON: "3.11"

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.10+
- Python 3.11+
- [Poetry][poetry-install]

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

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

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

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

0 comments on commit c65d4bb

Please sign in to comment.