Skip to content

Commit 55cf05a

Browse files
author
Tristan Nixon
committed
reorganizing tests to run a suite of tests for each LTS DBR version since Spark 3.0
1 parent b531dac commit 55cf05a

File tree

9 files changed

+82
-31
lines changed

9 files changed

+82
-31
lines changed

docs/requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
sphinx-autobuild==2021.3.14
2+
sphinx-copybutton==0.5.1
3+
Sphinx==4.5.0
4+
sphinx-design==0.2.0
5+
sphinx-panels==0.6.0
6+
furo==2022.9.29

python/requirements.txt

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

python/requirements/dbr104.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ipython==7.22.0
2+
numpy==1.20.1
3+
pandas==1.2.4
4+
pyarrow==4.0.0
5+
python-dateutil==2.8.1
6+
pytz==2020.5
7+
scipy==1.6.2
8+
six==1.15.0
9+
wheel==0.36.2
10+

python/requirements/dbr113.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ipython==7.32.0
2+
numpy==1.20.3
3+
pandas==1.3.4
4+
pyarrow==7.0.0
5+
python-dateutil==2.8.2
6+
pytz==2021.3
7+
scipy==1.7.1
8+
six==1.16.0
9+
wheel==0.37.0

python/requirements/dbr122.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ipython==8.5.0
2+
numpy==1.21.5
3+
pandas==1.4.2
4+
pyarrow==7.0.0
5+
python-dateutil==2.8.2
6+
pytz==2021.3
7+
scipy==1.7.3
8+
six==1.16.0
9+
wheel==0.37.0

python/requirements/dbr133.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ipython==8.10.0
2+
numpy==1.21.5
3+
pandas==1.4.4
4+
pyarrow==8.0.0
5+
python-dateutil==2.8.2
6+
pytz==2022.1
7+
scipy==1.9.1
8+
six==1.16.0
9+
wheel==0.37.1

python/requirements/dbr73.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ipython==7.12.0
2+
numpy==1.18.1
3+
pandas==1.0.1
4+
pyarrow==1.0.1
5+
python-dateutil==2.8.1
6+
pytz==2019.3
7+
scipy==1.4.1
8+
six==1.14.0
9+
wheel==0.34.2
10+

python/requirements/dbr91.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ipython==7.22.0
2+
numpy==1.19.2
3+
pandas==1.2.4
4+
pyarrow==4.0.0
5+
python-dateutil==2.8.1
6+
pytz==2020.5
7+
scipy==1.6.2
8+
six==1.15.0
9+
wheel==0.36.2
10+

python/tox.ini

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
requires =
33
tox>4,<5
44
virtualenv>20,<21
5-
wheel>=0.38,<1
65
isolated_build = true
76
envlist =
87
format
@@ -11,26 +10,34 @@ envlist =
1110
build-dist
1211
; Mirror Supported LTS DBR versions here: https://docs.databricks.com/release-notes/runtime/
1312
; Use correct PySpark version based on Python version present in env name
14-
py37-pyspark300,
15-
py38-pyspark{312,321},
16-
py39-pyspark{330,332}
13+
dbr{73,91,104,113,122,133}
1714
skip_missing_interpreters = true
1815

19-
2016
[testenv]
2117
description = run the tests under {envname}
2218
package = wheel
2319
wheel_build_env = .pkg
2420
setenv =
2521
COVERAGE_FILE = .coverage.{envname}
22+
basepython =
23+
dbr133: py310
24+
dbr122: py39
25+
dbr113: py39
26+
dbr104: py38
27+
dbr91: py38
28+
dbr73: py37
2629
deps =
27-
pyspark300: pyspark==3.0.0
28-
pyspark312: pyspark==3.1.2
29-
pyspark321: pyspark==3.2.1
30-
pyspark330: pyspark==3.3.0
31-
pyspark332: pyspark==3.3.2
30+
dbr133: pyspark==3.4.1
31+
dbr122: pyspark==3.3.2
32+
dbr113: pyspark==3.3.0
33+
dbr104: pyspark==3.2.1
34+
dbr91: pyspark==3.1.2
35+
dbr73: pyspark==3.0.0
3236
coverage>=7,<8
33-
-rrequirements.txt
37+
chispa~=0.9.4
38+
semver>=3,<4
39+
jsonref>=1,<2
40+
-rrequirements/{envname}.txt
3441
commands =
3542
coverage --version
3643
coverage run -m unittest discover -s tests -p '*_tests.py'
@@ -63,7 +70,7 @@ deps =
6370
mypy>=1,<2
6471
pandas-stubs>=2,<3
6572
types-pytz>=2023,<2024
66-
-rrequirements.txt
73+
-rrequirements/dbr133.txt
6774
commands =
6875
mypy {toxinidir}/tempo
6976

0 commit comments

Comments
 (0)