Uploading a Conda Package
Before starting you must have:
If you are not using Anaconda the Binstar is also available on pypi:
Now we can login:
Test your login with the whoami command:
We are going to be uploading a package with a simple ‘hello world’ function. To follow along start by getting my demonstration package repo from Github:
This a small directory that looks like this:
Setup.py is the standard python build file and
hello.py has our single hello_world() function.
meta.yaml are scripts and metadata for the
Conda package. You can read the Conda build page for more info on those three files and their purpose.
Now we create the package by running:
That is all it takes to create a Conda package.
The final step is uploading to binstar by copying and pasting the last line of the print out after running the conda build test_package/ command. On my system the command is:
Since it is your first time creating a package and release you will be prompted to fill out some text fields which could alternatively be done through the web app.
You will see a
done printed out to confirm you have successfully uploaded your Conda package to Binstar.