New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version piplite with the bump-version
script
#421
Conversation
scripts/bump-version.py
Outdated
@@ -23,8 +23,9 @@ | |||
|
|||
PYOLITE_PACKAGE = ROOT / "packages" / "pyolite-kernel" | |||
PYOLITE_PACKAGE_JSON = PYOLITE_PACKAGE / "package.json" | |||
PYOLITE_KERNEL_SOURCE = PYOLITE_PACKAGE / "src" / "kernel.ts" | |||
PYPI_SOURCE = PYOLITE_PACKAGE / "src" / "_pypi.ts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm... this file gets generated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The real source of truth migh tbe: https://github.com/jupyterlite/jupyterlite/blob/main/packages/pyolite-kernel/package.json#L69 (unless that's covered above)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this one is not needed actually, gonna double check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gets regenerated by doit build:js:piplite:wheels
, so if that happens after this runs...
|
||
# bump pyolite version | ||
pyolite_json = json.loads(PYOLITE_PACKAGE_JSON.read_text(**ENC)) | ||
pyolite_json["pyolite"]["packages"]["py/pyolite"] = py_version | ||
pyolite_json["pyolite"]["packages"]["py/piplite"] = py_version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, is covered here
Also since this string search / replace is a bit brittle, it should probably just fail it if fails to do the replace. So the check release CI check would be able to catch future changes. |
d965ed4
to
fda0358
Compare
This seems to be looking good now. Let's merge and I'll make a release later today. |
References
Fixes #420
Code changes
Update the
bump-version.py
script to version the packages, as a follow-up to #310.User-facing changes
So the following code snippet:
Gives a consistent version.
Backwards-incompatible changes
None