-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore dev dependencies for PEP 517 builds
This change allows for development dependencies to be ignored creating `Poetry` instances. This is used when PEP 517 artifacts are built as they are not required in this scenario. Relates-to: python-poetry/poetry#2174
- Loading branch information
1 parent
fa52260
commit 727907d
Showing
9 changed files
with
103 additions
and
5 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
13 changes: 13 additions & 0 deletions
13
tests/fixtures/project_with_invalid_dev_deps/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,13 @@ | ||
[tool.poetry] | ||
name = "my-package" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = ["Awesome Hacker <[email protected]>"] | ||
license = "MIT" | ||
|
||
[tool.poetry.dependencies] | ||
|
||
[tool.poetry.extras] | ||
|
||
[tool.poetry.dev-dependencies] | ||
mylib = { path = "../mylib", develop = true} |
9 changes: 9 additions & 0 deletions
9
tests/masonry/builders/fixtures/with_bad_path_dep/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,9 @@ | ||
[tool.poetry] | ||
name = "with_bad_path_dep" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = ["Awesome Hacker <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
bogus = { path = "../only/in/dev", develop = true } |
Empty file.
11 changes: 11 additions & 0 deletions
11
tests/masonry/builders/fixtures/with_bad_path_dev_dep/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,11 @@ | ||
[tool.poetry] | ||
name = "with_bad_path_dev_dep" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = ["Awesome Hacker <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
|
||
[tool.poetry.dev-dependencies] | ||
bogus = { path = "../only/in/dev", develop = true } |
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
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