Skip to content

Commit

Permalink
Updating version number
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtabor committed May 12, 2021
1 parent 7ffc017 commit 425bfc6
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 29 deletions.
79 changes: 51 additions & 28 deletions deploy.md
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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@igvteam/igv-jupyter",
"version": "0.10.0-beta.0",
"version": "0.10.0",
"description": "Jupyter extension for embedding the igv.js genome visualization in a notebook",
"keywords": [
"jupyter",
Expand Down

0 comments on commit 425bfc6

Please sign in to comment.