11# Making a Release of Notebook
22
3- ## Start from a fresh git checkout and conda environment
3+ ## Using ` jupyter_releaser `
44
5- ### Set the release branch
5+ The recommended way to make a release is to use [ ` jupyter_releaser ` ] ( https://github.com/jupyter-server/jupyter_releaser#checklist-for-adoption ) .
6+
7+ ## Manual Release Process
8+
9+ ### Start from a fresh git checkout and conda environment
10+
11+ #### Set the release branch
612
713``` bash
814export release_branch=master
915```
1016
11- ### Create the git checkout
17+ #### Create the git checkout
1218
1319``` bash
1420git clone
[email protected] :jupyter/notebook.git
1521cd notebook
1622git checkout ${release_banch}
1723```
1824
19- ### Create and activate the conda environment
25+ #### Create and activate the conda environment
2026
2127``` bash
2228conda create -n notebook-release -c conda-forge jupyter
2329conda activate notebook-release
2430```
2531
26- ## Perform a local dev install
32+ ### Perform a local dev install
2733
2834``` bash
2935pip install -ve .
3036```
3137
32- ## Install release dependencies
38+ ### Install release dependencies
3339
3440``` bash
35- conda install -c conda-forge nodejs babel twine
41+ conda install -c conda-forge nodejs babel twine build
3642npm install -g po2json
3743```
3844
39- ## Update the version
45+ ### Update the version
4046
4147``` bash
4248vim notebook/_version.py
@@ -45,29 +51,28 @@ git commit -am "Release $(python setup.py --version)"
4551git tag $( python setup.py --version)
4652```
4753
48- ## Create the artifacts
54+ ### Create the artifacts
4955
5056``` bash
5157rm -rf dist
52- python setup.py sdist
53- python setup.py bdist_wheel
58+ python -m build .
5459```
5560
56- ## Upload the artifacts
61+ ### Upload the artifacts
5762
5863``` bash
5964twine check dist/* && twine upload dist/*
6065```
6166
62- ## Change back to dev version
67+ ### Change back to dev version
6368
6469``` bash
6570vim notebook/_version.py # Add the .dev suffix
6671python setup.py jsversion
6772git commit -am " Back to dev version"
6873```
6974
70- ## Push the commits and tags
75+ ### Push the commits and tags
7176
7277``` bash
7378git push origin ${release_branch} --tags
0 commit comments