-
Notifications
You must be signed in to change notification settings - Fork 73
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
fix(templates): Include package license metadata conditionally in templates #2862
Conversation
Reviewer's Guide by SourceryThis pull request modifies the pyproject.toml files in the tap, mapper, and target templates to conditionally include license metadata based on the user's choice during template creation. Specifically, it ensures that if no license is selected, no license-related metadata is included in the generated pyproject.toml. Flow diagram for conditional license metadata inclusiongraph TD
A[Start Template Generation] --> B{License Selected?}
B -->|Yes| C[Include License Metadata]
B -->|No License| D[Skip License Metadata]
C --> E[Add License Field]
C --> F[Add License Files]
C --> G[Add Apache License Classifier]
D --> H[Generate pyproject.toml without License Info]
E --> I[Complete pyproject.toml]
F --> I
G --> I
H --> I
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
We have skipped reviewing this pull request. We don't review packaging changes - Let us know if you'd like us to change this.
d10f519
to
9ceb127
Compare
This AI review of the PR is crazy 😮 |
Let me know how you feel about 7b67928. |
Crazy as "ok, this is actually somewhat useful" or "what? that is nonsense!"? 😅 |
Crazy as in I am impressed at how it summarised the changes and generated a whole flowchart too! Undecided on whether it is beneficial for the author or not, by can see it being useful to maintainers. I wonder how it would perform with bigger PRs... |
The summary has helped me a bit to catch things in a PR that shouldn't have been included, though I've yet to try it in larger PR. |
@ReubenFrankel what do you think adding a replay file in |
|
And here's how it looks
|
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.
Thanks @ReubenFrankel!
@edgarrmondragon Sorry - meant to say I did test this locally. Wasn't sure how the template tests worked so thanks for sorting. 👍 |
When I choose not to include a license, I expect there not to be any metadata pertaining to a particular license type in the
pyproject.toml
.Unsure how tests work for templates, so haven't included any for now - I am happy to try with some direction.
Summary by Sourcery
Chores:
📚 Documentation preview 📚: https://meltano-sdk--2862.org.readthedocs.build/en/2862/