Provide hints when an invalid license id is input#1634
Merged
finswimmer merged 1 commit intopython-poetry:masterfrom Jun 21, 2020
Merged
Provide hints when an invalid license id is input#1634finswimmer merged 1 commit intopython-poetry:masterfrom
finswimmer merged 1 commit intopython-poetry:masterfrom
Conversation
finswimmer
reviewed
Dec 19, 2019
Member
finswimmer
left a comment
There was a problem hiding this comment.
Hello @JJJollyjim ,
thanks a lot for this improvement of the user experience. I really like it!
I think it is ok if we integrate it into the master branch. Could your rebase your commit on that branch?
fin swimmer
d80be26 to
e2d2268
Compare
Contributor
Author
|
Done, I believe :) |
sdispater
previously requested changes
Jan 6, 2020
3a0e158 to
7276451
Compare
Contributor
Author
|
Anything else I can do on this? |
|
This message is just a friendly reminder, since this PR seems ready to be included. |
Member
|
@JJJollyjim may I ask you to add a minor change and push again, so that the checks will run again? Afterwards I will be able to merge it. |
7276451 to
d80be26
Compare
d80be26 to
65e042c
Compare
Merged
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, the
poetry new/initlicense field can be a little opaque to new users -- here is the actual output from my first time using poetry a few hours ago:This PR improves the error message to show a link to the SPDX license list, and in common cases, a best-effort guess at which license ids you might be looking for. For example:
Or, if a common license id is recognised:
I'm not a python dev (as evidenced by the fact I didn't know what a license id was :P), feedback is welcome :)