Skip to content

Commit

Permalink
Fix bump file (#343)
Browse files Browse the repository at this point in the history
* Fix dependencies

* fix bump file

* lint

* Temporary skip check-python from releaser checks
  • Loading branch information
brichet authored Oct 17, 2024
1 parent 2e3cf4a commit b3d8d29
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 3 additions & 4 deletions projects/jupyter-collaboration/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
dependencies = ["jupyter_collaboration>=3.0.0b8", "jupyter_collaboration_ui>=1.0.0b8", "jupyter_docprovider>=1.0.0b8", "jupyter_server_ydoc>=1.0.0b8"]

[build-system]
build-backend = "hatchling.build"
Expand Down Expand Up @@ -30,9 +29,9 @@ classifiers = [
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
]
dependencies = [
"jupyter-server-ydoc>=1.0.0b1",
"jupyter-collaboration-ui>=1.0.0b1",
"jupyter-docprovider>=1.0.0b1"
"jupyter-server-ydoc>=1.0.0b8",
"jupyter-collaboration-ui>=1.0.0b8",
"jupyter-docprovider>=1.0.0b8"
]
dynamic = ["version"]

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ packages = [
allow-direct-references = true

[tool.jupyter-releaser]
skip = ["check-links"]
skip = ["check-links", "check-python"]

[tool.jupyter-releaser.options]
# `--skip-if-dirty` is a workaround for https://github.com/jupyter-server/jupyter_releaser/issues/567
Expand Down
12 changes: 8 additions & 4 deletions scripts/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,17 @@ def bump(force, skip_if_dirty, spec):

# bump the required version in jupyter-collaboration metapackage
# to ensure that users can just upgrade `jupyter-collaboration`
# and get all fixes for free
# and get all fixes for free.
# Formatting based on https://stackoverflow.com/questions/70721025/tomlkit-nicely-formatted-array-with-inline-tables
metapackage = "jupyter-collaboration"
metapackage_toml_path = HERE / "projects" / metapackage / "pyproject.toml"
metapackage_toml = tomlkit.parse(metapackage_toml_path.read_text())
metapackage_toml["dependencies"] = [
key + ">=" + project_pins[key] for key in sorted(project_pins) if key != metapackage
]
metapackage_toml.get("project").remove("dependencies")
dependencies = tomlkit.array()
for key in sorted(project_pins):
if key != metapackage.replace("-", "_"):
dependencies.add_line(key + ">=" + project_pins[key])
metapackage_toml.get("project").add("dependencies", dependencies.multiline(True))
metapackage_toml_path.write_text(tomlkit.dumps(metapackage_toml))

path = HERE.joinpath("package.json")
Expand Down

0 comments on commit b3d8d29

Please sign in to comment.