deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Feat] [pydeck] Update frontend_semver.py when jupyter-widget version changes

Open dakoop opened this issue 3 years ago • 0 comments

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:

  1. Modify the bump_version.py script so it can be called to only run rewrite_frontend_version_file and put this step into the Makefile
  2. Create a separate script (e.g. link_frontend.py) that calls rewrite_frontend_version_file and document this in the installing from source docs
  3. Automatically update the frontend_semver.py file 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.

dakoop avatar Jun 10 '22 21:06 dakoop