[Feat] [pydeck] Update frontend_semver.py when jupyter-widget version changes
Target Use Case
There are methods to bump versions across the various package.json files in deck.gl. However, pydeck's frontend_semver.py is not updated when these versions change. This may be because pydeck releases are not synchronized with deck.gl releases, but I could not find a documented way to run pydeck with the jupyter-widget module when building/running from source because the semver link between pydeck and jupyter-widget is broken, leading to errors:
Unhandled Promise Rejection: Error: Module @deck.gl/jupyter-widget, semver range ~8.5.* is not registered as a widget module
There is a bump_version.py script that pulls the version info from deck.gl and updates frontend_semver.py, but this is lumped in with setting the pydeck release (one has to choose major/minor, etc.)
Proposal
I see three potential solutions:
- Modify the
bump_version.pyscript so it can be called to only runrewrite_frontend_version_fileand put this step into the Makefile - Create a separate script (e.g.
link_frontend.py) that callsrewrite_frontend_version_fileand document this in the installing from source docs - Automatically update the
frontend_semver.pyfile when deck.gl versions change
Note that these could be combined so that the link_frontend.py script is created, used in the Makefile, and also called as part of the global version update action.