Skip to content

Allow python-dateutil 3 and 4 - #134

Open
itzzdev09 wants to merge 1 commit into
nasa:developfrom
itzzdev09:allow-dateutil-3-and-4
Open

itzzdev09 wants to merge 1 commit into
nasa:developfrom
itzzdev09:allow-dateutil-3-and-4

Conversation

@itzzdev09

Copy link
Copy Markdown

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

cmr/queries.py only uses dateutil.parser.parse(date, default=...) for temporal/revision-date strings, which behaves the same in the new releases. This changes the constraint to >=2.8.2,<5. 4.0 needs Python 3.11+, so older Pythons keep resolving to 2.x/3.x.

poetry.lock changes only in content-hash (regenerated with Poetry 2.2.1, the version in the lock header; locked versions are unchanged). Added a line under [Unreleased] in the changelog.

Tests: pytest tests on Python 3.12, 129 passed with both python-dateutil 2.9.0.post0 and 4.0.0.

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