Skip to content

Instantly share code, notes, and snippets.

@Omegastick
Created March 31, 2023 11:15
Show Gist options
  • Save Omegastick/713164402b450b16b35c84f425db0a29 to your computer and use it in GitHub Desktop.
Save Omegastick/713164402b450b16b35c84f425db0a29 to your computer and use it in GitHub Desktop.
Poetry config demonstrating inconsistent behaviour between poetry install and pip install
[tool.poetry]
name = "package-a"
version = "0.1.0"
description = ""
authors = ["Omegastick <isaac@poulton.dev>"]
readme = "README.md"
packages = [{include = "package_a"}]
[tool.poetry.dependencies]
python = "^3.9"
package-b = [
{version = "^0.1.0", markers = "extra == 'internal'", optional = true},
{path = "../package_b", develop = true, markers = "extra == 'local'", optional = true},
]
[tool.poetry.extras]
internal = ["package-b"]
local = ["package-b"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment