-
Notifications
You must be signed in to change notification settings - Fork 29
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 support for Python 3.8 & 3.9, add support for Python 3.12 in CI/CD and update to latest packages #1311
Conversation
f707b3d
to
1b2ce76
Compare
@tetienne quite a big PR in the end. If you would have time coming week to have a quick glance, would be appreciated. I will do some tests on HA with this package, since there have been some (potential) breaking changes. |
Sure I will have a look. From my phone, it looks almost good. |
@@ -9,6 +9,11 @@ on: | |||
jobs: | |||
deploy: | |||
runs-on: ubuntu-latest | |||
environment: release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not using the environment. We can remove this IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tetienne we need this actually for the connection to PyPi. They are tied to an environment.
@@ -31,10 +36,8 @@ jobs: | |||
ref: "main" | |||
env: | |||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |||
- name: Build and publish to PyPi | |||
env: | |||
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the new release process confirmed, don't forget to remove the secret.
By the way, I really like this news trusted publishing :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good one!
@@ -114,16 +114,16 @@ class OverkizClient: | |||
_refresh_token: str | None = None | |||
_expires_in: datetime.datetime | None = None | |||
_access_token: str | None = None | |||
_ssl_context: ssl.SSLContext | None = None | |||
_ssl: ssl.SSLContext | bool = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include this as breaking change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a private setter so technically not a breaking change, but good to mention it. Here I am most afraid of breaking anything by the way, so will need to do proper testing before adding to HA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. To limit the risk, you can also split this PR into small ones.
Co-authored-by: Thibaut <thibaut@etienne.pw>
90041d6
to
f9734d5
Compare
This pull request includes multiple changes aimed at updating dependencies, improving type hints, and removing outdated configurations. The most important changes include updating the Python version, enhancing type hints, and cleaning up IntelliJ IDEA project files.
Breaking
Dependency and Version Updates:
.devcontainer/devcontainer.json
: Updated the Docker image tomcr.microsoft.com/devcontainers/python:1-3.12-bullseye
for Python 3.12..github/workflows/main.yaml
: Updated the Python versions in the matrix to include 3.12 and removed 3.8 and 3.9..python-version
: Updated the Python version to 3.12.pyproject.toml
: Updated dependencies and Python version requirements to>=3.10,<4.0
.Type Hint Improvements:
pyoverkiz/client.py
: Changed_ssl_context
to_ssl
and updated type hints for SSL context and verification. [1] [2] [3] [4] [5]pyoverkiz/models.py
: Updated imports to usecollections.abc
forIterator
.pyoverkiz/types.py
: Updated type hints to usecollections.abc
forCallable
and modernizedStateType
andJSON
definitions. [1] [2]Configuration Cleanup:
.idea/inspectionProfiles/Project_Default.xml
,.idea/inspectionProfiles/profiles_settings.xml
,.idea/misc.xml
,.idea/modules.xml
,.idea/python-tahoma-api.iml
, and.idea/vcs.xml
. [1] [2] [3] [4] [5] [6]Pre-commit and Tox Configuration:
.pre-commit-config.yaml
: Updatedpre-commit-hooks
tov4.6.0
and changedpyupgrade
arguments to--py310-plus
. [1] [2]tox.ini
: Updatedenvlist
to include Python 3.12 and removed 3.8 and 3.9. [1] [2]Miscellaneous:
.github/CODEOWNERS
: Removed@vlebourl
from the list of code owners..github/release-drafter.yml
: Added an empty line for better formatting.tests/test_client.py
: Updated fixtures to be asynchronous. [1] [2]