poetry-plugin-export icon indicating copy to clipboard operation
poetry-plugin-export copied to clipboard

Exporting to conda format

Open vincenzobaz opened this issue 3 years ago • 2 comments

Hello!

I use poetry for many projects, including some PySpark projects. In this case, I am used to leveraging conda-pack to create a standalone tar.gz containing the Python binary and all the dependency that I can use with spark-submit. To generate a conda environment I am forced to use export to generate a requirements.txtand then to load it with conda.

Conda supports a yaml environment specification file and it would useful if poetry export could emit a file satisfying this specification. It does not seem extremely complicated to implement but before jumping in and writing code I wanted to ask:

  1. Would this functionality be useful?
  2. Should this functionality be added to this repository or as a separate plugin?
  3. Do you see any blocker to implement this?

Thank you in advance for your inputs!

vincenzobaz avatar Nov 06 '22 09:11 vincenzobaz

1. Would this functionality be useful?

It sounds useful to me. However, I'm not a conda user.

2. Should this functionality be added to this repository or as a separate plugin?

Either is possible. IMO it fits well here.

3. Do you see any blocker to implement this?

No blockers. However, it might make sense to refactor the Exporter class as mentioned in https://github.com/python-poetry/poetry-plugin-export/pull/128#issuecomment-1262806789

radoering avatar Nov 06 '22 16:11 radoering

Dear Vincenzo and Randy,

over at https://github.com/conda-forge/wetterdienst-feedstock/issues/77 [^1], we have been starting to search for a solution on this matter, and happily discovered your discussion here.

We will be all ears when there is something usable and will try to apply it on the dependency definitions of Wetterdienst quickly.

With kind regards, Andreas.

[^1]: You will find references to Grayskull and pip-tools over there, which might be interesting if you don't know those tools yet.

/cc @xylar

amotl avatar Dec 03 '22 01:12 amotl