You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `full_build` job in the `release_build` workflow in CircleCI produces a tarball of artifacts `output.tgz` which you should download and decompress, which will give you a directory called `output`. The filenames contained within will contain version numbers.
84
+
print(plotly.__version__) # Make sure version is correct
To locally install the PyPI dist, make sure you have an environment with JupyterLab installed (maybe one created with `conda create -n condatest python=3.10 jupyter anywidget pandas`):
90
+
Once these are verified working, you can move on to publishing the release.
### Merge the release PR and make a GitHub release
48
93
49
-
You'll want to check, in both Lab and Notebook, **in a brand new notebook in each** so that there is no caching of previous results, that `go.Figure()` and `go.FigureWidget()` work without error.
94
+
- Merge the pull request you created above into `main`
95
+
- Go to https://github.com/plotly/plotly.py/releases and "Draft a new release"
96
+
- Enter the `vX.Y.Z` tag you created already above and make "Release title" the same string as the tag.
97
+
- Copy the changelog section for this version into "Describe this release"
98
+
- Upload the build artifacts downloaded in the previous step (`.tar` and `.whl`)
50
99
51
-
### Publishing
100
+
### Publishing to PyPI
52
101
53
-
Once you're satisfied that things render in Lab and Notebook in Widget and regular mode,
54
-
you can publish the artifacts. **You will need special credentials from Plotly leadership to do this.**.
102
+
The final step is to publish the release to PyPI. **You will need special permissions from Plotly leadership to do this.**.
55
103
104
+
You must install first install [Twine](https://pypi.org/project/twine/) (`pip install twine`) if not already installed.
56
105
57
106
Publishing to PyPI:
58
107
```bash
59
108
(plotly_dev) $ cd path/to/output
60
109
(plotly_dev) $ twine upload plotly-X.Y.Z*
61
110
```
62
111
63
-
### Merge the PR and make a Release
64
-
65
-
1. Merge the pull request you created above into `main`
66
-
2. Go to https://github.com/plotly/plotly.py/releases and "Draft a new release"
67
-
3. Enter the `vX.Y.Z` tag you created already above and make "Release title" the same string as the tag.
68
-
4. Copy the changelog section for this version as the "Describe this release"
112
+
You will be prompted to enter an API token; this can be generated in your PyPI account settings.
113
+
Your account must have permissions to publish to the Plotly project on PyPI.
69
114
70
115
### Update documentation site
71
116
@@ -85,9 +130,9 @@ to features in the release.
85
130
86
131
### Notify Stakeholders
87
132
88
-
* Post an announcement to the Plotly Python forum, with links to the README installation instructions and to the CHANGELOG.
133
+
* Post an announcement to the [Plotly Python forum](https://community.plotly.com/c/plotly-python/5), with links to the README installation instructions and to the CHANGELOG.
89
134
* Update the previous announcement to point to this one
90
-
* Update the Github Release entry and CHANGELOG entry to have the nice title and a link to the announcement
135
+
* Update the GitHub Release entry and CHANGELOG entry to have the nice title and a link to the announcement
91
136
* Follow up on issues resolved in this release or forum posts with better answers as of this release
92
137
93
138
## Release process - Release *Candidate* of `plotly` package
0 commit comments