Skip to content

Commit dbcbeae

Browse files
authored
Merge pull request #2734 from graingert-coef/python-310
configure ci for python 3.10
2 parents 6a8da52 + bc1a8d3 commit dbcbeae

File tree

8 files changed

+80
-71
lines changed

8 files changed

+80
-71
lines changed

.circleci/config.yml

Lines changed: 66 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ orbs:
88
jobs:
99
artifacts:
1010
docker:
11-
- image: cimg/python:3.9.9
11+
- image: cimg/python:3.10.13
1212
auth:
1313
username: dashautomation
1414
password: $DASH_PAT_DOCKERHUB
1515
environment:
16-
PYVERSION: python39
16+
PYVERSION: python310
1717
PERCY_ENABLE: 0
1818
steps:
1919
- checkout
@@ -27,16 +27,16 @@ jobs:
2727
path: ~/dash/dash-main
2828
destination: /tmp/dash-main
2929

30-
install-dependencies-39: &install-dependencies
30+
install-dependencies-310: &install-dependencies
3131
working_directory: ~/dash
3232
docker:
33-
- image: cimg/python:3.9.9-node
33+
- image: cimg/python:3.10.13-node
3434
auth:
3535
username: dashautomation
3636
password: $DASH_PAT_DOCKERHUB
3737
environment:
38-
PYLINTRC: .pylintrc39
39-
PYVERSION: python39
38+
PYLINTRC: .pylintrc310
39+
PYVERSION: python310
4040
PERCY_ENABLE: 0
4141

4242
steps:
@@ -60,12 +60,11 @@ jobs:
6060
ls -la dash-package
6161
no_output_timeout: 30m
6262
- run:
63-
name: Display npm errors and exit on failed builds
63+
name: Display npm logs
6464
command: |
6565
if [ -d "/home/circleci/.npm/_logs" ]
6666
then
6767
cat /home/circleci/.npm/_logs/*
68-
exit 1
6968
fi
7069
- save_cache:
7170
key: dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}
@@ -88,16 +87,16 @@ jobs:
8887
PYVERSION: python36
8988
PERCY_ENABLE: 0
9089

91-
lint-unit-39: &lint-unit
90+
lint-unit-310: &lint-unit
9291
working_directory: ~/dash
9392
docker:
94-
- image: cimg/python:3.9.9-browsers
93+
- image: cimg/python:3.10.13-browsers
9594
auth:
9695
username: dashautomation
9796
password: $DASH_PAT_DOCKERHUB
9897
environment:
99-
PYLINTRC: .pylintrc39
100-
PYVERSION: python39
98+
PYLINTRC: .pylintrc310
99+
PYVERSION: python310
101100
PERCY_ENABLE: 0
102101

103102
steps:
@@ -142,7 +141,7 @@ jobs:
142141
PYVERSION: python36
143142
PERCY_ENABLE: 0
144143

145-
build-windows-39:
144+
build-windows-310:
146145
working_directory: ~/dash
147146
executor:
148147
name: win/default
@@ -157,18 +156,18 @@ jobs:
157156
pip install --no-cache-dir --upgrade -e .[dev,testing] --progress-bar off
158157
cd dash/dash-renderer && renderer build && cd ../../
159158
160-
test-39: &test
159+
test-310: &test
161160
working_directory: ~/dash
162161
docker:
163-
- image: cimg/python:3.9.9-browsers
162+
- image: cimg/python:3.10.13-browsers
164163
auth:
165164
username: dashautomation
166165
password: $DASH_PAT_DOCKERHUB
167166
environment:
168167
PERCY_ENABLE: 1
169168
PERCY_PARALLEL_TOTAL: -1
170169
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: True
171-
PYVERSION: python39
170+
PYVERSION: python310
172171
REDIS_URL: redis://localhost:6379
173172
- image: cimg/redis:6.2.6
174173
auth:
@@ -208,17 +207,17 @@ jobs:
208207
- store_artifacts:
209208
path: /tmp/dash_artifacts
210209

211-
test-39-react-18:
210+
test-310-react-18:
212211
<<: *test
213212
docker:
214-
- image: cimg/python:3.9.9-browsers
213+
- image: cimg/python:3.10.13-browsers
215214
auth:
216215
username: dashautomation
217216
password: $DASH_PAT_DOCKERHUB
218217
environment:
219218
PERCY_ENABLE: 0
220219
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: True
221-
PYVERSION: python39
220+
PYVERSION: python310
222221
REDIS_URL: redis://localhost:6379
223222
REACT_VERSION: "18.2.0"
224223
- image: cimg/redis:6.2.6
@@ -243,15 +242,15 @@ jobs:
243242
username: dashautomation
244243
password: $DASH_PAT_DOCKERHUB
245244

246-
dcc-lint-unit-39: &dcc-lint-unit
245+
dcc-lint-unit-310: &dcc-lint-unit
247246
working_directory: ~/dash
248247
docker:
249-
- image: cimg/python:3.9.9-node
248+
- image: cimg/python:3.10.13-node
250249
auth:
251250
username: dashautomation
252251
password: $DASH_PAT_DOCKERHUB
253252
environment:
254-
PYVERSION: python39
253+
PYVERSION: python310
255254
PERCY_ENABLE: 0
256255
steps:
257256
- checkout:
@@ -280,15 +279,15 @@ jobs:
280279
PYVERSION: python36
281280
PERCY_ENABLE: 0
282281

283-
dcc-39: &dcc-test
282+
dcc-310: &dcc-test
284283
working_directory: ~/dash
285284
docker:
286-
- image: cimg/python:3.9.9-browsers
285+
- image: cimg/python:3.10.13-browsers
287286
auth:
288287
username: dashautomation
289288
password: $DASH_PAT_DOCKERHUB
290289
environment:
291-
PYVERSION: python39
290+
PYVERSION: python310
292291
PERCY_PARALLEL_TOTAL: -1
293292
PERCY_ENABLE: 1
294293
parallelism: 3
@@ -326,15 +325,15 @@ jobs:
326325
- store_artifacts:
327326
path: /tmp/dash_artifacts
328327

329-
dcc-39-react-18:
328+
dcc-310-react-18:
330329
<<: *dcc-test
331330
docker:
332-
- image: cimg/python:3.9.9-browsers
331+
- image: cimg/python:3.10.13-browsers
333332
auth:
334333
username: dashautomation
335334
password: $DASH_PAT_DOCKERHUB
336335
environment:
337-
PYVERSION: python39
336+
PYVERSION: python310
338337
PERCY_ENABLE: 0
339338
REACT_VERSION: "18.2.0"
340339

@@ -349,15 +348,15 @@ jobs:
349348
PYVERSION: python36
350349
PERCY_ENABLE: 0
351350

352-
html-39: &html-test
351+
html-310: &html-test
353352
working_directory: ~/dash
354353
docker:
355-
- image: cimg/python:3.9.9-browsers
354+
- image: cimg/python:3.10.13-browsers
356355
auth:
357356
username: dashautomation
358357
password: $DASH_PAT_DOCKERHUB
359358
environment:
360-
PYVERSION: python39
359+
PYVERSION: python310
361360
PERCY_ENABLE: 1
362361
PERCY_PARALLEL_TOTAL: -1
363362

@@ -403,15 +402,15 @@ jobs:
403402
- store_artifacts:
404403
path: /tmp/dash_artifacts
405404

406-
html-39-react-18:
405+
html-310-react-18:
407406
<<: *html-test
408407
docker:
409-
- image: cimg/python:3.9.9-browsers
408+
- image: cimg/python:3.10.13-browsers
410409
auth:
411410
username: dashautomation
412411
password: $DASH_PAT_DOCKERHUB
413412
environment:
414-
PYVERSION: python39
413+
PYVERSION: python310
415414
PERCY_ENABLE: 0
416415
REACT_VERSION: "18.2.0"
417416

@@ -429,9 +428,9 @@ jobs:
429428
table-server: &table-server
430429
working_directory: ~/dash
431430
docker:
432-
- image: cimg/python:3.9.9-browsers
431+
- image: cimg/python:3.10.13-browsers
433432
environment:
434-
PYVERSION: python39
433+
PYVERSION: python310
435434
PERCY_ENABLE: 1
436435
PERCY_PARALLEL_TOTAL: -1
437436

@@ -478,18 +477,18 @@ jobs:
478477
table-server-react-18:
479478
<<: *table-server
480479
docker:
481-
- image: cimg/python:3.9.9-browsers
480+
- image: cimg/python:3.10.13-browsers
482481
environment:
483-
PYVERSION: python39
482+
PYVERSION: python310
484483
PERCY_ENABLE: 0
485484
REACT_VERSION: "18.2.0"
486485

487486
table-unit-test:
488487
working_directory: ~/dash
489488
docker:
490-
- image: cimg/python:3.9.9-browsers
489+
- image: cimg/python:3.10.13-browsers
491490
environment:
492-
PYVERSION: python39
491+
PYVERSION: python310
493492
PERCY_ENABLE: 0
494493
steps:
495494
- checkout:
@@ -562,9 +561,9 @@ jobs:
562561
table-node:
563562
working_directory: ~/dash
564563
docker:
565-
- image: cimg/python:3.9.9-node
564+
- image: cimg/python:3.10.13-node
566565
environment:
567-
PYVERSION: python39
566+
PYVERSION: python310
568567
PERCY_ENABLE: 0
569568
steps:
570569
- checkout:
@@ -602,74 +601,74 @@ workflows:
602601
version: 2
603602
tests:
604603
jobs:
605-
- install-dependencies-39
604+
- install-dependencies-310
606605
- install-dependencies-36
607606

608-
- build-windows-39
607+
- build-windows-310
609608

610-
- lint-unit-39:
609+
- lint-unit-310:
611610
requires:
612-
- install-dependencies-39
611+
- install-dependencies-310
613612
- lint-unit-36:
614613
requires:
615614
- install-dependencies-36
616615

617-
- test-39:
616+
- test-310:
618617
requires:
619-
- install-dependencies-39
620-
- test-39-react-18:
618+
- install-dependencies-310
619+
- test-310-react-18:
621620
requires:
622-
- install-dependencies-39
621+
- install-dependencies-310
623622
- test-36:
624623
requires:
625624
- install-dependencies-36
626625

627-
- dcc-lint-unit-39:
626+
- dcc-lint-unit-310:
628627
requires:
629-
- install-dependencies-39
628+
- install-dependencies-310
630629
- dcc-lint-unit-36:
631630
requires:
632631
- install-dependencies-36
633632

634-
- dcc-39:
633+
- dcc-310:
635634
requires:
636-
- install-dependencies-39
637-
- dcc-39-react-18:
635+
- install-dependencies-310
636+
- dcc-310-react-18:
638637
requires:
639-
- install-dependencies-39
638+
- install-dependencies-310
640639
- dcc-36:
641640
requires:
642641
- install-dependencies-36
643642

644-
- html-39:
643+
- html-310:
645644
requires:
646-
- install-dependencies-39
647-
- html-39-react-18:
645+
- install-dependencies-310
646+
- html-310-react-18:
648647
requires:
649-
- install-dependencies-39
648+
- install-dependencies-310
650649
- html-36:
651650
requires:
652651
- install-dependencies-36
653652

654653
- table-node:
655654
requires:
656-
- install-dependencies-39
655+
- install-dependencies-310
657656
- table-unit-test:
658657
requires:
659-
- install-dependencies-39
658+
- install-dependencies-310
660659
- table-visual-test
661660
- table-server:
662661
requires:
663-
- install-dependencies-39
662+
- install-dependencies-310
664663
- table-server-react-18:
665664
requires:
666-
- install-dependencies-39
665+
- install-dependencies-310
667666

668667
- percy/finalize_all:
669668
requires:
670-
- test-39
671-
- dcc-39
672-
- html-39
669+
- test-310
670+
- dcc-310
671+
- html-310
673672
- table-server
674673
- artifacts:
675674
requires:
File renamed without changes.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to `dash` will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

5+
## [UNRELEASED]
6+
7+
## Changed
8+
9+
- [#2734](https://github.com/plotly/dash/pull/2734) Configure CI for Python 3.10 [#1863](https://github.com/plotly/dash/issues/1863)
10+
511
## [2.15.0] - 2024-01-31
612

713
## Added

components/dash-core-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"private::format.black": "black dash_core_components_base/ tests/ setup.py",
1616
"private::format.eslint": "eslint src --fix",
1717
"private::format.prettier": "prettier --config .prettierrc --write src/**/*.js",
18-
"private::lint.black": "node -e \"if ((process.env.PYVERSION || 'python39') !== 'python36'){process.exit(1)} \" || black --check dash_core_components_base/ tests/ setup.py",
18+
"private::lint.black": "node -e \"if ((process.env.PYVERSION || 'python310') !== 'python36'){process.exit(1)} \" || black --check dash_core_components_base/ tests/ setup.py",
1919
"private::lint.eslint": "eslint src",
2020
"private::lint.flake8": "flake8 --exclude=dash_core_components,node_modules,venv",
2121
"private::lint.prettier": "prettier --config .prettierrc src/**/*.js --list-different",

components/dash-table/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"private::format.black": "black dash_table_base tests",
2424
"private::lint.ts": "eslint ./src ./tests",
2525
"private::lint.flake": "flake8 dash_table_base tests",
26-
"private::lint.black": "node -e \"if ((process.env.PYVERSION || 'python39') !== 'python36'){process.exit(1)} \" || black --check dash_table_base tests",
26+
"private::lint.black": "node -e \"if ((process.env.PYVERSION || 'python310') !== 'python36'){process.exit(1)} \" || black --check dash_table_base tests",
2727
"private::lint.prettier": "prettier --config .prettierrc \"{src,tests,demo}/**/*.{js,ts,tsx}\" --list-different",
2828
"private::test.python": "python -m unittest tests/unit/format_test.py",
2929
"private::test.unit": "karma start karma.conf.js --single-run",

0 commit comments

Comments
 (0)