conda / conda-build

Commands and tools for building conda packages
https://docs.conda.io/projects/conda-build/
Other
383 stars 424 forks source link

conda skeleton source #150

Closed ilanschnell closed 10 years ago

ilanschnell commented 10 years ago

At EuroPython 2014, someone asked me if it would be possible to add a conda skeleton source command, where you supply the URL to the source tarball (or github repo, etc.). This way no PyPI xmlrpc interface would be required and it would work with the devpi project.

asmeurer commented 10 years ago

I think somebody requested this at SciPy too.

asmeurer commented 10 years ago

It's not trivial, because some of the metadata is taken from PyPI.

ilanschnell commented 10 years ago

But isn't all the metadata in the source tarball? I mean, you have the setup.py, and this has all the metadata which is used to register the package on PyPI in the first place.

asmeurer commented 10 years ago

It's hopefully all there. I'm just pointing out that it will require some code changes. It won't just be a one line fix.

fmarczin commented 10 years ago

I might have been one of the people asking for this: My use case was doing 'conda skeleton pypi' against a package index hosted by devpi which doesn't implement the xmlrpc interface. So 'conda skeleton source' would make that possible, allowing to override the PyPI-URL + not using xmlrpc would solve the whole issue.

asmeurer commented 10 years ago

This is implemented at https://github.com/conda/conda-build/pull/216. It only works for source (not git or hg for now). It still needs more testing.