Skip to content

Commit 8f78e27

Browse files
krassowskijtpio
andauthored
Backport PR #16450 on branch 4.2.x (Align extension migration docs with the latest extension template) (#16503)
* Backport PR #16450: Align extension migration docs with the latest extension template * Bump pydantic constraint --------- Co-authored-by: Jeremy Tuloup <jeremy.tuloup@gmail.com>
1 parent 9223530 commit 8f78e27

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/source/extension/extension_migration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Or with ``conda``:
189189

190190
.. code:: bash
191191
192-
conda install -c conda-forge jupyterlab=4 "copier=8" jinja2-time tomli-w "pydantic<2" "pyyaml-include<2.0"
192+
conda install -c conda-forge jupyterlab=4 "copier=9" jinja2-time
193193
194194
195195
Then at the root folder of the extension, run:

docs/source/extension/notebook.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ Start from the extension template.
248248

249249
.. code-block:: shell
250250
251-
pip install "copier~=8.0" jinja2-time
251+
pip install "copier~=9" jinja2-time
252252
mkdir myextension
253253
cd myextension
254-
copier copy --UNSAFE https://github.com/jupyterlab/extension-template .
254+
copier copy --trust https://github.com/jupyterlab/extension-template .
255255
256256
Install the dependencies. Note that extensions are built against the
257257
released npm packages, not the development versions.

jupyterlab/upgrade_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def update_extension( # noqa
341341
if answer_file.exists():
342342
msg = "This script won't do anything for copier template, instead execute in your extension directory:\n\n copier update"
343343
if tuple(copier.__version__.split(".")) >= ("8", "0", "0"):
344-
msg += " --UNSAFE"
344+
msg += " --trust"
345345
print(msg)
346346
else:
347347
update_extension(args.path, args.vcs_ref, args.no_input is False)

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ dev = [
122122
"ruff==0.3.5",
123123
]
124124
upgrade-extension = [
125-
"pyyaml-include<2.0",
126-
"copier>=8,<10",
125+
"pyyaml-include<3.0",
126+
"copier>=9,<10",
127127
"jinja2-time<0.3",
128-
"pydantic<2.0",
128+
"pydantic<3.0",
129129
"tomli-w<2.0"
130130
]
131131

0 commit comments

Comments
 (0)