forked from python-poetry/poetry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: ensure sources are prioritised over PyPI
When a project specifies non default sources, PyPI gets added as the default source. This will prioritise packages available in PyPI when the package exists in both index. This change ensures that PyPI is only used as a default when no other sources are provided. Resolves: python-poetry#1677 python-poetry#2564 python-poetry#3238
- Loading branch information
Showing
4 changed files
with
94 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
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,60 @@ | ||
[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" | ||
cleo = "^0.6" | ||
pendulum = { git = "https://github.com/sdispater/pendulum.git", branch = "2.0" } | ||
requests = { version = "^2.18", optional = true, extras=[ "security" ] } | ||
pathlib2 = { version = "^2.2", python = "~2.7" } | ||
|
||
orator = { version = "^0.9", optional = true } | ||
|
||
# File dependency | ||
demo = { path = "../distributions/demo-0.1.0-py2.py3-none-any.whl" } | ||
|
||
# Dir dependency with setup.py | ||
my-package = { path = "../project_with_setup/" } | ||
|
||
# Dir dependency with pyproject.toml | ||
simple-project = { path = "../simple_project/" } | ||
|
||
|
||
[tool.poetry.extras] | ||
db = [ "orator" ] | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "~3.4" | ||
|
||
|
||
[tool.poetry.scripts] | ||
my-script = "my_package:main" | ||
|
||
|
||
[tool.poetry.plugins."blogtool.parsers"] | ||
".rst" = "some_module::SomeClass" | ||
|
||
|
||
[[tool.poetry.source]] | ||
name = "foo" | ||
url = "https://foo.bar/simple/" |
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