@@ -18,13 +18,13 @@ commands:
18
18
command : |
19
19
python -m venv venv
20
20
. venv/bin/activate
21
- pip install --upgrade pip wheel
21
+ pip install -e .
22
22
pip install -r ./test_requirements/requirements_<<parameters.py>>_core.txt
23
23
- run :
24
24
name : Test core
25
25
command : |
26
26
. venv/bin/activate
27
- python -m pytest plotly/ tests/test_core
27
+ pytest tests/test_core
28
28
no_output_timeout : 20m
29
29
30
30
test_optional :
@@ -41,7 +41,7 @@ commands:
41
41
command : |
42
42
python -m venv venv
43
43
. venv/bin/activate
44
- pip install --upgrade pip wheel
44
+ pip install -e .
45
45
pip install -r ./test_requirements/requirements_<<parameters.py>>_optional.txt
46
46
cd js
47
47
npm ci
@@ -55,25 +55,25 @@ commands:
55
55
name : Test core
56
56
command : |
57
57
. venv/bin/activate
58
- python -m pytest plotly/ tests/test_core
58
+ pytest tests/test_core
59
59
no_output_timeout : 20m
60
60
- run :
61
61
name : Test optional
62
62
command : |
63
63
. venv/bin/activate
64
- python -m pytest plotly/ tests/test_optional
64
+ pytest tests/test_optional
65
65
no_output_timeout : 40m
66
66
- run :
67
67
name : Test utils
68
68
command : |
69
69
. venv/bin/activate
70
- python -m pytest _plotly_utils/ tests/
70
+ pytest tests/test_plotly_utils /
71
71
no_output_timeout : 20m
72
72
- run :
73
73
name : Test io
74
74
command : |
75
75
. venv/bin/activate
76
- python -m pytest plotly/ tests/test_io
76
+ pytest tests/test_io
77
77
no_output_timeout : 20m
78
78
- run :
79
79
name : Test dependencdies not imported
@@ -99,7 +99,6 @@ commands:
99
99
command : |
100
100
python -m venv venv
101
101
. venv/bin/activate
102
- pip install --upgrade pip wheel
103
102
pip install -r ./test_requirements/requirements_<<parameters.py>>_optional.txt
104
103
- run :
105
104
name : Install plotly-geo
@@ -118,10 +117,10 @@ commands:
118
117
name : Test orca
119
118
command : |
120
119
. venv/bin/activate
121
- python -m pytest plotly/ tests/test_orca
120
+ pytest tests/test_orca
122
121
no_output_timeout : 20m
123
122
- store_artifacts :
124
- path : plotly/ tests/test_orca/images/linux/failed
123
+ path : tests/test_orca/images/linux/failed
125
124
126
125
jobs :
127
126
check-code-formatting :
@@ -269,7 +268,6 @@ jobs:
269
268
command : |
270
269
python -m venv venv
271
270
. venv/bin/activate
272
- pip install --upgrade pip wheel
273
271
pip install -e .
274
272
pip install plotly-geo
275
273
pip install -r test_requirements/requirements_39_pandas_2_optional.txt
@@ -299,7 +297,7 @@ jobs:
299
297
300
298
plotlyjs_dev_build :
301
299
docker :
302
- - image : cimg/python:3.8 -node
300
+ - image : cimg/python:3.11 -node
303
301
environment :
304
302
LANG : en_US.UTF-8
305
303
resource_class : large
@@ -311,25 +309,20 @@ jobs:
311
309
command : |
312
310
python -m venv venv
313
311
. venv/bin/activate
314
- pip install --upgrade pip wheel
315
- pip install -r ./test_requirements/requirements_38_core .txt black inflect
312
+ pip install -e .
313
+ pip install -r ./test_requirements/requirements_311_core .txt black inflect
316
314
pip install jupyterlab
317
- - run :
318
- name : Update jupyter widget plotly.js version
319
- command : |
320
- . venv/bin/activate
321
- python setup.py updateplotlywidgetversion
322
315
- run :
323
316
name : Update plotly.js to dev
324
317
command : |
325
318
. venv/bin/activate
326
- python setup .py updateplotlyjsdev
319
+ python commands .py updateplotlyjsdev
327
320
- run :
328
321
name : Test core
329
322
command : |
330
323
. venv/bin/activate
331
324
locale
332
- python -m pytest -k 'not nodev' plotly/ tests/test_core
325
+ pytest -k 'not nodev' tests/test_core
333
326
no_output_timeout : 20m
334
327
- run :
335
328
name : Commit
@@ -343,36 +336,27 @@ jobs:
343
336
name : Build source distribution packages
344
337
command : |
345
338
. venv/bin/activate
346
- python setup.py sdist
339
+ pip install build
340
+ python -m build --sdist --wheel -o dist
347
341
when : always
348
342
- store_artifacts :
349
343
path : dist/
350
344
351
345
full_build :
352
346
docker :
353
- - image : continuumio/miniconda3:24.3.0-0
347
+ - image : cimg/python:3.11-node
354
348
environment :
355
349
LANG : en_US.UTF-8
356
350
resource_class : large
357
351
358
352
steps :
359
353
- checkout
360
354
361
- - run :
362
- name : Create conda environment
363
- command : |
364
- conda config --remove channels defaults
365
- conda config --add channels conda-forge
366
- conda create -n env --yes python=3.9 conda-build=3.28.4 conda-verify
367
- conda install -n env -c conda-forge jupyterlab nodejs=16
368
- conda init bash
369
- mkdir output
370
-
371
355
- run :
372
356
name : initial NPM Build
373
357
command : |
374
- eval "$(conda shell.bash hook)"
375
- conda activate env
358
+ python -m venv venv
359
+ . venv/bin/ activate
376
360
cd js
377
361
npm ci
378
362
npm run build
@@ -381,41 +365,17 @@ jobs:
381
365
- run :
382
366
name : PyPI Build
383
367
command : |
384
- eval "$(conda shell.bash hook)"
385
- conda activate env
386
- python setup.py sdist bdist_wheel
387
- cp -R dist output/dist
388
- git status
389
-
390
- - run :
391
- name : Conda Build
392
- command : |
393
- eval "$(conda shell.bash hook)"
394
- conda activate env
395
- conda build recipe/
396
- mv /opt/conda/envs/env/conda-bld/noarch/plotly*.tar.bz2 output/
368
+ . venv/bin/activate
369
+ pip install build
370
+ python -m build --sdist --wheel -o dist
371
+ cp -R dist output
397
372
git status
398
373
399
- - run :
400
- name : Build Widget javascript bundle
401
- command : |
402
- eval "$(conda shell.bash hook)"
403
- conda activate env
404
- cd js
405
- npm ci
406
- npm run build
407
-
408
374
- run :
409
375
name : Zip output
410
376
command : |
411
377
tar czf output.tgz output
412
378
413
- - run :
414
- name : Git Diff
415
- command : |
416
- git status
417
- git diff
418
-
419
379
- store_artifacts :
420
380
path : output.tgz
421
381
@@ -445,7 +405,6 @@ jobs:
445
405
cd doc
446
406
python -m venv venv
447
407
. venv/bin/activate
448
- pip install --upgrade pip wheel
449
408
pip uninstall -y plotly
450
409
pip install -r requirements.txt
451
410
if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then
0 commit comments