Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conda Skeleton Fails

I published a sample python package on Pypi using wheel. I would like to publish the package on my Conda channel using this tutorial.

However when I run: conda skeleton pypi rutgerhofstepythonpackage I get the following error:

Warning, the following versions were found for rutgerhofstepythonpackage
0.0.1
0.0.2
0.1.1
Using 0.1.1
Use --version to specify a different version.

Leaving build/test directories:
  Work:  /opt/anaconda3/conda-bld/skeleton_1523284768777/work
  Test:  /opt/anaconda3/conda-bld/skeleton_1523284768777/test_tmp
Leaving build/test environments:
  Test: source activate  /opt/anaconda3/conda-bld/skeleton_1523284768777/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho
  Build:        source activate  /opt/anaconda3/conda-bld/skeleton_1523284768777/_build_env


Error: No source urls found for rutgerhofstepythonpackage
like image 283
Rutger Hofste Avatar asked Apr 09 '18 14:04

Rutger Hofste


1 Answers

Conda Skeleton Requires a source distribution. Uploading a wheel to pypi is not sufficient.

In addition to a build distribution python setup.py bdist_wheel --universal create a source distribution python setup.py sdist

before uploading to PyPi. I figured this out while trying to manually create the meta.yaml file using this tutorial

like image 68
Rutger Hofste Avatar answered Nov 03 '22 07:11

Rutger Hofste