Skip to content

Build: drop the upper bound on requires-python - #4135

Open
Shahzeb-DataEngineer wants to merge 1 commit into
apache:mainfrom
Shahzeb-DataEngineer:fix/drop-requires-python-upper-bound
Open

Shahzeb-DataEngineer wants to merge 1 commit into
apache:mainfrom
Shahzeb-DataEngineer:fix/drop-requires-python-upper-bound

Conversation

@Shahzeb-DataEngineer

Copy link
Copy Markdown

Description

The requires-python = ">=3.10.0,<4.0.0" upper bound makes Poetry silently resolve old PyIceberg releases (e.g. 0.10.0) for projects that declare an open-ended requires-python range, with no error or warning — as hit in pandas-dev/pandas-stubs#2015. The <4.0.0 cap offers no real protection (per the consensus in #1348, and Python 4 is not planned), so this drops it and keeps requires-python = ">=3.10".

Changes:

  • pyproject.toml: requires-python = ">=3.10"
  • uv.lock: matching requires-python header (uv lock --check passes; the resolved dependency set is unchanged)

Related Issue

closes #4128

The <4.0.0 cap makes Poetry silently resolve old releases (e.g. 0.10.0)
for projects declaring an open-ended requires-python range, with no
error or warning. The cap offers no real protection (see apache#1348), so
drop it and keep requires-python as >=3.10.

Signed-off-by: Shahzeb Ali <126076773+Shahzeb-DataEngineer@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 22, 2026 08:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

requires-python = ">=3.10.0,<4.0.0" makes Poetry silently resolve pyiceberg 0.10.0

2 participants