Skip to content

Commit eb1c3fb

Browse files
authored
[EWB-1835] Bump dependency versions, also fix slow tests (#198)
Signed-off-by: Max Chesterfield <max.chesterfield@zepben.com>
1 parent 903e778 commit eb1c3fb

File tree

5 files changed

+106
-99
lines changed

5 files changed

+106
-99
lines changed

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
* None.
88

99
### Enhancements
10-
* None.
10+
* Bumped `hypothesis` version for tests to latest (6.138.2), fixed examples generating large numbers of results causing tests to run extremely slow.
11+
* Bumped every other dependency to the latest version aside from dataclassy.
1112

1213
### Fixes
1314
* Moved ZepbenTokenAuth to use python dataclasses instead of `zepben.ewb.dataclassy`, existing code should work as is.

pyproject.toml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
2424
]
2525
dependencies = [
2626
"zepben.protobuf==1.0.0",
27-
"typing_extensions==4.12.2",
28-
"requests>=2.26.0, <3.0.0",
29-
"urllib3>=1.26.6, <1.27.0",
30-
"PyJWT>=2.1.0, <2.2.0",
27+
"typing_extensions==4.14.1",
28+
"requests==2.32.5",
29+
"urllib3==2.5.0",
30+
"PyJWT==2.10.1",
31+
"dataclassy==0.6.2",
3132
]
3233
classifiers = [
3334
"Programming Language :: Python :: 3",
@@ -43,12 +44,12 @@
4344

4445
[project.optional-dependencies]
4546
test = [
46-
"pytest>=7.4.4, <9",
47-
"pytest-cov==6.1.1",
48-
"pytest-asyncio==0.26.0",
47+
"pytest==8.4.1",
48+
"pytest-cov==6.2.1",
49+
"pytest-asyncio==1.1.0",
4950
"pytest-timeout==2.4.0",
50-
"pytest-subtests",
51-
"hypothesis==6.119.4", # 6.120.0 has issues with one of our large tests
51+
"pytest-subtests==0.14.2",
52+
"hypothesis==6.138.2",
5253
"grpcio-testing==1.61.3",
5354
"pylint==2.14.5",
5455
"six==1.16.0",

test/cim/iec61970/base/wires/test_regulating_control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"terminal": builds(Terminal),
2525
"ct_primary": floats(min_value=FLOAT_MIN, max_value=FLOAT_MAX),
2626
"min_target_deadband": floats(min_value=FLOAT_MIN, max_value=FLOAT_MAX),
27-
"regulating_conducting_equipment": lists(builds(PowerElectronicsConnection))
27+
"regulating_conducting_equipment": lists(builds(PowerElectronicsConnection), max_size=2)
2828
}
2929

3030
regulating_control_args = [*power_system_resource_args, False, RegulatingControlModeKind.voltage, PhaseCode.ABC, 1.1, 2.2, True, 3.3, 4.4, 5.5, Terminal(), 6.6,

0 commit comments

Comments
 (0)