Three Simple Steps are all it takes to get started storing Python packages in CloudRepo with PyPi.
Step 1 - Create a User and a Repository.
Note: For security purposes (mostly because passwords tend to be stored in plaintext), we do not allow your admin user to access artifacts via the repositories. Please create a user in the CloudRepo Administrator Portal.
Step 2 - setup.py
You will need a setup.py file (sample).
If you need an intro to building and packaging Python packages, check out the setuptools documentation.
Step 3 - Configure ~/.pypirc
Before you upload, you have to add the following lines to your ~/.pypirc file, substituting the appropriate placeholders:
Uploading Python Packages to CloudRepo
To upload to cloudrepo, you'll need to have twine installed (pip install twine). Then you'll run the following command:
/usr/local/bin/twine upload dist/* --repository cloudrepo
Installing Python Packages from CloudRepo
Now, to install the packages from CloudRepo, run the following command, substituting the appropriate placeholders:
pip install --index-url 'https://[user-email-address]:[user-password]@[your-organization-name].mycloudrepo.io/repositories/[your-repository-name]' [your-package-name]
After this, your package will be installed on your machine.