Debian Codegraph @

bqplot/RELEASE.md

raw
1 To release a new version of bqplot on PyPI:
2
3 ## Create a new environment for the release
4
5 ```sh
6 conda create -c conda-forge --override-channels -y -n bqplotrelease "jupyterlab=3.2" "nodejs=16" twine ipywidgets pip jupyter_packaging "yarn<2"
7 conda activate bqplotrelease
8 ```
9
10 ## Check out a fresh copy of the repo
11
12 We check out a fresh copy in a `release/` subdirectory to make sure we do not
13 overwrite our development repo.
14
15 ```sh
16 mkdir -p release
17 cd release
18 # Delete any previous checkout we have here.
19 rm -rf bqplot
20
21
22 git clone [email protected]:bloomberg/bqplot.git
23 cd bqplot
24 ```
25
26 ## Release the npm package
27
28 ```sh
29 cd js/
30 npm version [Major/minor/patch]
31 yarn install
32 npm publish
33 cd ..
34 ```
35
36 ## Release the pypi package
37
38 Update _version.py (bump both the python package version, and if needed, the Javascript version)
39
40 ```
41 git clean -dfx
42 python setup.py sdist
43 python setup.py bdist_wheel
44 twine upload dist/*
45 ```
46
47 ## Tag the repository
48
49 Check to make sure the only changes are to the `package.json`, `package-lock.json`, and `_version.py` files:
50
51 ```sh
52 git diff
53 ```
54
55 Commit the changes in git
56
57 ```sh
58 git commit -sa -m "Release 0.12.42"
59 ```
60
61 Tag the release
62
63 ```sh
64 git tag [version, like 0.12.42]
65 ```
66
67 Push the changes:
68 ```
69 git push origin 0.12.x 0.12.42
70 ```
71
72 ## Update the recipe on conda-forge and set the stable branch to the newly tagged commit
73
74 Update the [conda-forge feedstock](https://github.com/conda-forge/bqplot-feedstock/).