- Make sure setup.py and fastawidget.init are updated.
- Navigate to the correct directory:
cd fastawidget
- Upload the files by running:
python setup.py sdist bdist_wheel; twine upload -r pypitest dist/*.tar.gz; twine upload -r pypitest dist/*.whl
- If the upload fails go to https://testpypi.python.org/pypi and manually upload dist/fastawidget-*.tar.gz.
- Test the deploy by uninstalling and reinstalling the package:
sudo pip uninstall fastawidget; sudo pip install --index-url https://test.pypi.org/simple/ fastawidget
- First deploy to test and ensure everything is working correctly (see above).
- Navigate to the correct directory:
cd fastawidget
- Upload the files by running:
python setup.py sdist bdist_wheel; twine upload dist/*
- If the upload fails go to https://pypi.python.org/pypi and manually upload dist/gfastawidget-*.tar.gz.
- Test the deploy by uninstalling and reinstalling the package:
sudo pip uninstall fastawidget; sudo pip install fastawidget
- Deploy to Production PyPi
- Navigate to Anaconda directory
cd /anaconda3
- Activate a clean environment.
conda activate clean
- Run the following, removing the existing directory if necessary:
conda skeleton pypi fastawidget --version XXX
- Build the package:
conda build fastawidget
- 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/
- Upload the newly built package:
anaconda upload ./conda-bld/*/fastawidget-XXX-py36_0.tar.bz2 -u g2nb
- Log into the Anaconda website to make sure everything is good.