How to switch a relative path to version dependency while building?

Viewed 22

I am having a monorepo with below structure,

root
 |__ lib1
      |__ pyproject.toml
 |__ lib2
      |__ pyproject.toml

In the lib2, I have below definition,

[tool.poetry.dev-dependencies]
lib1 = {path = "../lib1", develop=true}

Now, when I build lib2 as wheel, I want the above definition to change like below

lib1 = "${env:MYVER}"

where ${env:MYVER} is the environment variable set in powershell.

Is this possible to do?

0 Answers
Related