Poetry: Specify version for git dependency

Created on 6 May 2020  路  5Comments  路  Source: python-poetry/poetry

  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] I have searched the documentation and believe that my question is not covered.

Feature Request

poetry is unable to parse all valid setup.py files, by design. As such, I do not believe it's currently possible to install CaImAn with poetry, as version info is read from another file.

I suggest that we allow specifiying version for git repos:

caiman = { git = "https://github.com/flatironinstitute/CaImAn.git", tag = "v1.8.4", version="1.8.4" }}
Feature Triage

Most helpful comment

similar issue on path dependencies as well

All 5 comments

I just ran into this issue installing vispy (poetry add git+https://github.com/vispy/vispy.git)

similar issue on path dependencies as well

This should also help in cases where the original package doesn't have a setup.py at all, as it the case with me.

+1

I need this.

nbdev-generated packages' version can't be retrieved by Poetry too.

There are other incompatibilities trying to install an nbdev package from a directory or a git repo, due to the dynamic nature of its setup.py. At least name, install_requires and version parameters need to be explicitly set for Poetry to work.

Was this page helpful?
0 / 5 - 0 ratings