Skip to content

Allow python-dateutil 3 and 4 - #1379

Merged
CasperGN merged 1 commit into
dapr:mainfrom
itzzdev09:allow-dateutil-3-and-4
Nov 23, 2026
Merged

CasperGN merged 1 commit into
dapr:mainfrom
itzzdev09:allow-dateutil-3-and-4

Conversation

@itzzdev09

Copy link
Copy Markdown
Contributor

Description

pyproject.toml pins python-dateutil>=2.8.1,<3.0.0. python-dateutil 3.0.0 (21 Oct) and 4.0.0 (1 Nov) are out, so the SDK can't be installed next to packages that need them. The SDK only uses dateutil.parser in dapr/serializers/json.py, which didn't change in a way that affects it.

This raises the bound to <5.0.0. uv.lock changes only in the requires-dist entry, so the locked versions stay the same (uv lock --check passes).

Unit tests as in CI (pytest tests -m "not e2e" --ignore=tests/integration --ignore=tests/examples --import-mode=importlib), Linux, Python 3.12: 2251 passed with python-dateutil 2.9.0.post0 and with 4.0.0.

Issue reference

No issue; dependency range only.

Checklist

  • Code compiles correctly
  • Created/updated tests (no code change; existing serializer tests cover it)
  • Extended the documentation

The SDK only uses dateutil.parser in the JSON serializer. The unit tests
pass unchanged with python-dateutil 2.9.0.post0 and 4.0.0.

Signed-off-by: itzzdev09 <devved90@gmail.com>
@itzzdev09
itzzdev09 requested review from a team as code owners November 22, 2026 08:45
@CasperGN CasperGN self-assigned this Nov 22, 2026
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.72%. Comparing base (6bc75f1) to head (619ab10).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1379      +/-   ##
==========================================
- Coverage   88.75%   88.72%   -0.03%     
==========================================
  Files         166      166              
  Lines       13632    13632              
==========================================
- Hits        12099    12095       -4     
- Misses       1533     1537       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CasperGN

Copy link
Copy Markdown
Contributor

Claude review · not a review sign-off.

No findings. The SDK only calls dateutil.parser.parse (in dapr/serializers/json.py); the 3.0 and 4.0 changelogs change tz.tzfile and isoparse and drop Python < 3.11 and six, none of which this code uses. tests/serializers (14 tests) passes with python-dateutil 3.0.0 and 4.0.0 on Python 3.12, and a datetime round-trip through DaprJSONEncoder/DaprJSONDecoder gives the same result on both. Python 3.10 installs still resolve to 3.0.0, which supports it. This is a comment rather than an approval only because codecov/project is red on this head.

Reviewed at 619ab10.
Disagree, or want to talk it through? Reply /human and Casper will pick it up.

@CasperGN
CasperGN added this pull request to the merge queue Nov 23, 2026
@CasperGN CasperGN removed their assignment Nov 23, 2026
Merged via the queue into dapr:main with commit 0376e6d Nov 23, 2026
23 of 24 checks passed
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