Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.88 KB

DEPLOY.md

File metadata and controls

41 lines (36 loc) · 1.88 KB

How to Deploy to PyPi Test

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

cd fastawidget

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

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

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 fastawidget

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

sudo pip uninstall fastawidget; sudo pip install fastawidget

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 fastawidget --version XXX

  1. Build the package:

conda build fastawidget

  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/fastawidget-XXX-py36_0.tar.bz2 -o conda-bld/

  1. Upload the newly built package:

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

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