-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from jvail/master
v2.0.0
- Loading branch information
Showing
56 changed files
with
15,283 additions
and
7,719 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,3 +158,5 @@ pgljupyter/labextension/*.tgz | |
pgljupyter/labextension | ||
|
||
.vscode | ||
|
||
examples/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
.DS_Store | ||
node_modules/ | ||
tests/ | ||
.jshintrc | ||
# Ignore any build output from python: | ||
dist/*.tar.gz | ||
dist/*.wheel | ||
examples | ||
src/pgljs/plantgl | ||
src/pgljs/build | ||
src/pgljs/dist |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
## 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`. | ||
|
||
```bash | ||
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. | ||
|
||
```bash | ||
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: | ||
|
||
```bash | ||
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: | ||
|
||
```bash | ||
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. | ||
|
||
```bash | ||
npm login | ||
npm publish | ||
``` | ||
|
||
## Merge changes into master, tag and push | ||
|
||
```bash | ||
git push | ||
git tag -a v{version} -m "v{version}" | ||
git push --tags | ||
``` |
Oops, something went wrong.