Skip to content

Commit 99ea6a1

Browse files
committed
Replace Python 3.5 CI tests with 3.8
1 parent 02c00da commit 99ea6a1

File tree

2 files changed

+43
-43
lines changed

2 files changed

+43
-43
lines changed

.circleci/config.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
command: "cd packages/python/plotly; tox -e py27-core"
3232
no_output_timeout: 20m
3333

34-
python-3.5-core:
34+
python-3.6-core:
3535
docker:
36-
- image: circleci/python:3.5-stretch-node-browsers
36+
- image: circleci/python:3.6-stretch-node-browsers
3737
environment:
38-
PLOTLY_TOX_PYTHON_35: python3.5
38+
PLOTLY_TOX_PYTHON_36: python3.6
3939

4040
steps:
4141
- checkout
@@ -44,14 +44,14 @@ jobs:
4444
command: "sudo pip install tox"
4545
- run:
4646
name: Test with tox
47-
command: "cd packages/python/plotly; tox -e py35-core"
47+
command: "cd packages/python/plotly; tox -e py36-core"
4848
no_output_timeout: 20m
4949

50-
python-3.6-core:
50+
python-3.7-core:
5151
docker:
52-
- image: circleci/python:3.6-stretch-node-browsers
52+
- image: circleci/python:3.7-stretch-node-browsers
5353
environment:
54-
PLOTLY_TOX_PYTHON_36: python3.6
54+
PLOTLY_TOX_PYTHON_37: python3.7
5555

5656
steps:
5757
- checkout
@@ -60,14 +60,14 @@ jobs:
6060
command: "sudo pip install tox"
6161
- run:
6262
name: Test with tox
63-
command: "cd packages/python/plotly; tox -e py36-core"
63+
command: "cd packages/python/plotly; tox -e py37-core"
6464
no_output_timeout: 20m
6565

66-
python-3.7-core:
66+
python-3.8-core:
6767
docker:
68-
- image: circleci/python:3.7-stretch-node-browsers
68+
- image: circleci/python:3.8-stretch-node-browsers
6969
environment:
70-
PLOTLY_TOX_PYTHON_37: python3.7
70+
PLOTLY_TOX_PYTHON_38: python3.8
7171

7272
steps:
7373
- checkout
@@ -76,7 +76,7 @@ jobs:
7676
command: "sudo pip install tox"
7777
- run:
7878
name: Test with tox
79-
command: "cd packages/python/plotly; tox -e py37-core"
79+
command: "cd packages/python/plotly; tox -e py38-core"
8080
no_output_timeout: 20m
8181

8282
python-3.7-percy:
@@ -128,11 +128,11 @@ jobs:
128128
command: "cd packages/python/plotly; tox -e py27-optional"
129129
no_output_timeout: 20m
130130

131-
python-3.5-optional:
131+
python-3.6-optional:
132132
docker:
133-
- image: circleci/python:3.5-stretch-node-browsers
133+
- image: circleci/python:3.6-stretch-node-browsers
134134
environment:
135-
PLOTLY_TOX_PYTHON_35: python3.5
135+
PLOTLY_TOX_PYTHON_36: python3.6
136136

137137
steps:
138138
- checkout
@@ -141,14 +141,14 @@ jobs:
141141
command: "sudo pip install tox"
142142
- run:
143143
name: Test with tox
144-
command: "cd packages/python/plotly; tox -e py35-optional"
144+
command: "cd packages/python/plotly; tox -e py36-optional"
145145
no_output_timeout: 20m
146146

147-
python-3.6-optional:
147+
python-3.7-optional:
148148
docker:
149-
- image: circleci/python:3.6-stretch-node-browsers
149+
- image: circleci/python:3.7-stretch-node-browsers
150150
environment:
151-
PLOTLY_TOX_PYTHON_36: python3.6
151+
PLOTLY_TOX_PYTHON_37: python3.7
152152

153153
steps:
154154
- checkout
@@ -157,14 +157,14 @@ jobs:
157157
command: "sudo pip install tox"
158158
- run:
159159
name: Test with tox
160-
command: "cd packages/python/plotly; tox -e py36-optional"
160+
command: "cd packages/python/plotly; tox -e py37-optional"
161161
no_output_timeout: 20m
162162

163-
python-3.7-optional:
163+
python-3.8-optional:
164164
docker:
165-
- image: circleci/python:3.7-stretch-node-browsers
165+
- image: circleci/python:3.8-stretch-node-browsers
166166
environment:
167-
PLOTLY_TOX_PYTHON_37: python3.7
167+
PLOTLY_TOX_PYTHON_38: python3.8
168168

169169
steps:
170170
- checkout
@@ -173,7 +173,7 @@ jobs:
173173
command: "sudo pip install tox"
174174
- run:
175175
name: Test with tox
176-
command: "cd packages/python/plotly; tox -e py37-optional"
176+
command: "cd packages/python/plotly; tox -e py38-optional"
177177
no_output_timeout: 20m
178178

179179
# Plot.ly
@@ -255,23 +255,23 @@ jobs:
255255
- store_artifacts:
256256
path: plotly/tests/test_orca/images/linux/failed
257257

258-
python-3-5-orca:
258+
python-3-6-orca:
259259
docker:
260260
- image: circleci/node:10.9-stretch-browsers
261261
environment:
262-
PYTHON_VERSION: 3.5
262+
PYTHON_VERSION: 3.6
263263

264264
steps:
265265
- checkout
266266
- restore_cache:
267267
keys:
268-
- conda-35-v1-{{ checksum ".circleci/create_conda_optional_env.sh" }}
268+
- conda-36-v1-{{ checksum ".circleci/create_conda_optional_env.sh" }}
269269
- run:
270270
name: Create conda environment
271271
command: .circleci/create_conda_optional_env.sh
272272

273273
- save_cache:
274-
key: conda-35-v1-{{ checksum ".circleci/create_conda_optional_env.sh" }}
274+
key: conda-36-v1-{{ checksum ".circleci/create_conda_optional_env.sh" }}
275275
paths:
276276
- /home/circleci/miniconda/
277277
- run:
@@ -518,14 +518,14 @@ workflows:
518518
build:
519519
jobs:
520520
- python-2.7-core
521-
- python-3.5-core
522521
- python-3.6-core
523522
- python-3.7-core
523+
- python-3.8-core
524524
- python-3.7-percy
525525
- python-2.7-optional
526-
- python-3.5-optional
527526
- python-3.6-optional
528527
- python-3.7-optional
528+
- python-3.8-optional
529529
- python-3.7-plot_ly
530530
- python-2-7-orca
531531
- python-3-7-orca

packages/python/plotly/tox.ini

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
[tox]
3737
; The py{A,B,C}-{X,Y} generates a matrix of envs:
3838
; pyA-X,pyA-Y,pyB-X,pyB-Y,pyC-X,pyC-Y
39-
envlist = py{27,34,35,36,37}-{core,optional},py{27,34,37}
39+
envlist = py{27,36,37,38}-{core,optional},py{27,37}
4040

4141
; Note that envs can be targeted by deps using the <target>: dep syntax.
4242
; Only one dep is allowed per line as of the time of writing. The <target>
@@ -84,12 +84,6 @@ commands=
8484
python --version
8585
pytest {posargs} plotly/tests/test_core
8686

87-
[testenv:py35-core]
88-
basepython={env:PLOTLY_TOX_PYTHON_35:}
89-
commands=
90-
python --version
91-
pytest {posargs} plotly/tests/test_core
92-
9387
[testenv:py36-core]
9488
basepython={env:PLOTLY_TOX_PYTHON_36:}
9589
commands=
@@ -104,6 +98,12 @@ commands=
10498
pytest {posargs} -x test_init/test_dependencies_not_imported.py
10599
pytest {posargs} -x test_init/test_lazy_imports.py
106100

101+
[testenv:py38-core]
102+
basepython={env:PLOTLY_TOX_PYTHON_38:}
103+
commands=
104+
python --version
105+
pytest {posargs} plotly/tests/test_core
106+
107107
; OPTIONAL ENVIRONMENTS
108108
;[testenv:py27-optional]
109109
;basepython={env:PLOTLY_TOX_PYTHON_27:}
@@ -124,26 +124,26 @@ commands=
124124
pytest _plotly_utils/tests/
125125
pytest plotly/tests/test_io
126126

127-
[testenv:py35-optional]
128-
basepython={env:PLOTLY_TOX_PYTHON_35:}
127+
[testenv:py36-optional]
128+
basepython={env:PLOTLY_TOX_PYTHON_36:}
129129
commands=
130130
python --version
131131
pytest {posargs} plotly/tests/test_core
132132
pytest {posargs} plotly/tests/test_optional
133133
pytest _plotly_utils/tests/
134134
pytest plotly/tests/test_io
135135

136-
[testenv:py36-optional]
137-
basepython={env:PLOTLY_TOX_PYTHON_36:}
136+
[testenv:py37-optional]
137+
basepython={env:PLOTLY_TOX_PYTHON_37:}
138138
commands=
139139
python --version
140140
pytest {posargs} plotly/tests/test_core
141141
pytest {posargs} plotly/tests/test_optional
142142
pytest _plotly_utils/tests/
143143
pytest plotly/tests/test_io
144144

145-
[testenv:py37-optional]
146-
basepython={env:PLOTLY_TOX_PYTHON_37:}
145+
[testenv:py38-optional]
146+
basepython={env:PLOTLY_TOX_PYTHON_38:}
147147
commands=
148148
python --version
149149
pytest {posargs} plotly/tests/test_core

0 commit comments

Comments
 (0)