-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for file dependencies with subdirectories (analogous to git a…
…nd url dependencies)
- Loading branch information
Showing
10 changed files
with
137 additions
and
3 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
2 changes: 2 additions & 0 deletions
2
tests/fixtures/project_with_dependencies_with_subdirectory/README.rst
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 | ||
========== |
40 changes: 40 additions & 0 deletions
40
tests/fixtures/project_with_dependencies_with_subdirectory/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,40 @@ | ||
[tool.poetry] | ||
name = "my-package" | ||
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.6" | ||
|
||
# Git dependency with subdirectory | ||
pendulum = { git = "https://github.com/sdispater/pendulum.git", subdirectory = "sub", branch = "2.0" } | ||
|
||
# File dependency with subdirectory | ||
demo = [ | ||
{ path = "../distributions/demo-0.1.0-py2.py3-none-any.whl", subdirectory = "sub", platform = "linux" }, | ||
{ file = "../distributions/demo-0.1.0-py2.py3-none-any.whl", subdirectory = "sub", platform = "win32" } | ||
] | ||
|
||
# Dir dependency with subdirectory (same as path "../simple_project" without subdirectory) | ||
simple-project = { path = "..", subdirectory = "simple_project" } | ||
|
||
# Url dependency with subdirectory | ||
foo = { url = "https://example.com/foo.zip", subdirectory = "sub" } |
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