Skip to content

Update RELEASE.md #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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