Skip to content

Instantly share code, notes, and snippets.

@bnorick
Last active September 23, 2021 05:12
Show Gist options
  • Save bnorick/942580f0f5dcf13afbd87968a5d9b2af to your computer and use it in GitHub Desktop.
Save bnorick/942580f0f5dcf13afbd87968a5d9b2af to your computer and use it in GitHub Desktop.
Dependency resolution bug
# ./lib1/pyproject.toml
[tool.poetry]
name = "lib1"
version = "0.1.0"
description = ""
authors = ["John Smith <john@example.com>"]
[tool.poetry.dependencies]
python = "^3.6.1"
ray = [
{url = "https://s3-us-west-2.amazonaws.com/ray-wheels/master/cd22a7d1bbf38f66aa8b735459319ff24f102a20/ray-2.0.0.dev0-cp36-cp36m-manylinux2014_x86_64.whl", extras=["default"], python = "~3.6"},
{url = "https://s3-us-west-2.amazonaws.com/ray-wheels/master/cd22a7d1bbf38f66aa8b735459319ff24f102a20/ray-2.0.0.dev0-cp37-cp37m-manylinux2014_x86_64.whl", extras=["default"], python = "~3.7"}
]
[tool.poetry.dev-dependencies]
pytest = "^5.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
# ./lib2/pyproject.toml
[tool.poetry]
name = "lib2"
version = "0.1.0"
description = ""
authors = ["John Smith <john@example.com>"]
[tool.poetry.dependencies]
python = "^3.6.1"
[tool.poetry.dev-dependencies]
pytest = "^5.2"
lib1 = {path = "../lib1", develop = true}
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment