Skip to content

Allow python-dateutil 3 and 4 - #48

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

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

Conversation

@itzzdev09

Copy link
Copy Markdown

setup.py pins python-dateutil>=2.1,<3.0.0. python-dateutil 3.0.0 (21 Oct) and 4.0.0 (1 Nov) are out, so scrapfly-sdk can't be installed next to packages that require them.

The SDK only uses dateutil.parser.parse to read cookie expires values in scrapfly/api_response.py. I checked RFC 1123 / cookie-style dates (Wed, 21 Oct 2026 07:28:00 GMT, Wed, 21-Oct-2026 ..., the epoch) and they parse to the same timestamps on 2.9.0.post0 and 4.0.0. This raises the bound to <5.0.0.

Tests: pytest -m "not integration and not e2e" on Python 3.12, 422 passed / 69 skipped with both python-dateutil 2.9.0.post0 and 4.0.0.

@jjsaunier

Copy link
Copy Markdown
Member

Superseded by 762a149, which removes the python-dateutil dependency entirely.

@jjsaunier jjsaunier closed this Nov 22, 2026
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.

2 participants