Skip to content

Allow python-dateutil 3 and 4 - #540

Open
itzzdev09 wants to merge 1 commit into
conductor-oss:mainfrom
itzzdev09:allow-dateutil-3-and-4
Open

itzzdev09 wants to merge 1 commit into
conductor-oss:mainfrom
itzzdev09:allow-dateutil-3-and-4

Conversation

@itzzdev09

Copy link
Copy Markdown

pyproject.toml declares python-dateutil = "^2.8.2", which caps it at <3. python-dateutil 3.0.0 (21 Oct) and 4.0.0 (1 Nov) are out, so conductor-python can't be installed next to packages that require them.

The SDK only uses dateutil.parser.parse in conductor/client/helpers/helper.py to deserialize datetimes, which behaves the same in the new releases. This changes the constraint to >=2.8.2,<5 (matching requirements.txt, which already has no upper bound). 4.0 needs Python 3.11+, so 3.10 keeps resolving to 2.x/3.x. six stays declared, since the SDK imports it directly.

poetry.lock changes only in content-hash (Poetry 2.5.1, the version in its header; locked versions unchanged). Added a line under [Unreleased] → Changed in the changelog.

Tests: pytest tests/unit tests/serdesertest tests/backwardcompatibility (with tests/unit/ai ignored, it needs extra deps) on Python 3.12: 1919 passed with both python-dateutil 2.9.0.post0 and 4.0.0. The same 8 tests fail with both versions on my Windows machine; they're unrelated to dateutil.

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