-
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: basic compatibility with upstream changes in…
… poetry-core (#9135) - update some pyproject.toml files to avoid deprecation warnings in tests for `poetry check` - add explicit test for deprecation warnings that should be printed when running `poetry check` with a legacy project
- Loading branch information
Showing
20 changed files
with
205 additions
and
118 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
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "invalid" | ||
version = "1.0.0" | ||
authors = [ | ||
"Foo <[email protected]>" | ||
] | ||
readme = "never/exists.md" | ||
license = "INVALID" | ||
license = { text = "INVALID" } | ||
classifiers = [ | ||
"Environment :: Console", | ||
"Intended Audience :: Clowns", | ||
"Natural Language :: Ukranian", | ||
"Topic :: Communications :: Chat :: AOL Instant Messenger", | ||
] | ||
dynamic = [ "readme", "dependencies", "requires-python" ] | ||
|
||
[tool.poetry] | ||
readme = "never/exists.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "*" | ||
|
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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "foobar" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Poetry Developer <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
docker = "4.3.1" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
requires-python = ">=3.8,<4.0" | ||
dependencies = [ | ||
"docker>=4.3.1", | ||
] | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
|
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 |
---|---|---|
@@ -1,17 +1,11 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "private" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Your Name <[email protected]>"] | ||
readme = "README.md" | ||
requires-python = ">=3.7,<4.0" | ||
classifiers = [ | ||
"Private :: Do Not Upload", | ||
] | ||
|
||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
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 |
---|---|---|
@@ -1,20 +1,26 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "simple-project" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = [ | ||
"Sébastien Eustace <[email protected]>" | ||
{ name = "Sébastien Eustace", email = "[email protected]" } | ||
] | ||
license = "MIT" | ||
|
||
readme = ["README.rst"] | ||
license = { text = "MIT" } | ||
readme = "README.rst" | ||
keywords = ["packaging", "dependency", "poetry"] | ||
dynamic = [ "classifiers", "dependencies", "requires-python" ] | ||
|
||
[project.urls] | ||
homepage = "https://python-poetry.org" | ||
repository = "https://github.com/python-poetry/poetry" | ||
documentation = "https://python-poetry.org/docs" | ||
|
||
keywords = ["packaging", "dependency", "poetry"] | ||
[project.scripts] | ||
foo = "foo:bar" | ||
baz = "bar:baz.boom.bim" | ||
fox = "fuz.foo:bar.baz" | ||
|
||
[tool.poetry] | ||
classifiers = [ | ||
"Topic :: Software Development :: Build Tools", | ||
"Topic :: Software Development :: Libraries :: Python Modules" | ||
|
@@ -24,12 +30,6 @@ classifiers = [ | |
[tool.poetry.dependencies] | ||
python = "~2.7 || ^3.4" | ||
|
||
[tool.poetry.scripts] | ||
foo = "foo:bar" | ||
baz = "bar:baz.boom.bim" | ||
fox = "fuz.foo:bar.baz" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core>=1.1.0a7"] | ||
build-backend = "poetry.core.masonry.api" |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
My Package | ||
========== |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[tool.poetry] | ||
name = "simple-project" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = [ | ||
"Sébastien Eustace <[email protected]>" | ||
] | ||
license = "MIT" | ||
|
||
readme = ["README.rst"] | ||
|
||
homepage = "https://python-poetry.org" | ||
repository = "https://github.com/python-poetry/poetry" | ||
documentation = "https://python-poetry.org/docs" | ||
|
||
keywords = ["packaging", "dependency", "poetry"] | ||
|
||
classifiers = [ | ||
"Topic :: Software Development :: Build Tools", | ||
"Topic :: Software Development :: Libraries :: Python Modules" | ||
] | ||
|
||
# Requirements | ||
[tool.poetry.dependencies] | ||
python = "~2.7 || ^3.4" | ||
|
||
[tool.poetry.scripts] | ||
foo = "foo:bar" | ||
baz = "bar:baz.boom.bim" | ||
fox = "fuz.foo:bar.baz" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core>=1.1.0a7"] | ||
build-backend = "poetry.core.masonry.api" |
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "foobar" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Poetry Developer <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
docker = ">=4.3.1" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
requires-python = ">=3.8,<4.0" | ||
dependencies = [ | ||
"docker>=4.3.1", | ||
] | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
|
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
Oops, something went wrong.