Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.83 KB

DEPLOY.md

File metadata and controls

41 lines (36 loc) · 1.83 KB

How to Deploy to PyPi Test

  1. Make sure setup.py and galahad.version are updated.
  2. Navigate to the correct directory:

cd galahad

  1. Upload the files by running:

python setup.py sdist bdist_wheel; twine upload -r pypitest dist/*.tar.gz; twine upload -r pypitest dist/*.whl

  1. If the upload fails go to https://testpypi.python.org/pypi and manually upload dist/galahad-*.tar.gz.
  2. Test the deploy by uninstalling and reinstalling the package:

sudo pip uninstall galahad; sudo pip install --index-url https://test.pypi.org/simple/ galahad

How to Deploy to Production PyPi

  1. First deploy to test and ensure everything is working correctly (see above).
  2. Navigate to the correct directory:

cd galahad

  1. Upload the files by running:

python setup.py sdist bdist_wheel; twine upload dist/*

  1. If the upload fails go to https://pypi.python.org/pypi and manually upload dist/galahad-*.tar.gz.
  2. Test the deploy by uninstalling and reinstalling the package:

sudo pip uninstall galahad; sudo pip install galahad

How to Deploy to Conda

  1. Deploy to Production PyPi
  2. Navigate to Anaconda directory

cd /anaconda3

  1. Activate a clean environment.

conda activate clean

  1. Run the following, removing the existing directory if necessary:

conda skeleton pypi galahad --version XXX

  1. Build the package:

conda build galahad

  1. Converting this package to builds for other operating systems can be done as shown below. You will need to upload each built version using a separate upload command.

conda convert --platform all ./conda-bld/osx-64/galahad-XXX-py36_0.tar.bz2 -o conda-bld/

  1. Upload the newly built package:

anaconda upload ./conda-bld/*/galahad-XXX-py36_0.tar.bz2 -u g2nb

  1. Log into the Anaconda website to make sure everything is good.