Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.24 KB

RELEASE.md

File metadata and controls

62 lines (43 loc) · 1.24 KB

Manual release

This extension can be distributed as Python packages. All of the Python packaging instructions in the pyproject.toml file to wrap your extension in a Python package. Before generating a package, we first need to install build.

pip install build twine

Bump version in all relevant files

  • package.json
  • package-lock.json
  • pgljupyter/_frontend.py
  • pgljupyter/_version.py

Update README

  • version
  • API spec
  • descriptions

Commit all changes in branch develop

Build python pkgs and publish them

Activate conda dev env and emsdk e.g.

conda activate pgljupyter-dev
source ~/emsdk/emsdk_env.sh

You need build and twine installed. To create a Python source package (.tar.gz) and the binary package (.whl) in the dist/ directory, do:

npm run build:prod
python -m build

Make sure there are no old/oudated files in dist/ Then to upload the package to PyPI, do:

twine upload dist/pgljupyter-*

Test if npm builds and publish npm pkg

Mainly for tools like nbviewer or vscode that load widgets from the npm package.

npm login
npm publish

Merge changes into master, tag and push

git push
git tag -a v{version} -m "v{version}"
git push --tags