Skip to content

Commit 0562ac8

Browse files
authored
Bump dependency upper bounds to prevent user conflicts (#24)
Relaxes version constraints for httpx (>=0.28,<1.0), tenacity (>=8.2,<10.0), and pydantic (>=2.10.6,<3.0) to avoid forcing downgrades on users with newer versions of these packages. Fixes test assertions that incorrectly expected int types from query param serialization. Adds Python 3.13 classifier.
1 parent 73e2f9e commit 0562ac8

3 files changed

Lines changed: 983 additions & 917 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ classifiers = [
2222
"Programming Language :: Python :: 3.10",
2323
"Programming Language :: Python :: 3.11",
2424
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
2526
"Operating System :: OS Independent",
2627
"Topic :: Software Development :: Libraries :: Python Modules",
2728
]
2829

2930
dependencies = [
30-
"httpx>=0.26,<0.28",
31+
"httpx>=0.28,<1.0",
3132
"exceptiongroup; python_version < '3.11'",
32-
"tenacity>=8.2,<9.0",
33-
"pydantic>=2.10.6,<2.11.0"
33+
"tenacity>=8.2,<10.0",
34+
"pydantic>=2.10.6,<3.0"
3435
]
3536

3637
[project.urls]

tests/unit/test_historic_positions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ def test_serialize_params(self):
7575
serialized = params._to_query_dict()
7676

7777
# Check serialization results
78-
assert isinstance(serialized["timestamp"], int)
78+
assert serialized["timestamp"] == str(int(datetime(2020, 1, 1, tzinfo=timezone.utc).timestamp()))
7979
assert serialized["bounds"] == "10,20,30,40"
8080
assert serialized["flights"] == "AB1234,CD5678"
8181
assert serialized["callsigns"] == "ABC123"
8282
assert serialized["altitude_ranges"] == "1000,5000,10000,20000"
83-
assert serialized["limit"] == 100
83+
assert serialized["limit"] == "100"
8484

8585
# Check that None values are not included
8686
assert "registrations" not in serialized
@@ -143,7 +143,7 @@ def test_get_light_success(self, historic_positions, mock_transport):
143143
assert args[0] == "GET"
144144
assert args[1] == "/api/historic/flight-positions/light"
145145
assert "timestamp" in kwargs["params"]
146-
assert kwargs["params"]["timestamp"] == 1672574400
146+
assert kwargs["params"]["timestamp"] == "1672574400"
147147

148148
def test_get_light_empty_response(self, historic_positions, mock_transport):
149149
"""Test get_light with empty response."""

0 commit comments

Comments
 (0)