@@ -393,25 +393,22 @@ jobs:
393393 - " dc:5f:39:48:00:b4:72:34:e1:d2:c4:e1:1f:d1:e2:ce" # plotlydocbot
394394
395395 - checkout
396-
397- # Download and cache dependencies
398- - restore_cache :
399- key : v2-dependencies-{{ checksum "doc/requirements.txt" }}-{{ checksum ".circleci/config.yml" }}
400396 - browser-tools/install-chrome
401397 - browser-tools/install-chromedriver
402398
403399 - run :
404400 name : install dependencies
405401 command : |
406402 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
411408 if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then
412- pip uninstall -y plotly
409+ uv pip uninstall -y plotly
413410 cd ..
414- pip install -e .
411+ uv pip install -e .
415412 cd js
416413 npm ci
417414 npm run build
@@ -427,17 +424,11 @@ jobs:
427424 sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename
428425 echo 'export PATH="/home/circleci/project/node_modules/.bin:$PATH"' >> $BASH_ENV
429426
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-
436427 - run :
437428 name : make html
438429 command : |
439430 cd doc
440- . venv/bin/activate
431+ source . venv/bin/activate
441432 echo ${mapbox_token} > python/.mapbox_token
442433 make -kj8 || make -kj8
443434 curl https://raw.githubusercontent.com/plotly/graphing-library-docs/master/front-matter-ci.py > front-matter-ci.py
@@ -486,14 +477,14 @@ jobs:
486477 name : make doc
487478 command : |
488479 cd doc
489- . venv/bin/activate
480+ source . venv/bin/activate
490481 # For the API doc, we need to use the local version of plotly
491482 # since we are tweaking the source because of
492483 # graph_objs/graph_objects
493484 if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then
494- pip uninstall -y plotly
485+ uv pip uninstall -y plotly
495486 cd ..
496- pip install -e .
487+ uv pip install -e .
497488 cd doc
498489 cd apidoc
499490 make html
0 commit comments