djohon
djohon

Reputation: 889

How to specify repository branch for poetry?

I have Project A with a pyproject file like this

[tool.poetry]
name = "projectA"
version = "2.0"
description = "Package gathering for project A"
repository = "https://git.saas.tech/project-a"
[tool.poetry.dependencies]
Package B = "1.0"

I want to test a feature. How can i tell poetry to look at a specific branch ? Is this possible ?

repository = "https://git.saas.tech/project-a/my-feature"   

Upvotes: 11

Views: 14883

Answers (1)

djohon
djohon

Reputation: 889

I did this as described in the docs and it solved my problem...

Package B= { git = "[email protected]/project-a.git", branch = "myfeature" }

Upvotes: 25

Related Questions