Skip to content

Drop support for Python 3.8 #1221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 8, 2024
Merged

Drop support for Python 3.8 #1221

merged 5 commits into from
Oct 8, 2024

Conversation

raulcd
Copy link
Member

@raulcd raulcd commented Oct 6, 2024

This PR drops support for Python 3.8 as successfully voted on the Mailing List here: https://lists.apache.org/thread/50jjtdyfovwqbw8mp5m6rfgmmbxv7qcr

Closes #1121

@raulcd
Copy link
Member Author

raulcd commented Oct 6, 2024

The integration job uses Ubuntu 20.04 which will be EOL on April 2025. Ubuntu 20.04 uses Python 3.8 as default, let me know if you'd prefer to use Ubuntu 22.04 on that job instead of installing Python 3.9 as I've done on the PR.
For reference, on Apache Arrow we have decided to stop testing pyarrow for Ubuntu 20.04 and have updated to 22.04/24.04 even though we still build Arrow C++ for Ubuntu 20.04 and will deprecate closer to EOL.

@sungwy
Copy link
Collaborator

sungwy commented Oct 7, 2024

Hi @raulcd thank you very much for putting together this PR. I'm +1 for using ubuntu-22.04 for the integration test to align with what arrow is doing. This will also align the machine with the python CI github workflow, which is actually already running on ubuntu-22.04.

@raulcd
Copy link
Member Author

raulcd commented Oct 7, 2024

Thanks @sungwy, I've update the job to Ubuntu 22.04. CI is successful.

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.

Thanks for the contribution! I've added a few nit comments.

We should figure out where we want to release this PR and mark which release we officially drop python 3.8

@@ -202,7 +202,7 @@ Deprecated in 0.1.0, will be removed in 0.2.0. The old_property is deprecated. P

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

PyIceberg offers support from Python 3.8 onwards, we can't use the [type hints from the standard collections](https://peps.python.org/pep-0585/).
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/).
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: add a paragraph about dropping 3.8 support at version 0.x (whatever we release this commit as)

Copy link
Member Author

Choose a reason for hiding this comment

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

Hi @kevinjqliu, I am unsure I understand where you want me to add this paragraph. Are you suggesting to add it to the mkdocs/docs/contributing.md file? I thought the changelog would be generated from the issues/commits is there any other place where the changelogs / guidelines should be added for that?

Copy link
Contributor

Choose a reason for hiding this comment

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

ah sorry about the confusion, i didnt see this is the contributing doc. in that case, this isn't needed.

i thought this was the docs on how to use pyiceberg, in which case we should mention that 3.8 support is dropped in this next release

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!

Sidenote, I dont see a good place to add a note about dropping python 3.8 support on the docs https://py.iceberg.apache.org/
We can just include this as part of the release notes

Copy link
Contributor

@HonahX HonahX left a comment

Choose a reason for hiding this comment

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

LGTM! @raulcd Thanks for the contribution!

@kevinjqliu
Copy link
Contributor

Merging, since it was already voted to drop python 3.8 in the pyiceberg 0.8.0 release (next release)

@kevinjqliu kevinjqliu merged commit 857abd0 into apache:main Oct 8, 2024
7 checks passed
@kevinjqliu
Copy link
Contributor

Thank you @raulcd for the contribution!

@kevinjqliu kevinjqliu added this to the PyIceberg 0.8.0 release milestone Oct 8, 2024
@raulcd
Copy link
Member Author

raulcd commented Oct 8, 2024

Thank you @raulcd for the contribution!

Thanks @kevinjqliu @sungwy @HonahX for approving the PR! I plan to keep contributing :)

sungwy pushed a commit to sungwy/iceberg-python that referenced this pull request Dec 7, 2024
* Drop support for Python 3.8

* Run poetry lock --no-update

* Add usage of Python 3.9 on Ubuntu 20.04

* Update Ubuntu to 22.04 on Integration tests

* Add Python 3.10 to python-release workflow
sungwy pushed a commit to sungwy/iceberg-python that referenced this pull request Dec 7, 2024
* Drop support for Python 3.8

* Run poetry lock --no-update

* Add usage of Python 3.9 on Ubuntu 20.04

* Update Ubuntu to 22.04 on Integration tests

* Add Python 3.10 to python-release workflow
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.

Remove python 3.8 support
4 participants