Open horaceg opened 2 years ago
I was about to create similar issue to provide a place to pass index-url and extra-index-url as supported by pip. I am curious if @mariusvniekerk is considering to fix this in upcoming release.
Is it as simple as parsing and passing the index-url to
pypi = PyPiRepository() pool = Pool(repositories=[pypi])
as mentioned in 171
I am planning to contribute to this issue, I would like someone to provide me some guidance
PR #201
It's not the exact format you mention, but it should work. I think it'll even work pyproject.toml files but I've not tested it.
Edit: It will not work with pyproject.toml files, but I think a simple mod would allow that if someone were willing to help me test it.
Hello, I am facing a similar issue getting conda-lock to work behind my company proxy.
I have found workarounds to get it to work (including a small code change to conda-lock), here is what I did:
pyproject.toml
(to make sure poetry writes to its global configuration file)conda-lock
to add a --no-pypi
switch, otherwise conda-lock attempts to make requests to pypi.org (in addition to the private repo) which leads to a crash when the company proxy blocks themThis seems to do the trick on my prototype project. I would be interested in contributing the --no-pypi
change so I can switch back to the official release of conda-lock, can I do that? Or do you think it is not a good solution?
First of all,
conda-lock
is amazing and very convenient for prod worflows, thank you for this.It would be useful for my use-case to add the possibility of installing pip dependencies based on a private repository.
In
pyproject.toml
with poetry, this is something likein
requirements.txt
, it looks like