@@ -393,25 +393,22 @@ jobs:
393
393
- " dc:5f:39:48:00:b4:72:34:e1:d2:c4:e1:1f:d1:e2:ce" # plotlydocbot
394
394
395
395
- checkout
396
-
397
- # Download and cache dependencies
398
- - restore_cache :
399
- key : v2-dependencies-{{ checksum "doc/requirements.txt" }}-{{ checksum ".circleci/config.yml" }}
400
396
- browser-tools/install-chrome
401
397
- browser-tools/install-chromedriver
402
398
403
399
- run :
404
400
name : install dependencies
405
401
command : |
406
402
cd doc
407
- python -m venv venv
408
- . venv/bin/activate
409
- pip uninstall -y plotly
410
- pip install -r requirements.txt
403
+ curl -LsSf https://astral.sh/uv/install.sh | sh
404
+ uv venv
405
+ source .venv/bin/activate
406
+ uv pip uninstall -y plotly
407
+ uv pip install -r requirements.txt
411
408
if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then
412
- pip uninstall -y plotly
409
+ uv pip uninstall -y plotly
413
410
cd ..
414
- pip install -e .
411
+ uv pip install -e .
415
412
cd js
416
413
npm ci
417
414
npm run build
@@ -427,17 +424,11 @@ jobs:
427
424
sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename
428
425
echo 'export PATH="/home/circleci/project/node_modules/.bin:$PATH"' >> $BASH_ENV
429
426
430
- - save_cache :
431
- paths :
432
- - ./doc/venv
433
- - ./doc/node_modules
434
- key : v1-dependencies-{{ checksum "doc/requirements.txt" }}-{{ checksum ".circleci/config.yml" }}
435
-
436
427
- run :
437
428
name : make html
438
429
command : |
439
430
cd doc
440
- . venv/bin/activate
431
+ source . venv/bin/activate
441
432
echo ${mapbox_token} > python/.mapbox_token
442
433
make -kj8 || make -kj8
443
434
curl https://raw.githubusercontent.com/plotly/graphing-library-docs/master/front-matter-ci.py > front-matter-ci.py
@@ -486,14 +477,14 @@ jobs:
486
477
name : make doc
487
478
command : |
488
479
cd doc
489
- . venv/bin/activate
480
+ source . venv/bin/activate
490
481
# For the API doc, we need to use the local version of plotly
491
482
# since we are tweaking the source because of
492
483
# graph_objs/graph_objects
493
484
if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then
494
- pip uninstall -y plotly
485
+ uv pip uninstall -y plotly
495
486
cd ..
496
- pip install -e .
487
+ uv pip install -e .
497
488
cd doc
498
489
cd apidoc
499
490
make html
0 commit comments