Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop python 3.9 and 3.10, add python 3.12 #245

Merged
merged 3 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/checkout@v4.1.1
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,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 @@ -67,7 +66,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
5 changes: 1 addition & 4 deletions src/energyzero/energyzero.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from dataclasses import dataclass
from datetime import date, datetime, timedelta, timezone
from importlib import metadata
from typing import TYPE_CHECKING, Any, cast
from typing import Any, Self, cast

import async_timeout
from aiohttp.client import ClientError, ClientSession
Expand All @@ -20,9 +20,6 @@
)
from .models import Electricity, Gas

if TYPE_CHECKING:
from typing_extensions import Self


@dataclass
class EnergyZero:
Expand Down
Loading