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

Replace pytz with stdlib zoneinfo/timezone, Bump python to 3.9 #149

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

Lasall
Copy link
Collaborator

@Lasall Lasall commented Oct 9, 2024

  • Timezone support comes with the standard lib since 3.9

Remove unlisted dependency pytz. If we want to keep it (comes as transitive dep atm), then we should put it into requirements.txt.

pyproject.toml Outdated
@@ -7,7 +7,7 @@ authors = [
description = "This project provides a comprehensive solution for simulating and optimizing an energy system based on renewable energy sources. With a focus on photovoltaic (PV) systems, battery storage (batteries), load management (consumer requirements), heat pumps, electric vehicles, and consideration of electricity price data, this system enables forecasting and optimization of energy flow and costs over a specified period."
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.8"
requires-python = ">=3.9"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#127 already required 3.10

Suggested change
requires-python = ">=3.9"
requires-python = ">=3.10"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the need for 3.10 #127 is not mandatory. if there any reasons against it we can remove that with a 2 line change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as that part is in the code, the project requires 3.10.

 * Timezone support comes with the standard lib since 3.9
 * Bump to 3.10 because typing.TypeGuard
@drbacke drbacke merged commit 73e537d into Akkudoktor-EOS:main Oct 10, 2024
2 checks passed
@Lasall Lasall deleted the dl_dev-drop-pytz branch January 1, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants