You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR: the generated pip section should include the --index-url and --extra-index-url using info from tool.poetry.source
I'm on a limbo of mixed environments and repos, but I need to switch back from a poetry-based to a conda-based build env.
I already have some projects built with poetry and saved on a private devpi index;
the directive to use the private repo is in pyproject.toml's tool.poetry.source:
[[tool.poetry.source]]
name = "private"url = "https://my.private.repo/my/stable/+simple/"default= true
I added the tool.poetry2conda.dependencies section to mark my packages with channel = "pip", and when I use poetry2conda pyproject.toml environment.yml, the yaml file contains the pip packages but no --index-url option.
Passing extra options in the environment.yml's pip section is possible from conda version 4.4.0 (see this pr).
It would be wonderful if the urls specified in the tool.poetry.source sections could be translated to a --index-url entry if default = true, or a --extra-index-url otherwhise.
The text was updated successfully, but these errors were encountered:
sanzoghenzo
pushed a commit
to sanzoghenzo/poetry2conda
that referenced
this issue
Nov 2, 2020
Hi, first of all many thanks for this project!
TL;DR: the generated
pip
section should include the--index-url
and--extra-index-url
using info fromtool.poetry.source
I'm on a limbo of mixed environments and repos, but I need to switch back from a poetry-based to a conda-based build env.
I already have some projects built with poetry and saved on a private devpi index;
the directive to use the private repo is in
pyproject.toml
'stool.poetry.source
:I added the
tool.poetry2conda.dependencies
section to mark my packages withchannel = "pip"
, and when I usepoetry2conda pyproject.toml environment.yml
, the yaml file contains the pip packages but no--index-url
option.Passing extra options in the
environment.yml
'spip
section is possible from conda version 4.4.0 (see this pr).It would be wonderful if the
url
s specified in thetool.poetry.source
sections could be translated to a--index-url
entry ifdefault = true
, or a--extra-index-url
otherwhise.The text was updated successfully, but these errors were encountered: