-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pyproject: backport Poetry changes 2020 – 2022 (#2443)
* python-poetry/poetry-core@fc4ae2d (`develop` prop) This backports commit fc4ae2d [1] from poetry-core. [1]: python-poetry/poetry-core@fc4ae2d#diff-839572324cb5fa179a516814717c716dbbf38d9f21b54004e4c838aa151568ed * python-poetry/poetry-core@08964d5 (allow setup.py) This backports commit 08964d5 [1] from poetry-core. [1]: python-poetry/poetry-core@08964d5#diff-839572324cb5fa179a516814717c716dbbf38d9f21b54004e4c838aa151568ed * python-poetry/poetry-core@356de20 (inline tables) This backports commit 356de20 [1] from poetry-core, including a test fixture from that commit. [1]: python-poetry/poetry-core@356de20#diff-839572324cb5fa179a516814717c716dbbf38d9f21b54004e4c838aa151568ed * python-poetry/poetry-core@f3e3792 (source.links) This backports commit f3e3792 [1] from poetry-core. [1]: python-poetry/poetry-core@f3e3792 * python-poetry/poetry-core@8b1cc5e (file scripts) This backports commit 8b1cc5e [1] from poetry-core, including a test fixture from that commit. [1]: python-poetry/poetry-core@8b1cc5e#diff-839572324cb5fa179a516814717c716dbbf38d9f21b54004e4c838aa151568ed * python-poetry/poetry-core@f3215b7 (groups support) This backports commit f3215b7 [1] from poetry-core, including a test fixture from that commit. [1]: python-poetry/poetry-core@f3215b7#diff-839572324cb5fa179a516814717c716dbbf38d9f21b54004e4c838aa151568ed * python-poetry/poetry-core@3144f1f (VCS subdirs) This backports commit 3144f1f [1] from poetry-core. [1]: python-poetry/poetry-core@3144f1f#diff-839572324cb5fa179a516814717c716dbbf38d9f21b54004e4c838aa151568ed * python-poetry/poetry-core@5994fa8 (no newlines) This backports commit 5994fa8 [1] from poetry-core and includes a small negative test. [1]: python-poetry/poetry-core@5994fa8#diff-839572324cb5fa179a516814717c716dbbf38d9f21b54004e4c838aa151568ed * python-poetry/poetry-core@6215dd1 (multi READMEs) This backports commit 6215dd1 [1] from poetry-core, including a test fixture from that commit. [1]: python-poetry/poetry-core@6215dd1#diff-ef679a5f97d5c886f98ef4d25e0dc0b64dbb5612a8eb1794e623d2fd8a23e3dd * python-poetry/poetry-core@9e3796b (legacy repos) This backports commit 9e3796b [1] from poetry-core. [1]: python-poetry/poetry-core@9e3796b * python-poetry/poetry-core@c9348e8 (`authors`) This backports commit c9348e8 [1] from poetry-core. [1]: python-poetry/poetry-core@c9348e8#diff-ef679a5f97d5c886f98ef4d25e0dc0b64dbb5612a8eb1794e623d2fd8a23e3dd * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
15f7934
commit a32ba97
Showing
7 changed files
with
341 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[tool.poetry] | ||
name = "bad-multiline" | ||
version = "1.2.3" | ||
description = "Some multi-\nline string" | ||
authors = ["Poetry <[email protected]>"] |
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,48 @@ | ||
[tool.poetry] | ||
name = "poetry" | ||
version = "0.5.0" | ||
description = "Python dependency management and packaging made easy." | ||
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"] | ||
|
||
# Requirements | ||
[tool.poetry.dependencies] | ||
python = "~2.7 || ^3.2" # Compatible python versions must be declared here | ||
toml = "^0.9" | ||
# Dependencies with extras | ||
requests = { version = "^2.13", extras = ["security"] } | ||
# Python specific dependencies with prereleases allowed | ||
pathlib2 = { version = "^2.2", python = "~2.7", allows-prereleases = true } | ||
# Git dependencies | ||
cleo = { git = "https://github.com/sdispater/cleo.git", branch = "master" } | ||
|
||
# Optional dependencies (extras) | ||
pendulum = { version = "^1.4", optional = true } | ||
|
||
[tool.poetry."this key is not in the schema"] | ||
"but that’s" = "ok" | ||
|
||
[tool.poetry.extras] | ||
time = ["pendulum"] | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^3.0" | ||
pytest-cov = "^2.4" | ||
|
||
[tool.poetry.scripts] | ||
my-script = 'my_package:main' | ||
sample_pyscript = { reference = "script-files/sample_script.py", type = "file" } | ||
sample_shscript = { reference = "script-files/sample_script.sh", type = "file" } | ||
|
||
|
||
[[tool.poetry.source]] | ||
name = "foo" | ||
url = "https://bar.com" |
Oops, something went wrong.