File tree Expand file tree Collapse file tree 2 files changed +32
-4
lines changed Expand file tree Collapse file tree 2 files changed +32
-4
lines changed Original file line number Diff line number Diff line change 1
- To create a release, update the version number in jupyter_server/_ version.py, then run the following:
1
+ # Making a Jupyter Server Release
2
+ To create a release, perform the following steps...
2
3
4
+ ## Remove untracked files
3
5
```
4
6
git clean -dffx
5
- python setup.py sdist
6
- python setup.py bdist_wheel
7
+ ```
8
+
9
+ ## Update the version and apply the tag
10
+ ```
11
+ vim jupyter_server/_version.py
7
12
export script_version=`python setup.py --version 2>/dev/null`
8
13
git commit -a -m "Release $script_version"
9
14
git tag $script_version
15
+ ```
16
+
17
+ ## Build the artifacts
18
+ ```
19
+ rm -rf dist
20
+ python setup.py sdist
21
+ python setup.py bdist_wheel
22
+ ```
23
+
24
+ ## Update the version back to dev
25
+ ```
26
+ vim jupyter_server/_version.py
27
+ git commit -a -m "Back to dev version"
28
+ ```
29
+
30
+ ## Push the commits and tag
31
+ ```
10
32
git push --all
11
33
git push --tags
34
+ ```
35
+
36
+ ## Publish the artifacts to pypi
37
+ ```
12
38
pip install twine
13
39
twine check dist/*
14
40
twine upload dist/*
Original file line number Diff line number Diff line change 8
8
# patch the JavaScript files in `.postN` release done by distributions.
9
9
10
10
# Next beta/alpha/rc release: The version number for beta is X.Y.ZbN **without dots**.
11
+ # However, be sure to INCLUDE a dot prefix when adding the dev release: X.Y.Z.devN
12
+ # See: https://www.python.org/dev/peps/pep-0440/#public-version-identifiers
11
13
12
- version_info = (1 , 1 , 0 , 'dev0' )
14
+ version_info = (1 , 1 , 0 , '. dev0' )
13
15
__version__ = '.' .join (map (str , version_info [:3 ])) + '' .join (version_info [3 :])
You can’t perform that action at this time.
0 commit comments