Skip to content

Allow python-dateutil 3 and 4 - #542

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

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

Conversation

@itzzdev09

Copy link
Copy Markdown

install_requires has python-dateutil~=2.2, which means >=2.2,<3. python-dateutil 3.0.0 (21 Oct) and 4.0.0 (1 Nov) are out, so an environment that needs either can't install segment-analytics-python (pip reports ResolutionImpossible).

The library only uses dateutil.tz.tzutc and dateutil.tz.tzlocal, which work the same in 3.x and 4.x. This changes the requirement to >=2.2,<5 in setup.py and pyproject.toml.

pytest segment/analytics/test/test_utils.py test_consumer.py test_client.py: 93 passed with python-dateutil 4.0.0 (Python 3.12). dateutil 4 needs Python 3.11+, so older interpreters keep resolving to 2.x or 3.x.

~=2.2 caps python-dateutil below 3. The library only uses tz.tzutc and
tz.tzlocal, and the tests pass with python-dateutil 4.0.0.

This branch has not been deployed

No deployments
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