Skip to content

Instantly share code, notes, and snippets.

@tkutcher
Last active January 10, 2024 15:46
Show Gist options
  • Save tkutcher/70d67b0897017cf10f451d0e57f9ed2c to your computer and use it in GitHub Desktop.
Save tkutcher/70d67b0897017cf10f451d0e57f9ed2c to your computer and use it in GitHub Desktop.
Poetry #8866
[tool.poetry]
name = "my_package"
version = "0.13.2"
[[tool.poetry.source]]
name = "custom-1"
url = "some-url-to-gitlab-private-registry"
priority = "default"
[[tool.poetry.source]]
name = "custom-2"
url = "some-url-to-another-gitlab-private-registry"
priority = "primary"
[tool.poetry.dependencies]
python = "^3.10"
store = ">=0.28.0" # "store" is in "custom-1", but defined like this goes to pypi...
# This also works: store = "^0.28.0"
# This works: store = { version = ">=0.28.0", source = "custom-1" }
[tool.poetry.dev-dependencies]
pytest = "^7.0.1"
[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