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

Properly translate paths from the python package name #199

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

llucax
Copy link
Contributor

@llucax llucax commented Dec 18, 2023

When the package_name is changed from the default, we need to make sure we adapt the paths in the generated project to match the new package name, otherwise those packages will not be found.

With this general approach, we can also remove the special case for lib projects, as it is now handled by the general case.

Fix #198.

@llucax llucax requested a review from a team as a code owner December 18, 2023 11:44
@llucax llucax requested a review from Marenz December 18, 2023 11:44
@github-actions github-actions bot added the part:cookiecutter Affects the generation of projects using cookiecutter label Dec 18, 2023
@llucax llucax self-assigned this Dec 18, 2023
@llucax llucax requested a review from shsms December 18, 2023 11:52
@llucax llucax added the type:bug Something isn't working label Dec 18, 2023
@llucax llucax added this to the v0.8.0 milestone Dec 18, 2023
@llucax llucax enabled auto-merge December 18, 2023 11:52
@llucax llucax removed this from the v0.8.0 milestone Dec 18, 2023
Marenz
Marenz previously approved these changes Dec 19, 2023
@llucax
Copy link
Contributor Author

llucax commented Dec 19, 2023

Needs a new approval because of the rebase.

When the `package_name` is changed from the default, we need to make
sure we adapt the paths in the generated project to match the new
package name, otherwise those packages will not be found.

With this general approach, we can also remove the special case for
`lib` projects, as it is now handled by the general case.

Signed-off-by: Leandro Lucarella <[email protected]>
@llucax llucax added this pull request to the merge queue Dec 19, 2023
Merged via the queue into frequenz-floss:v0.x.x with commit 6f34b76 Dec 19, 2023
14 checks passed
@llucax llucax deleted the fix-path branch December 19, 2023 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:cookiecutter Affects the generation of projects using cookiecutter type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Paths are not translated properly from python package names
2 participants