Skip to content

Allow python-dateutil 3 and 4 - #81

Open
itzzdev09 wants to merge 1 commit into
FirebirdSQL:masterfrom
itzzdev09:allow-dateutil-3-and-4
Open

itzzdev09 wants to merge 1 commit into
FirebirdSQL:masterfrom
itzzdev09:allow-dateutil-3-and-4

Conversation

@itzzdev09

Copy link
Copy Markdown

python-dateutil~=2.8 means >=2.8,<3. python-dateutil 3.0.0 (21 Oct) and 4.0.0 (1 Nov) are out, so the driver can't be installed next to packages that need them.

The driver uses dateutil.tz.gettz in types.get_timezone and sets a _timezone_ attribute on the result. dateutil 3.0 rewrote tz.tzfile, so I checked that path specifically: for region names (Europe/Prague, America/New_York, Asia/Kolkata, Etc/GMT+5, UTC) and offsets (+05:00, -03:30), get_timezone returns the same type, _timezone_ value, UTC offsets and names on 2.9.0.post0, 3.0.0 and 4.0.0.

This changes the requirement to >=2.8,<5.

Tests: full pytest tests in the firebirdsql/firebird:5 image (embedded, --client-lib /opt/firebird/lib/libfbclient.so, Python 3.13): 188 passed, 3 skipped with python-dateutil 2.9.0.post0 and with 4.0.0, including the time zone tests in test_fb4.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant