-
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.
Catch problems with [tool.poetry.scripts] entries (#8898)
Co-authored-by: Christo De Lange <[email protected]> Co-authored-by: Randy Döring <[email protected]>
- Loading branch information
1 parent
9ba2b30
commit 5f1d1a7
Showing
8 changed files
with
129 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
My Package | ||
========== |
32 changes: 32 additions & 0 deletions
32
tests/fixtures/bad_scripts_project/no_colon/pyproject.toml
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,32 @@ | ||
[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 = "bar.bin.foo" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.1.0a7"] | ||
build-backend = "poetry.core.masonry.api" |
Empty file.
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 | ||
========== |
33 changes: 33 additions & 0 deletions
33
tests/fixtures/bad_scripts_project/too_many_colon/pyproject.toml
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,33 @@ | ||
[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" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core>=1.1.0a7"] | ||
build-backend = "poetry.core.masonry.api" |
Empty file.
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