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

Update to repo-config v0.7.2 #230

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

llucax
Copy link
Contributor

@llucax llucax commented Nov 1, 2023

  • Fix the wrong cli package name.
  • Improve the arm64 Dockerfile description.

@llucax llucax self-assigned this Nov 1, 2023
@github-actions github-actions bot added the part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) label Nov 1, 2023
@llucax llucax added the type:bug Something isn't working label Nov 1, 2023
@llucax llucax added this to the v1.0.0 milestone Nov 1, 2023
@llucax llucax added the status:blocked Other issues must be resolved before this can be worked on label Nov 1, 2023
@llucax
Copy link
Contributor Author

llucax commented Nov 1, 2023

Blocked by:

@llucax llucax removed the status:blocked Other issues must be resolved before this can be worked on label Nov 1, 2023
@llucax llucax marked this pull request as ready for review November 1, 2023 15:54
@llucax llucax requested a review from a team as a code owner November 1, 2023 15:54
- Fix the wrong `cli` package name.
- Improve the arm64 `Dockerfile` description.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@@ -363,7 +363,7 @@ jobs:
if: steps.mike-version.outputs.version
run: |
git checkout gh-pages
python -m frequenz.repo.config.cli.version.mkdocs.sort versions.json
python -m frequenz.repo.config.cli.version.mike.sort versions.json
Copy link
Contributor

Choose a reason for hiding this comment

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

I would not have spotted that! I mean, what's mike?

Copy link
Contributor Author

@llucax llucax Nov 1, 2023

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

thx

@@ -71,7 +71,7 @@ dev-pytest = [
"pytest == 7.4.3",
"async-solipsism == 0.5",
"hypothesis == 6.88.1",
"frequenz-repo-config[extra-lint-examples] == 0.7.1",
"frequenz-repo-config[extra-lint-examples] == 0.7.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

What generally bugs me (and that's not only a Python-only problem), is that you need to update the version in so many places, all at once, that it's not too hard to accidentally miss one, when you want to bump it. But I guess there's no better way of doing it, or is there?

What I imagine in my head is some kind of single source of truth, and if dev-pylint as well as dev-noxfile both need frequenz-repo-config at version X, then they $var that version from that single source. This would make upgrading at least way less error-prone. (I'm just thinking out loud here) :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not that I know of, we can greatly simplify this by having only one dev optional dependencies that just install everything, that's in the roadmap for repo-config, I think having this level of fine grain have very little advantages and a lot of issues. But we'll still need to put it twice (one in build deps and one in dev deps).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The other issue is repo-config now holds both a library and the cookiecutter templates. Actually all these point releases are for the cookiecutter templates only, so there is no difference if we didn't upgrade the dependency here. Once we split the templates to a different repo, this should also become better.

Then we might even want to split repo-config in the build part of it and the dev part of it, so then both dependencies would be independent and we'll only need to update one when it really changes (but I see this as a second stage change).

Finally, once it is more stable, dependabot should be able to update repo-config automatically too.

But yeah, a lot could be done to improve the situation but it requires a lot of work.

@llucax llucax added this pull request to the merge queue Nov 1, 2023
Merged via the queue into frequenz-floss:v0.x.x with commit 5d41385 Nov 1, 2023
14 checks passed
@llucax llucax deleted the fix-docs-publish branch November 1, 2023 16:08
@llucax llucax modified the milestones: v1.0.0, v1.0.0-rc.1 Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants