basnijholt / unidep

Single source of truth with requirements for pip and conda
https://unidep.readthedocs.io
BSD 3-Clause "New" or "Revised" License
221 stars 6 forks source link

How to handle pip deps from a private source? #187

Open anabiman opened 3 months ago

anabiman commented 3 months ago

I am currently using poetry to pull python pkgs from a private index (see section of my pyproject.toml file below).

[[tool.poetry.source]]
name = "private-channel"
url = "utl-private-index"
priority = "explicit"

[tool.poetry.dev-dependencies]
pip_pkg = {version = ">=x.x.x", source ="private-channel"

I configure poetry with a private access token so it can have access to the private channel. How can I do something similar with unidep?

basnijholt commented 3 months ago

Currently, unidep only supports setuptools and hatchling, and you can use their respective features to access packages from a private channel.

Poetry unfortunately, is not as flexible wrt plugins and therefore cannot be integrated easily. I started working on this in https://github.com/basnijholt/unidep/pull/78, however, ran into a couple of hard blockers.