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 versions older than 3.11 #401

Merged
merged 6 commits into from
May 23, 2023

Conversation

leandro-lucarella-frequenz
Copy link
Contributor

@leandro-lucarella-frequenz leandro-lucarella-frequenz commented May 23, 2023

  • Reformat pyproject.toml using taplo
  • Drop support for Python versions older than 3.11
  • Improve typing annotations
  • Remove Sample comparison hack

Fixes #148, fixes #399.

@leandro-lucarella-frequenz leandro-lucarella-frequenz requested a review from a team as a code owner May 23, 2023 13:13
@leandro-lucarella-frequenz leandro-lucarella-frequenz added this to the v0.21.0 milestone May 23, 2023
@leandro-lucarella-frequenz leandro-lucarella-frequenz added the type:tech-debt Improves the project without visible changes for users label May 23, 2023
@github-actions github-actions bot added part:data-pipeline Affects the data pipeline part:docs Affects the documentation part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) labels May 23, 2023
Marenz
Marenz previously approved these changes May 23, 2023
@leandro-lucarella-frequenz
Copy link
Contributor Author

Test were failing, now they should be fixed, so this needs one more approval. Enabled auto-merge.

llucax added 6 commits May 23, 2023 16:26
Signed-off-by: Leandro Lucarella <[email protected]>
Also remove version-specific classifiers in `pyproject.toml` as we are
already specifying the supported Python versions in `requires-python`.

Signed-off-by: Leandro Lucarella <[email protected]>
We now also make the Sample3Phase.map() method more generic, to return
the same type as self.

Signed-off-by: Leandro Lucarella <[email protected]>
The Sample object implemented comparisons by only comparing timestamps.
This was only done to cope with a limitation of `bisect()` before Python
3.10 (where no key argument could be passed).

Now that we are using Python 3.11 as the minimal version, we can remove
that hack and make Samples compare using both the datetime and the value
as one would expect.

Signed-off-by: Leandro Lucarella <[email protected]>
@leandro-lucarella-frequenz leandro-lucarella-frequenz added this pull request to the merge queue May 23, 2023
Merged via the queue into frequenz-floss:v0.x.x with commit 0408bd8 May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:data-pipeline Affects the data pipeline part:docs Affects the documentation part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:tech-debt Improves the project without visible changes for users
Projects
Development

Successfully merging this pull request may close these issues.

Make Samples comparable by value again Move minimal supported Python version to 3.11
3 participants