Skip to content

Commit 0bac79d

Browse files
Merge branch 'master' into patch-2
2 parents 6c2426a + 86a7e12 commit 0bac79d

File tree

15,298 files changed

+703
-10948
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

15,298 files changed

+703
-10948
lines changed

.circleci/config.yml

Lines changed: 18 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ commands:
1616
- run:
1717
name: Install dependencies
1818
command: |
19-
cd packages/python/plotly
2019
python -m venv venv
2120
. venv/bin/activate
2221
pip install --upgrade pip wheel
2322
pip install -r ./test_requirements/requirements_<<parameters.py>>_core.txt
2423
- run:
2524
name: Test core
2625
command: |
27-
cd packages/python/plotly
2826
. venv/bin/activate
2927
pytest plotly/tests/test_core
3028
no_output_timeout: 20m
@@ -41,7 +39,6 @@ commands:
4139
- run:
4240
name: Install dependencies
4341
command: |
44-
cd packages/python/plotly
4542
python -m venv venv
4643
. venv/bin/activate
4744
pip install --upgrade pip wheel
@@ -52,47 +49,40 @@ commands:
5249
- run:
5350
name: Install plotly-geo
5451
command: |
55-
cd packages/python/plotly-geo
56-
. ../plotly/venv/bin/activate
57-
pip install -e .
52+
. venv/bin/activate
53+
pip install plotly-geo
5854
- run:
5955
name: Test core
6056
command: |
61-
cd packages/python/plotly
6257
. venv/bin/activate
6358
pytest plotly/tests/test_core
6459
no_output_timeout: 20m
6560
- run:
6661
name: Test optional
6762
command: |
68-
cd packages/python/plotly
6963
. venv/bin/activate
7064
pytest plotly/tests/test_optional
7165
no_output_timeout: 40m
7266
- run:
7367
name: Test utils
7468
command: |
75-
cd packages/python/plotly
7669
. venv/bin/activate
7770
pytest _plotly_utils/tests/
7871
no_output_timeout: 20m
7972
- run:
8073
name: Test io
8174
command: |
82-
cd packages/python/plotly
8375
. venv/bin/activate
8476
pytest plotly/tests/test_io
8577
no_output_timeout: 20m
8678
- run:
8779
name: Test dependencdies not imported
8880
command: |
89-
cd packages/python/plotly
9081
. venv/bin/activate
9182
pytest -x test_init/test_dependencies_not_imported.py
9283
- run:
9384
name: Test lazy imports
9485
command: |
95-
cd packages/python/plotly
9686
. venv/bin/activate
9787
pytest -x test_init/test_lazy_imports.py
9888
test_orca:
@@ -107,17 +97,15 @@ commands:
10797
- run:
10898
name: Install dependencies
10999
command: |
110-
cd packages/python/plotly
111100
python -m venv venv
112101
. venv/bin/activate
113102
pip install --upgrade pip wheel
114103
pip install -r ./test_requirements/requirements_<<parameters.py>>_optional.txt
115104
- run:
116105
name: Install plotly-geo
117106
command: |
118-
cd packages/python/plotly-geo
119-
. ../plotly/venv/bin/activate
120-
pip install -e .
107+
. venv/bin/activate
108+
pip install plotly-geo
121109
- run:
122110
name: Install orca
123111
command: |
@@ -129,12 +117,11 @@ commands:
129117
- run:
130118
name: Test orca
131119
command: |
132-
cd packages/python/plotly
133120
. venv/bin/activate
134121
pytest plotly/tests/test_orca
135122
no_output_timeout: 20m
136123
- store_artifacts:
137-
path: packages/python/plotly/plotly/tests/test_orca/images/linux/failed
124+
path: plotly/tests/test_orca/images/linux/failed
138125

139126
jobs:
140127
check-code-formatting:
@@ -283,9 +270,10 @@ jobs:
283270
python -m venv venv
284271
. venv/bin/activate
285272
pip install --upgrade pip wheel
286-
pip install -e ./packages/python/plotly
287-
pip install -e ./packages/python/plotly-geo
288-
pip install -r ./packages/python/plotly/test_requirements/requirements_39_pandas_2_optional.txt
273+
pip install -e .
274+
pip install plotly-geo
275+
pip install -r test_requirements/requirements_39_pandas_2_optional.txt
276+
289277
- run:
290278
name: Build html figures (Pandas 2)
291279
command: |
@@ -309,30 +297,6 @@ jobs:
309297
npx percy snapshot -c test/percy/snapshots.yml test/percy/
310298
rm test/percy/*.html
311299
312-
# Chart studio
313-
python_38_chart_studio:
314-
docker:
315-
- image: cimg/python:3.8
316-
resource_class: large
317-
318-
steps:
319-
- checkout
320-
- run:
321-
name: Install dependencies
322-
command: |
323-
cd packages/python/chart-studio
324-
python -m venv venv
325-
. venv/bin/activate
326-
pip install --upgrade pip wheel
327-
pip install -r ./test_requirements/requirements_38.txt
328-
- run:
329-
name: Tests
330-
command: |
331-
cd packages/python/chart-studio
332-
. venv/bin/activate
333-
pytest -x chart_studio/tests/
334-
no_output_timeout: 20m
335-
336300
plotlyjs_dev_build:
337301
docker:
338302
- image: cimg/python:3.8-node
@@ -345,7 +309,6 @@ jobs:
345309
- run:
346310
name: Install dependencies
347311
command: |
348-
cd packages/python/plotly
349312
python -m venv venv
350313
. venv/bin/activate
351314
pip install --upgrade pip wheel
@@ -354,27 +317,23 @@ jobs:
354317
- run:
355318
name: Update jupyter widget plotly.js version
356319
command: |
357-
cd packages/python/plotly
358320
. venv/bin/activate
359321
python setup.py updateplotlywidgetversion
360322
- run:
361323
name: Update plotly.js to dev
362324
command: |
363-
cd packages/python/plotly
364325
. venv/bin/activate
365326
python setup.py updateplotlyjsdev
366327
- run:
367328
name: Test core
368329
command: |
369-
cd packages/python/plotly
370330
. venv/bin/activate
371331
locale
372332
pytest -k 'not nodev' plotly/tests/test_core
373333
no_output_timeout: 20m
374334
- run:
375335
name: Commit
376336
command: |
377-
cd packages/python/plotly
378337
git config --global user.email "you@example.com"
379338
git config --global user.name "Your Name"
380339
git add -A
@@ -383,12 +342,11 @@ jobs:
383342
- run:
384343
name: Build source distribution packages
385344
command: |
386-
cd packages/python/plotly
387345
. venv/bin/activate
388346
python setup.py sdist
389347
when: always
390348
- store_artifacts:
391-
path: packages/python/plotly/dist
349+
path: dist/
392350

393351
full_build:
394352
docker:
@@ -415,7 +373,7 @@ jobs:
415373
command: |
416374
eval "$(conda shell.bash hook)"
417375
conda activate env
418-
cd packages/python/plotly/js
376+
cd js
419377
npm ci
420378
npm run build
421379
git status
@@ -425,27 +383,25 @@ jobs:
425383
command: |
426384
eval "$(conda shell.bash hook)"
427385
conda activate env
428-
cd packages/python/plotly
429386
python setup.py sdist bdist_wheel
430-
cp -R dist ../../../output/dist
387+
cp -R dist output/dist
431388
git status
432389
433390
- run:
434391
name: Conda Build
435392
command: |
436393
eval "$(conda shell.bash hook)"
437394
conda activate env
438-
cd packages/python/plotly
439395
conda build recipe/
440-
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/
441397
git status
442398
443399
- run:
444400
name: Build Widget javascript bundle
445401
command: |
446402
eval "$(conda shell.bash hook)"
447403
conda activate env
448-
cd packages/python/plotly/js
404+
cd js
449405
npm ci
450406
npm run build
451407
@@ -494,12 +450,12 @@ jobs:
494450
pip install -r requirements.txt
495451
if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then
496452
pip uninstall -y plotly
497-
cd ../packages/python/plotly
453+
cd ..
498454
pip install -e .
499455
cd js
500456
npm ci
501457
npm run build
502-
cd ../../../../doc
458+
cd ../doc
503459
fi
504460
cd ..
505461
- run:
@@ -576,9 +532,9 @@ jobs:
576532
# graph_objs/graph_objects
577533
if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then
578534
pip uninstall -y plotly
579-
cd ../packages/python/plotly
535+
cd ..
580536
pip install -e .
581-
cd ../../../doc
537+
cd doc
582538
cd apidoc
583539
make html
584540
cd _build/html

.flake8

Lines changed: 0 additions & 2 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
packages/python/plotly/plotly/_version.py export-subst
1+
plotly/_version.py export-subst

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
0
22
0.html
33
iframe_figures/
4-
packages/python/plotly/plotly/tests/test_orca/images/linux/failed/
4+
plotly/tests/test_orca/images/linux/failed/
55

66
*.egg-info
77

@@ -15,6 +15,7 @@ doc/python/raw.githubusercontent.com/
1515

1616
# Don't ignore dataset files
1717
!*.csv.gz
18+
!*.geojson.gz
1819

1920
*.ipynb
2021

@@ -59,10 +60,9 @@ doc/.ipynb_checkpoints
5960
tags
6061
doc/check-or-enforce-order.py
6162

62-
packages/javascript/jupyterlab-plotly/lib/
63-
packages/python/plotly/jupyterlab_plotly/labextension/
64-
packages/python/plotly/jupyterlab_plotly/nbextension/index.js*
65-
packages/python/plotly/plotly/package_data/widgetbundle.js
63+
jupyterlab_plotly/labextension/
64+
jupyterlab_plotly/nbextension/index.js*
65+
plotly/package_data/widgetbundle.js
6666

6767
test/percy/*.html
6868
test/percy/pandas2/*.html

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.

README.md

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)