-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for PEP 621: poetry init and poetry new (#9135)
- Loading branch information
Showing
5 changed files
with
252 additions
and
174 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -12,7 +12,7 @@ def init_basic_inputs() -> str: | |
"This is a description", # Description | ||
"n", # Author | ||
"MIT", # License | ||
"~2.7 || ^3.6", # Python | ||
">=3.6", # Python | ||
"n", # Interactive packages | ||
"n", # Interactive dev packages | ||
"\n", # Generate | ||
|
@@ -23,14 +23,14 @@ def init_basic_inputs() -> str: | |
@pytest.fixture() | ||
def init_basic_toml() -> str: | ||
return """\ | ||
[tool.poetry] | ||
[project] | ||
name = "my-package" | ||
version = "1.2.3" | ||
description = "This is a description" | ||
authors = ["Your Name <[email protected]>"] | ||
license = "MIT" | ||
authors = [ | ||
{name = "Your Name",email = "[email protected]"} | ||
] | ||
license = {text = "MIT"} | ||
readme = "README.md" | ||
[tool.poetry.dependencies] | ||
python = "~2.7 || ^3.6" | ||
requires-python = ">=3.6" | ||
""" |
Oops, something went wrong.