-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Update init & new commands for PEP 639 (License) #10787
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
Merged
+19
−19
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ def init_basic_toml() -> str: | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| readme = "README.md" | ||
| requires-python = ">=3.6" | ||
| """ | ||
|
|
@@ -55,7 +55,7 @@ def new_basic_toml() -> str: | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| readme = "README.md" | ||
| requires-python = ">=3.6" | ||
| dependencies = [ | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -145,7 +145,7 @@ def test_interactive_with_dependencies( | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
radoering marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| requires-python = ">=3.6" | ||
| dependencies = [ | ||
| "pendulum (>=2.0.0,<3.0.0)", | ||
|
|
@@ -201,7 +201,7 @@ def test_interactive_with_dependencies_and_no_selection( | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| requires-python = ">=3.6" | ||
| """ | ||
|
|
||
|
|
@@ -269,7 +269,7 @@ def test_interactive_with_git_dependencies( | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| requires-python = ">=3.6" | ||
| dependencies = [ | ||
| "demo @ git+https://github.com/demo/demo.git" | ||
|
|
@@ -364,7 +364,7 @@ def test_interactive_with_git_dependencies_with_reference( | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| requires-python = ">=3.6" | ||
| dependencies = [ | ||
| "demo @ git+https://github.com/demo/demo.git@develop" | ||
|
|
@@ -412,7 +412,7 @@ def test_interactive_with_git_dependencies_and_other_name( | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| requires-python = ">=3.6" | ||
| dependencies = [ | ||
| "demo @ git+https://github.com/demo/pyproject-demo.git" | ||
|
|
@@ -467,7 +467,7 @@ def test_interactive_with_directory_dependency( | |
| authors = [ | ||
| {{name = "Your Name",email = "[email protected]"}} | ||
| ] | ||
| license = {{text = "MIT"}} | ||
| license = "MIT" | ||
| requires-python = ">=3.6" | ||
| dependencies = [ | ||
| "demo @ {demo_uri}" | ||
|
|
@@ -521,7 +521,7 @@ def test_interactive_with_directory_dependency_and_other_name( | |
| authors = [ | ||
| {{name = "Your Name",email = "[email protected]"}} | ||
| ] | ||
| license = {{text = "MIT"}} | ||
| license = "MIT" | ||
| requires-python = ">=3.6" | ||
| dependencies = [ | ||
| "demo @ {demo_uri}" | ||
|
|
@@ -576,7 +576,7 @@ def test_interactive_with_file_dependency( | |
| authors = [ | ||
| {{name = "Your Name",email = "[email protected]"}} | ||
| ] | ||
| license = {{text = "MIT"}} | ||
| license = "MIT" | ||
| requires-python = ">=3.6" | ||
| dependencies = [ | ||
| "demo @ {demo_uri}" | ||
|
|
@@ -623,7 +623,7 @@ def test_interactive_with_wrong_dependency_inputs( | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| requires-python = ">=3.8" | ||
| dependencies = [ | ||
| "foo (==1.19.2)", | ||
|
|
@@ -660,7 +660,7 @@ def test_python_option(tester: CommandTester) -> None: | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| requires-python = ">=3.6" | ||
| """ | ||
|
|
||
|
|
@@ -691,7 +691,7 @@ def test_predefined_dependency(tester: CommandTester, repo: TestRepository) -> N | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| requires-python = ">=3.6" | ||
| dependencies = [ | ||
| "pendulum (>=2.0.0,<3.0.0)" | ||
|
|
@@ -733,7 +733,7 @@ def test_predefined_and_interactive_dependencies( | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| requires-python = ">=3.6" | ||
| dependencies = [ | ||
| "pendulum (>=2.0.0,<3.0.0)", | ||
|
|
@@ -768,7 +768,7 @@ def test_predefined_dev_dependency(tester: CommandTester, repo: TestRepository) | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| requires-python = ">=3.6" | ||
| dependencies = [ | ||
| ] | ||
|
|
@@ -814,7 +814,7 @@ def test_predefined_and_interactive_dev_dependencies( | |
| authors = [ | ||
| {name = "Your Name",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| requires-python = ">=3.6" | ||
| dependencies = [ | ||
| ] | ||
|
|
@@ -861,7 +861,7 @@ def test_predefined_all_options(tester: CommandTester, repo: TestRepository) -> | |
| authors = [ | ||
| {name = "Foo Bar",email = "[email protected]"} | ||
| ] | ||
| license = {text = "MIT"} | ||
| license = "MIT" | ||
| requires-python = ">=3.8" | ||
| dependencies = [ | ||
| "pendulum (>=2.0.0,<3.0.0)" | ||
|
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.