1
1
# Making a Release of Notebook
2
2
3
- ## Start from a fresh git checkout and conda environment
3
+ ## Using ` jupyter_releaser `
4
4
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
6
12
7
13
``` bash
8
14
export release_branch=master
9
15
```
10
16
11
- ### Create the git checkout
17
+ #### Create the git checkout
12
18
13
19
``` bash
14
20
git clone
[email protected] :jupyter/notebook.git
15
21
cd notebook
16
22
git checkout ${release_banch}
17
23
```
18
24
19
- ### Create and activate the conda environment
25
+ #### Create and activate the conda environment
20
26
21
27
``` bash
22
28
conda create -n notebook-release -c conda-forge jupyter
23
29
conda activate notebook-release
24
30
```
25
31
26
- ## Perform a local dev install
32
+ ### Perform a local dev install
27
33
28
34
``` bash
29
35
pip install -ve .
30
36
```
31
37
32
- ## Install release dependencies
38
+ ### Install release dependencies
33
39
34
40
``` bash
35
- conda install -c conda-forge nodejs babel twine
41
+ conda install -c conda-forge nodejs babel twine build
36
42
npm install -g po2json
37
43
```
38
44
39
- ## Update the version
45
+ ### Update the version
40
46
41
47
``` bash
42
48
vim notebook/_version.py
@@ -45,29 +51,28 @@ git commit -am "Release $(python setup.py --version)"
45
51
git tag $( python setup.py --version)
46
52
```
47
53
48
- ## Create the artifacts
54
+ ### Create the artifacts
49
55
50
56
``` bash
51
57
rm -rf dist
52
- python setup.py sdist
53
- python setup.py bdist_wheel
58
+ python -m build .
54
59
```
55
60
56
- ## Upload the artifacts
61
+ ### Upload the artifacts
57
62
58
63
``` bash
59
64
twine check dist/* && twine upload dist/*
60
65
```
61
66
62
- ## Change back to dev version
67
+ ### Change back to dev version
63
68
64
69
``` bash
65
70
vim notebook/_version.py # Add the .dev suffix
66
71
python setup.py jsversion
67
72
git commit -am " Back to dev version"
68
73
```
69
74
70
- ## Push the commits and tags
75
+ ### Push the commits and tags
71
76
72
77
``` bash
73
78
git push origin ${release_branch} --tags
0 commit comments