-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,51 @@ | ||
|
||
|
||
**Bump version number** | ||
|
||
**Add version tag** | ||
|
||
**Build the archive** | ||
|
||
```bash | ||
python setup.py sdist bdist_wheel | ||
``` | ||
|
||
**Upload to test.pypi** | ||
|
||
```bash | ||
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* | ||
``` | ||
|
||
**Upload to pypi** | ||
|
||
```bash | ||
python -m twine upload dist/* | ||
``` | ||
|
||
|
||
**Installing from test.pypi** | ||
|
||
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple igv-reports | ||
# First Time | ||
|
||
1. Make sure you have twine installed: | ||
> pip install twine | ||
2. Make sure you have added your [PyPI credentials](https://docs.python.org/3.3/distutils/packageindex.html#pypirc) to `~/.pypirc` | ||
3. Make sure you have anaconda-client installed: | ||
> conda install anaconda-client | ||
4. Log into Anaconda Cloud | ||
> anaconda login | ||
# How to Deploy to PyPi Test | ||
|
||
1. Make sure setup.py and igv.__version__ are updated. | ||
2. Navigate to the correct directory: | ||
> cd igv-jupyter | ||
3. Upload the files by running: | ||
> python setup.py sdist bdist_wheel; twine upload -r pypitest dist/\*.tar.gz; twine upload -r pypitest dist/\*.whl | ||
4. If the upload fails go to [https://testpypi.python.org/pypi](https://testpypi.python.org/pypi) and manually upload dist/nbtools-*.tar.gz. | ||
5. 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 | ||
3. Upload the files by running: | ||
> python setup.py sdist bdist_wheel; twine upload dist/\*.tar.gz; twine upload dist/\*.whl | ||
4. If the upload fails go to [https://pypi.python.org/pypi](https://pypi.python.org/pypi) and manually upload dist/nbtools-*.tar.gz. | ||
5. 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 | ||
3. Activate a clean environment. | ||
> conda activate clean | ||
4. Run the following, removing the existing directory if necessary: | ||
> conda skeleton pypi igv-jupyter --version XXX | ||
5. Build the package: | ||
> conda build igv-jupyter | ||
6. 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/ | ||
7. Upload the newly built package: | ||
> anaconda upload /anaconda3/conda-bld/*/igv-jupyter-XXX-py37_0.tar.bz2 -u igvteam | ||
8. Log into the [Anaconda website](https://anaconda.org/) to make sure everything is good. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters