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 support for Python 3.8 & 3.9, add support for Python 3.12 in CI/CD and update to latest packages #1311

Merged
merged 23 commits into from
Sep 6, 2024

Conversation

iMicknl
Copy link
Owner

@iMicknl iMicknl commented Jul 30, 2024

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

  • Renamed private _ssl_context to _ssl: ssl.SSLContext
  • Remove support for Python 3.8 and 3.9, bumping the minimum version to Python 3.10

Dependency and Version Updates:

Type Hint Improvements:

Configuration Cleanup:

  • Removed IntelliJ IDEA project files including .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:

Miscellaneous:

@github-actions github-actions bot added the enhancement New feature or request label Jul 30, 2024
tox.ini Outdated Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
@iMicknl iMicknl changed the title Add support for Python 3.12 in CI/CD and upgrade devcontainer Drop support for Python 3.8 & 3.9, add support for Python 3.12 in CI/CD and update to latest packages Aug 11, 2024
@iMicknl
Copy link
Owner Author

iMicknl commented Aug 11, 2024

@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.

@tetienne
Copy link
Collaborator

@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
Copy link
Collaborator

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.

Copy link
Owner Author

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 }}
Copy link
Collaborator

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 :)

Copy link
Owner Author

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
Copy link
Collaborator

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?

Copy link
Owner Author

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.

Copy link
Collaborator

@tetienne tetienne left a 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.

@iMicknl iMicknl merged commit c9d1fbe into main Sep 6, 2024
3 checks passed
@iMicknl iMicknl deleted the enhancement/python_3_12 branch September 6, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants