Skip to content

Latest commit

 

History

History
51 lines (44 loc) · 2.23 KB

deploy.md

File metadata and controls

51 lines (44 loc) · 2.23 KB

First Time

  1. Make sure you have twine installed:

pip install twine

  1. Make sure you have added your PyPI credentials to ~/.pypirc
  2. Make sure you have anaconda-client installed:

conda install anaconda-client

  1. Log into Anaconda Cloud

anaconda login

How to Deploy to PyPi Test

  1. Make sure the version in package.json updated.
  2. Navigate to the correct directory:

cd igv-jupyter

  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/nbtools-*.tar.gz.
  2. Test the deploy by uninstalling and reinstalling the package:

sudo pip uninstall igv-jupyter; sudo pip install -i https://testpypi.python.org/pypi igv-jupyter

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 igv-jupyter

  1. Upload the files by running:

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

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

sudo pip uninstall igv-jupyter; sudo pip install igv-jupyter

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 igv-jupyter --version XXX

  1. Build the package:

conda build igv-jupyter

  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 /anaconda3/conda-bld/osx-64/igv-jupyter-XXX-py37_0.tar.bz2 -o conda-bld/

  1. Upload the newly built package:

anaconda upload /anaconda3/conda-bld/*/igv-jupyter-XXX-py37_0.tar.bz2 -u igvteam

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