Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure ci for python 3.10 #2734

Merged
merged 11 commits into from Feb 6, 2024
138 changes: 65 additions & 73 deletions .circleci/config.yml
Expand Up @@ -8,12 +8,12 @@ orbs:
jobs:
artifacts:
docker:
- image: cimg/python:3.9.9
- image: cimg/python:3.10.13
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PYVERSION: python39
PYVERSION: python310
PERCY_ENABLE: 0
steps:
- checkout
Expand All @@ -27,16 +27,16 @@ jobs:
path: ~/dash/dash-main
destination: /tmp/dash-main

install-dependencies-39: &install-dependencies
install-dependencies-310: &install-dependencies
working_directory: ~/dash
docker:
- image: cimg/python:3.9.9-node
- image: cimg/python:3.10.13-node
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PYLINTRC: .pylintrc39
PYVERSION: python39
PYLINTRC: .pylintrc310
PYVERSION: python310
PERCY_ENABLE: 0

steps:
Expand All @@ -59,14 +59,6 @@ jobs:
mkdir dash-package && cp dist/*.tar.gz dash-package/dash-package.tar.gz
ls -la dash-package
no_output_timeout: 30m
- run:
name: Display npm errors and exit on failed builds
command: |
if [ -d "/home/circleci/.npm/_logs" ]
then
cat /home/circleci/.npm/_logs/*
exit 1
fi
- save_cache:
key: dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}
paths:
Expand All @@ -88,16 +80,16 @@ jobs:
PYVERSION: python36
PERCY_ENABLE: 0

lint-unit-39: &lint-unit
lint-unit-310: &lint-unit
working_directory: ~/dash
docker:
- image: cimg/python:3.9.9-browsers
- image: cimg/python:3.10.13-browsers
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PYLINTRC: .pylintrc39
PYVERSION: python39
PYLINTRC: .pylintrc310
PYVERSION: python310
PERCY_ENABLE: 0

steps:
Expand Down Expand Up @@ -142,7 +134,7 @@ jobs:
PYVERSION: python36
PERCY_ENABLE: 0

build-windows-39:
build-windows-310:
working_directory: ~/dash
executor:
name: win/default
Expand All @@ -157,18 +149,18 @@ jobs:
pip install --no-cache-dir --upgrade -e .[dev,testing] --progress-bar off
cd dash/dash-renderer && renderer build && cd ../../

test-39: &test
test-310: &test
working_directory: ~/dash
docker:
- image: cimg/python:3.9.9-browsers
- image: cimg/python:3.10.13-browsers
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PERCY_ENABLE: 1
PERCY_PARALLEL_TOTAL: -1
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: True
PYVERSION: python39
PYVERSION: python310
REDIS_URL: redis://localhost:6379
- image: cimg/redis:6.2.6
auth:
Expand Down Expand Up @@ -208,17 +200,17 @@ jobs:
- store_artifacts:
path: /tmp/dash_artifacts

test-39-react-18:
test-310-react-18:
<<: *test
docker:
- image: cimg/python:3.9.9-browsers
- image: cimg/python:3.10.13-browsers
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PERCY_ENABLE: 0
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: True
PYVERSION: python39
PYVERSION: python310
REDIS_URL: redis://localhost:6379
REACT_VERSION: "18.2.0"
- image: cimg/redis:6.2.6
Expand All @@ -243,15 +235,15 @@ jobs:
username: dashautomation
password: $DASH_PAT_DOCKERHUB

dcc-lint-unit-39: &dcc-lint-unit
dcc-lint-unit-310: &dcc-lint-unit
working_directory: ~/dash
docker:
- image: cimg/python:3.9.9-node
- image: cimg/python:3.10.13-node
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PYVERSION: python39
PYVERSION: python310
PERCY_ENABLE: 0
steps:
- checkout:
Expand Down Expand Up @@ -280,15 +272,15 @@ jobs:
PYVERSION: python36
PERCY_ENABLE: 0

dcc-39: &dcc-test
dcc-310: &dcc-test
working_directory: ~/dash
docker:
- image: cimg/python:3.9.9-browsers
- image: cimg/python:3.10.13-browsers
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PYVERSION: python39
PYVERSION: python310
PERCY_PARALLEL_TOTAL: -1
PERCY_ENABLE: 1
parallelism: 3
Expand Down Expand Up @@ -326,15 +318,15 @@ jobs:
- store_artifacts:
path: /tmp/dash_artifacts

dcc-39-react-18:
dcc-310-react-18:
<<: *dcc-test
docker:
- image: cimg/python:3.9.9-browsers
- image: cimg/python:3.10.13-browsers
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PYVERSION: python39
PYVERSION: python310
PERCY_ENABLE: 0
REACT_VERSION: "18.2.0"

Expand All @@ -349,15 +341,15 @@ jobs:
PYVERSION: python36
PERCY_ENABLE: 0

html-39: &html-test
html-310: &html-test
working_directory: ~/dash
docker:
- image: cimg/python:3.9.9-browsers
- image: cimg/python:3.10.13-browsers
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PYVERSION: python39
PYVERSION: python310
PERCY_ENABLE: 1
PERCY_PARALLEL_TOTAL: -1

Expand Down Expand Up @@ -403,15 +395,15 @@ jobs:
- store_artifacts:
path: /tmp/dash_artifacts

html-39-react-18:
html-310-react-18:
<<: *html-test
docker:
- image: cimg/python:3.9.9-browsers
- image: cimg/python:3.10.13-browsers
auth:
username: dashautomation
password: $DASH_PAT_DOCKERHUB
environment:
PYVERSION: python39
PYVERSION: python310
PERCY_ENABLE: 0
REACT_VERSION: "18.2.0"

Expand All @@ -429,9 +421,9 @@ jobs:
table-server: &table-server
working_directory: ~/dash
docker:
- image: cimg/python:3.9.9-browsers
- image: cimg/python:3.10.13-browsers
environment:
PYVERSION: python39
PYVERSION: python310
PERCY_ENABLE: 1
PERCY_PARALLEL_TOTAL: -1

Expand Down Expand Up @@ -478,18 +470,18 @@ jobs:
table-server-react-18:
<<: *table-server
docker:
- image: cimg/python:3.9.9-browsers
- image: cimg/python:3.10.13-browsers
environment:
PYVERSION: python39
PYVERSION: python310
PERCY_ENABLE: 0
REACT_VERSION: "18.2.0"

table-unit-test:
working_directory: ~/dash
docker:
- image: cimg/python:3.9.9-browsers
- image: cimg/python:3.10.13-browsers
environment:
PYVERSION: python39
PYVERSION: python310
PERCY_ENABLE: 0
steps:
- checkout:
Expand Down Expand Up @@ -562,9 +554,9 @@ jobs:
table-node:
working_directory: ~/dash
docker:
- image: cimg/python:3.9.9-node
- image: cimg/python:3.10.13-node
environment:
PYVERSION: python39
PYVERSION: python310
PERCY_ENABLE: 0
steps:
- checkout:
Expand Down Expand Up @@ -602,74 +594,74 @@ workflows:
version: 2
tests:
jobs:
- install-dependencies-39
- install-dependencies-310
- install-dependencies-36

- build-windows-39
- build-windows-310

- lint-unit-39:
- lint-unit-310:
requires:
- install-dependencies-39
- install-dependencies-310
- lint-unit-36:
requires:
- install-dependencies-36

- test-39:
- test-310:
requires:
- install-dependencies-39
- test-39-react-18:
- install-dependencies-310
- test-310-react-18:
requires:
- install-dependencies-39
- install-dependencies-310
- test-36:
requires:
- install-dependencies-36

- dcc-lint-unit-39:
- dcc-lint-unit-310:
requires:
- install-dependencies-39
- install-dependencies-310
- dcc-lint-unit-36:
requires:
- install-dependencies-36

- dcc-39:
- dcc-310:
requires:
- install-dependencies-39
- dcc-39-react-18:
- install-dependencies-310
- dcc-310-react-18:
requires:
- install-dependencies-39
- install-dependencies-310
- dcc-36:
requires:
- install-dependencies-36

- html-39:
- html-310:
requires:
- install-dependencies-39
- html-39-react-18:
- install-dependencies-310
- html-310-react-18:
requires:
- install-dependencies-39
- install-dependencies-310
- html-36:
requires:
- install-dependencies-36

- table-node:
requires:
- install-dependencies-39
- install-dependencies-310
- table-unit-test:
requires:
- install-dependencies-39
- install-dependencies-310
- table-visual-test
- table-server:
requires:
- install-dependencies-39
- install-dependencies-310
- table-server-react-18:
requires:
- install-dependencies-39
- install-dependencies-310

- percy/finalize_all:
requires:
- test-39
- dcc-39
- html-39
- test-310
- dcc-310
- html-310
- table-server
- artifacts:
requires:
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,12 @@
All notable changes to `dash` will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/).

## [UNRELEASED]

## Changed

- [#2734](https://github.com/plotly/dash/pull/2734) Configure CI for Python 3.10 [#1863](https://github.com/plotly/dash/issues/1863)

## [2.15.0] - 2024-01-31

## Added
Expand Down
2 changes: 1 addition & 1 deletion components/dash-core-components/package.json
Expand Up @@ -15,7 +15,7 @@
"private::format.black": "black dash_core_components_base/ tests/ setup.py",
"private::format.eslint": "eslint src --fix",
"private::format.prettier": "prettier --config .prettierrc --write src/**/*.js",
"private::lint.black": "node -e \"if ((process.env.PYVERSION || 'python39') !== 'python36'){process.exit(1)} \" || black --check dash_core_components_base/ tests/ setup.py",
"private::lint.black": "node -e \"if ((process.env.PYVERSION || 'python310') !== 'python36'){process.exit(1)} \" || black --check dash_core_components_base/ tests/ setup.py",
graingert-coef marked this conversation as resolved.
Show resolved Hide resolved
"private::lint.eslint": "eslint src",
"private::lint.flake8": "flake8 --exclude=dash_core_components,node_modules,venv",
"private::lint.prettier": "prettier --config .prettierrc src/**/*.js --list-different",
Expand Down
2 changes: 1 addition & 1 deletion components/dash-table/package.json
Expand Up @@ -23,7 +23,7 @@
"private::format.black": "black dash_table_base tests",
"private::lint.ts": "eslint ./src ./tests",
"private::lint.flake": "flake8 dash_table_base tests",
"private::lint.black": "node -e \"if ((process.env.PYVERSION || 'python39') !== 'python36'){process.exit(1)} \" || black --check dash_table_base tests",
"private::lint.black": "node -e \"if ((process.env.PYVERSION || 'python310') !== 'python36'){process.exit(1)} \" || black --check dash_table_base tests",
"private::lint.prettier": "prettier --config .prettierrc \"{src,tests,demo}/**/*.{js,ts,tsx}\" --list-different",
"private::test.python": "python -m unittest tests/unit/format_test.py",
"private::test.unit": "karma start karma.conf.js --single-run",
Expand Down