Skip to content

Commit e35e18f

Browse files
authored
Update publish instructions
1 parent 38620ea commit e35e18f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,15 @@ If you make a change to the python code then you will need to restart the notebo
109109
npm login
110110
npm publish
111111
```
112-
- Bundle the python package: `python setup.py sdist bdist_wheel`
113-
- Publish the package to PyPI:
112+
- Install publish dependencies:
113+
```bash
114+
pip install build twine
115+
```
116+
- Build the assets and publish
114117
```bash
115-
pip install twine
116-
twine upload dist/<python package name>*
118+
python -m build .
119+
twine check dist/*
120+
twine upload dist/*
117121
```
118122
- Tag the release commit (`git tag <python package version identifier>`)
119123
- Update the version in `_version.py`, and put it back to dev (e.g. 0.1.0 -> 0.2.0.dev).

0 commit comments

Comments
 (0)