zuzukin / whl2conda

Generate conda package from pure python wheel
https://zuzukin.github.io/whl2conda/
Apache License 2.0
6 stars 2 forks source link

Convert from sdist #78

Open analog-cbarber opened 1 year ago

analog-cbarber commented 1 year ago

Support conversion from sdist files to conda packages.

The python source distribution file format is described here:

https://packaging.python.org/en/latest/specifications/source-distribution-format/

The PKG-INFO file in the distribution has metadata in the same format as the METADATA file in a wheel (not sure if there are any differences).

Any script entrypoints must be found in the pyproject.toml file.

analog-cbarber commented 1 year ago

It isn't entirely clear from the documentation, but I think you can build a wheel from the sdist using pip wheel *.tar.gz, so we could just build a wheel and go from there.

analog-cbarber commented 7 months ago

We would want to make sure to error out if the sdist is not pure python. Would --no-binary :all: do this or does that only affect dependencies?