Skip to content

Commit

Permalink
Drop python 3.9 and 3.10, add python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasnicolaas committed Nov 22, 2023
1 parent e7db079 commit 47ce5ec
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .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.11"

jobs:
codespell:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
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.11"

jobs:
release:
Expand Down
4 changes: 2 additions & 2 deletions .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.11"

jobs:
pytest:
name: Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11"]
python: ["3.11", "3.12"]
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .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.11"

jobs:
mypy:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import asyncio

from gridnet import GridNet


async def main():
"""Show example on getting data from your device."""
async with GridNet(
Expand All @@ -55,6 +56,7 @@ async def main():
print(device)
print(smartbridge)


if __name__ == "__main__":
asyncio.run(main())
```
Expand Down Expand Up @@ -103,7 +105,7 @@ providing comprehensive management and control over project dependencies.

You need at least:

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

Install all packages, including all development requirements:
Expand Down
70 changes: 10 additions & 60 deletions poetry.lock

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT 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 @@ -28,7 +27,7 @@ packages = [

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

[tool.poetry.urls]
Expand Down Expand Up @@ -65,7 +64,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.11"

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

0 comments on commit 47ce5ec

Please sign in to comment.