Skip to content

Conversation

Aniketsy
Copy link
Contributor

@Aniketsy Aniketsy commented Oct 1, 2025

#2534

Removed python 3.9 support.

Please let me know if my approach or fix needs any improvements . I’m open to feedback and happy to make changes based on suggestions.
Thankyou !

@Fokko
Copy link
Contributor

Fokko commented Oct 1, 2025

@Aniketsy Thanks for working on this! Could you update this one as well:

ray = [
{ version = "==2.10.0", python = "<3.9", optional = true },
{ version = ">=2.10.0,<=2.44.0", python = ">=3.9", optional = true },
]

@Aniketsy
Copy link
Contributor Author

Aniketsy commented Oct 1, 2025

@Fokko Thanks! I will update this.

@Aniketsy
Copy link
Contributor Author

Aniketsy commented Oct 1, 2025

@Fokko I’ve updated the changes. I had one query, is it okay to work on an issue if no PR has been linked or mentioned for it yet?

@Fokko
Copy link
Contributor

Fokko commented Oct 1, 2025

I had one query, is it okay to work on an issue if no PR has been linked or mentioned for it yet?

Yes, for sure. In Iceberg, everyone is free to work on any issue, even when someone else claims it. We often see folks picking up issues but getting into time constraints and not being able to finish the work; therefore, we don't assign it to anyone.

pyproject.toml Outdated
Comment on lines 69 to 71
ray = [
{ version = "==2.10.0", python = "<3.9", optional = true },
{ version = ">=2.10.0,<=2.44.0", python = ">=3.9", optional = true },
{ version = ">=2.10.0,<=2.44.0", python = ">=3.10", optional = true },
]
Copy link
Contributor

@Fokko Fokko Oct 1, 2025

Choose a reason for hiding this comment

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

I think we can simplify this to:

ray = { version = ">=2.10.0,<=2.44.0", optional = true }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! sure

pyproject.toml Outdated
ray = [
{ version = "==2.10.0", python = "<3.9", optional = true },
{ version = ">=2.10.0,<=2.44.0", python = ">=3.9", optional = true },
{ version = ">=2.10.0,<=2.44.0", optional = true }
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can get rid of the brackets [], since the list only has one entry :)

Copy link
Contributor Author

@Aniketsy Aniketsy Oct 2, 2025

Choose a reason for hiding this comment

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

Thanks for correcting me, I will update this

@Aniketsy
Copy link
Contributor Author

Aniketsy commented Oct 2, 2025

@Fokko I’ve applied the changes based on your suggestions. Please let me know if any further improvements are needed.

@Fokko
Copy link
Contributor

Fokko commented Oct 5, 2025

@Aniketsy It looks like we're one poetry lock short? Can you also pull in latest main?

@Aniketsy
Copy link
Contributor Author

Aniketsy commented Oct 5, 2025

yes, i will update .

@Aniketsy
Copy link
Contributor Author

Aniketsy commented Oct 5, 2025

@Fokko I’m not sure if I added the poetry.lock correctly. I installed the dependencies and added the file directly , please let me know if I did something wrong.

Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

there are a few more mentions of 3.9

  • .github/workflows/pypi-build-artifacts.yml
  • .github/workflows/svn-build-artifacts.yml
  • mkdocs/docs/contributing.md

@kevinjqliu
Copy link
Contributor

I’m not sure if I added the poetry.lock correctly

i usually would do make install and then poetry lock

@Aniketsy
Copy link
Contributor Author

Aniketsy commented Oct 6, 2025

@kevinjqliu I've applied the changes.

For the type annotation the types from the `Typing` package are used.

PyIceberg offers support from Python 3.9 onwards, we can't use the [type hints from the standard collections](https://peps.python.org/pep-0585/).
PyIceberg offers support from Python 3.10 onwards, we can't use the [type hints from the standard collections](https://peps.python.org/pep-0585/).
Copy link
Contributor

Choose a reason for hiding this comment

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

i think we can revert this change.

https://peps.python.org/pep-0585/ is supported by 3.9

Copy link
Contributor

Choose a reason for hiding this comment

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

ah looks like this was find/replaced when we removed 3.8

857abd0#diff-c0ad53549c03c8e66a0e3574698ce24dfa722b54ca7a2fdfcb8d62ff0343ab73R205-R206

Copy link
Contributor

Choose a reason for hiding this comment

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

i think we can remove this paragraph entirely then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks! i will update

@kevinjqliu
Copy link
Contributor

looks like there a conflict, could you rebase this PR with main?

git fetch origin main
git rebase origin/main -Xtheirs

You will likely have to regen the poetry.lock file again

poetry lock

@Aniketsy
Copy link
Contributor Author

Aniketsy commented Oct 7, 2025

@kevinjqliu I’ve removed the paragraph as suggested. Please take a look at the changes

Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

LGTM!

lets wait for more folks to chime in on the devlist thread before merging
https://lists.apache.org/thread/z3dhxx2wc0dhvgq9js5ktbqf4ggsn4z8

@kevinjqliu
Copy link
Contributor

oops looks like poetry doesnt like that theres no upperlimit, we can use <4.0 then

@rambleraptor
Copy link
Contributor

This is fantastic! If we do remove Python 3.9, there's a bunch of new typing features in 3.10 that we can now introduce

Copy link
Contributor

@rambleraptor rambleraptor left a comment

Choose a reason for hiding this comment

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

This looks awesome! Thank you so much for doing this

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.

4 participants