Skip to content

Commit a333e8c

Browse files
committed
set virtualenv version in bump-version script directly
1 parent a72f300 commit a333e8c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ requires = [
33
"hatchling>=1.5.0",
44
"jupyterlab>=4.0.0,<5",
55
"hatch-nodejs-version>=0.3.2",
6-
# Workaround for https://github.com/jupyter-server/jupyter_releaser/issues/613
7-
"virtualenv!=20.35.0",
86
]
97
build-backend = "hatchling.build"
108

@@ -63,7 +61,7 @@ exclude = [".github", "binder"]
6361
path = "jupyter_ai_chat_commands/_version.py"
6462

6563
[tool.hatch.build.hooks.jupyter-builder]
66-
dependencies = ["hatch-jupyter-builder>=0.5", "virtualenv!=20.35.0"]
64+
dependencies = ["hatch-jupyter-builder>=0.5"]
6765
build-function = "hatch_jupyter_builder.npm_builder"
6866
ensured-targets = [
6967
"jupyter_ai_chat_commands/labextension/static/style.js",
@@ -82,7 +80,8 @@ source_dir = "src"
8280
build_dir = "jupyter_ai_chat_commands/labextension"
8381

8482
[tool.jupyter-releaser.options]
85-
version_cmd = "hatch version"
83+
# Workaround for https://github.com/jupyter-server/jupyter_releaser/issues/613
84+
version_cmd = "pip uninstall virtualenv && pip install virtualenv!=20.35.0 && hatch version"
8685

8786
[tool.jupyter-releaser.hooks]
8887
before-build-npm = [

0 commit comments

Comments
 (0)