-
Notifications
You must be signed in to change notification settings - Fork 233
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
Support packages whose name does not match the project name #631
Conversation
if package name and project name are not similar ('-' replaced by '_'), a 'package' key will be added in pyproject.toml file.
I didn't see any part in documentation that should be update according to this modification of |
Failure of tests-3.9 with windows seems not related to my modifications. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you for the contribution! There is an issue related to whitespace handling in Jinja, otherwise looks perfect to me. See the inline comment.
Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com>
White space handling corrected. With this version we have a line break between |
Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com>
Woot 🎉 |
Do you think we should add a test case in CI ? |
Yes, but I would not add this to the CI workflow. This should be in a test suite run by pytest, see #616. Unfortunately, we don't have this infrastructure yet. But it's overdue, so if you want to start work on that, that's more than welcome. It's a bunch of work, though. |
…z#631) * Add test to specify package name when necessary if package name and project name are not similar ('-' replaced by '_'), a 'package' key will be added in pyproject.toml file. * Avoid blank line * whitespace handling correction * Remove useless line break
if the package name and project name are not similar (more than
-
replaced by_
), apackage
key will be added inpyproject.toml
file.Example:
fix: #546