Skip to content

Drop support for Python versions older than 3.11 - #401

Merged
leandro-lucarella-frequenz merged 6 commits into
frequenz-floss:v0.x.xfrom
llucax:py311
May 23, 2023
Merged

Drop support for Python versions older than 3.11#401
leandro-lucarella-frequenz merged 6 commits into
frequenz-floss:v0.x.xfrom
llucax:py311

Conversation

@leandro-lucarella-frequenz

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

Copy link
Copy Markdown
Contributor
  • 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
Copy Markdown
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 <leandro.lucarella@frequenz.com>
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 <leandro.lucarella@frequenz.com>
We now also make the Sample3Phase.map() method more generic, to return
the same type as self.

Signed-off-by: Leandro Lucarella <leandro.lucarella@frequenz.com>
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 <leandro.lucarella@frequenz.com>
Signed-off-by: Leandro Lucarella <leandro.lucarella@frequenz.com>
Signed-off-by: Leandro Lucarella <leandro.lucarella@frequenz.com>
@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