Skip to content

Commit

Permalink
Merge pull request #94 from jupyter-server/update-release
Browse files Browse the repository at this point in the history
Update RELEASE.md
  • Loading branch information
jtpio authored Apr 28, 2021
2 parents ea92c6b + 5108c6d commit d0e40d3
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# Making a new release of jupyter-resource-usage
# Making a new release of `jupyter-resource-usage`

## Getting a clean environment

Creating a new environment can help avoid pushing local changes and any extra tag.

```bash
conda create -n jupyter-resource-usage-release -c conda-forge twine keyring jupyter-packaging python
mamba create -n jupyter-resource-usage-release -c conda-forge twine keyring jupyter-packaging=0.7 jupyterlab=3 python
conda activate jupyter-resource-usage-release

# install JupyterLab to build the extension
python -m pip install --pre jupyterlab
```

Alternatively, the local repository can be cleaned with:
Expand All @@ -23,13 +20,14 @@ git clean -fdx
Make sure the `dist/` folder is empty.

1. Update the version in `setup.py`
2. `python setup.py sdist bdist_wheel`
3. Double check the size of the bundles in the `dist/` folder
4. Run the tests
2. If the JupyterLab extension has changed, make sure to bump the version number in `packages/labextension/package.json`
3. `python setup.py sdist bdist_wheel`
4. Double check the size of the bundles in the `dist/` folder
5. Run the tests
- `pip install "dist/jupyter-resource-usage-X.Y.Z-py3-none-any.whl[dev]"`
- `python -m pytest`
5. `export TWINE_USERNAME=mypypi_username`
6. `twine upload dist/*`
6. `export TWINE_USERNAME=mypypi_username`
7. `twine upload dist/*`

## Releasing on conda-forge

Expand Down

0 comments on commit d0e40d3

Please sign in to comment.