@@ -16,15 +16,13 @@ commands:
16
16
- run :
17
17
name : Install dependencies
18
18
command : |
19
- cd packages/python/plotly
20
19
python -m venv venv
21
20
. venv/bin/activate
22
21
pip install --upgrade pip wheel
23
22
pip install -r ./test_requirements/requirements_<<parameters.py>>_core.txt
24
23
- run :
25
24
name : Test core
26
25
command : |
27
- cd packages/python/plotly
28
26
. venv/bin/activate
29
27
pytest plotly/tests/test_core
30
28
no_output_timeout : 20m
@@ -41,7 +39,6 @@ commands:
41
39
- run :
42
40
name : Install dependencies
43
41
command : |
44
- cd packages/python/plotly
45
42
python -m venv venv
46
43
. venv/bin/activate
47
44
pip install --upgrade pip wheel
@@ -52,47 +49,40 @@ commands:
52
49
- run :
53
50
name : Install plotly-geo
54
51
command : |
55
- cd packages/python/plotly
56
52
. venv/bin/activate
57
53
pip install plotly-geo
58
54
- run :
59
55
name : Test core
60
56
command : |
61
- cd packages/python/plotly
62
57
. venv/bin/activate
63
58
pytest plotly/tests/test_core
64
59
no_output_timeout : 20m
65
60
- run :
66
61
name : Test optional
67
62
command : |
68
- cd packages/python/plotly
69
63
. venv/bin/activate
70
64
pytest plotly/tests/test_optional
71
65
no_output_timeout : 40m
72
66
- run :
73
67
name : Test utils
74
68
command : |
75
- cd packages/python/plotly
76
69
. venv/bin/activate
77
70
pytest _plotly_utils/tests/
78
71
no_output_timeout : 20m
79
72
- run :
80
73
name : Test io
81
74
command : |
82
- cd packages/python/plotly
83
75
. venv/bin/activate
84
76
pytest plotly/tests/test_io
85
77
no_output_timeout : 20m
86
78
- run :
87
79
name : Test dependencdies not imported
88
80
command : |
89
- cd packages/python/plotly
90
81
. venv/bin/activate
91
82
pytest -x test_init/test_dependencies_not_imported.py
92
83
- run :
93
84
name : Test lazy imports
94
85
command : |
95
- cd packages/python/plotly
96
86
. venv/bin/activate
97
87
pytest -x test_init/test_lazy_imports.py
98
88
test_orca :
@@ -107,15 +97,13 @@ commands:
107
97
- run :
108
98
name : Install dependencies
109
99
command : |
110
- cd packages/python/plotly
111
100
python -m venv venv
112
101
. venv/bin/activate
113
102
pip install --upgrade pip wheel
114
103
pip install -r ./test_requirements/requirements_<<parameters.py>>_optional.txt
115
104
- run :
116
105
name : Install plotly-geo
117
106
command : |
118
- cd packages/python/plotly
119
107
. venv/bin/activate
120
108
pip install plotly-geo
121
109
- run :
@@ -129,12 +117,11 @@ commands:
129
117
- run :
130
118
name : Test orca
131
119
command : |
132
- cd packages/python/plotly
133
120
. venv/bin/activate
134
121
pytest plotly/tests/test_orca
135
122
no_output_timeout : 20m
136
123
- store_artifacts :
137
- path : packages/python/plotly/ plotly/tests/test_orca/images/linux/failed
124
+ path : plotly/tests/test_orca/images/linux/failed
138
125
139
126
jobs :
140
127
check-code-formatting :
@@ -283,9 +270,9 @@ jobs:
283
270
python -m venv venv
284
271
. venv/bin/activate
285
272
pip install --upgrade pip wheel
286
- pip install -e ./packages/python/plotly
273
+ pip install -e .
287
274
pip install plotly-geo
288
- pip install -r ./packages/python/plotly/ test_requirements/requirements_39_pandas_2_optional.txt
275
+ pip install -r test_requirements/requirements_39_pandas_2_optional.txt
289
276
290
277
- run :
291
278
name : Build html figures (Pandas 2)
@@ -322,7 +309,6 @@ jobs:
322
309
- run :
323
310
name : Install dependencies
324
311
command : |
325
- cd packages/python/plotly
326
312
python -m venv venv
327
313
. venv/bin/activate
328
314
pip install --upgrade pip wheel
@@ -331,27 +317,23 @@ jobs:
331
317
- run :
332
318
name : Update jupyter widget plotly.js version
333
319
command : |
334
- cd packages/python/plotly
335
320
. venv/bin/activate
336
321
python setup.py updateplotlywidgetversion
337
322
- run :
338
323
name : Update plotly.js to dev
339
324
command : |
340
- cd packages/python/plotly
341
325
. venv/bin/activate
342
326
python setup.py updateplotlyjsdev
343
327
- run :
344
328
name : Test core
345
329
command : |
346
- cd packages/python/plotly
347
330
. venv/bin/activate
348
331
locale
349
332
pytest -k 'not nodev' plotly/tests/test_core
350
333
no_output_timeout : 20m
351
334
- run :
352
335
name : Commit
353
336
command : |
354
- cd packages/python/plotly
355
337
git config --global user.email "you@example.com"
356
338
git config --global user.name "Your Name"
357
339
git add -A
@@ -360,12 +342,11 @@ jobs:
360
342
- run :
361
343
name : Build source distribution packages
362
344
command : |
363
- cd packages/python/plotly
364
345
. venv/bin/activate
365
346
python setup.py sdist
366
347
when : always
367
348
- store_artifacts :
368
- path : packages/python/plotly/ dist
349
+ path : dist/
369
350
370
351
full_build :
371
352
docker :
@@ -392,7 +373,7 @@ jobs:
392
373
command : |
393
374
eval "$(conda shell.bash hook)"
394
375
conda activate env
395
- cd packages/python/plotly/ js
376
+ cd js
396
377
npm ci
397
378
npm run build
398
379
git status
@@ -402,27 +383,25 @@ jobs:
402
383
command : |
403
384
eval "$(conda shell.bash hook)"
404
385
conda activate env
405
- cd packages/python/plotly
406
386
python setup.py sdist bdist_wheel
407
- cp -R dist ../../../ output/dist
387
+ cp -R dist output/dist
408
388
git status
409
389
410
390
- run :
411
391
name : Conda Build
412
392
command : |
413
393
eval "$(conda shell.bash hook)"
414
394
conda activate env
415
- cd packages/python/plotly
416
395
conda build recipe/
417
- mv /opt/conda/envs/env/conda-bld/noarch/plotly*.tar.bz2 ../../../ output
396
+ mv /opt/conda/envs/env/conda-bld/noarch/plotly*.tar.bz2 output/
418
397
git status
419
398
420
399
- run :
421
400
name : Build Widget javascript bundle
422
401
command : |
423
402
eval "$(conda shell.bash hook)"
424
403
conda activate env
425
- cd packages/python/plotly/ js
404
+ cd js
426
405
npm ci
427
406
npm run build
428
407
@@ -471,12 +450,12 @@ jobs:
471
450
pip install -r requirements.txt
472
451
if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then
473
452
pip uninstall -y plotly
474
- cd ../packages/python/plotly
453
+ cd ..
475
454
pip install -e .
476
455
cd js
477
456
npm ci
478
457
npm run build
479
- cd ../../../../ doc
458
+ cd ../doc
480
459
fi
481
460
cd ..
482
461
- run :
@@ -553,9 +532,9 @@ jobs:
553
532
# graph_objs/graph_objects
554
533
if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then
555
534
pip uninstall -y plotly
556
- cd ../packages/python/plotly
535
+ cd ..
557
536
pip install -e .
558
- cd ../../../ doc
537
+ cd doc
559
538
cd apidoc
560
539
make html
561
540
cd _build/html
0 commit comments