Skip to content

Specify minimum version for boto3 dependency - #1147

Merged
tsmathis merged 1 commit into
materialsproject:mainfrom
kavanase:fix/boto3_floor
Nov 5, 2026
Merged

tsmathis merged 1 commit into
materialsproject:mainfrom
kavanase:fix/boto3_floor

Conversation

@kavanase

@kavanase kavanase commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Very minor fix to add a floor for the boto3 dependency.

Summary

mp-api lists boto3 with no version bound. python-dateutil 3.0.0 (2026-10-21) and 4.0.0 (2026-11-01) are now
out, and every modern botocore requires python-dateutil<3.0.0. If a resolver settles on dateutil ≥ 3, it can still
satisfy the bare boto3 requirement by going back to boto3==0.0.3 (2014), which sets no upper bounds. That pulls in
botocore==0.76.0 and six==1.7.3, and import mp_api.client then fails on Python ≥ 3.12:

mp_api/client/core/client.py:32: in <module>
    import boto3
...
botocore/config.py:18: in <module>
    from six.moves import configparser
E   ModuleNotFoundError: No module named 'six.moves'

(causing all our doped CI to fail: https://github.com/SMTG-Bham/doped/actions/runs/42040349880).

This PR adds a boto3>=1.34 floor. A modern boto3 is then always selected (alongside python-dateutil 2.9.x).

Checklist

  • Google format doc strings added. Check with ruff.
  • Type annotations included. Check with mypy.
  • Tests added for new features/fixes.
  • If applicable, new classes/functions/modules have duecredit @due.dcite decorators to reference relevant papers by DOI (example)

Updated boto3 dependency to require version 1.34 or higher.
@kavanase

kavanase commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

(Noting again that the failing test is unrelated to this PR)

kavanase added a commit to sblisesivdin/doped that referenced this pull request Nov 5, 2026
@tsmathis
tsmathis merged commit 1b45f18 into materialsproject:main Nov 5, 2026
1 of 4 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