Skip to content
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

[Python]: Drop support for Python 3.7 and 3.8 #3221

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/test-lang-py-ARM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
pull_request:
branches: [ main ]
paths:
- .github/workflows/test-lang-py.yml
- .github/workflows/test-lang-py-ARM.yml
Copy link
Member Author

Choose a reason for hiding this comment

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

The ARM64 VMs are self-hosted by ASF Infra and they use Ubuntu 20.04 with an old Python version in the OS repos ...
This should be re-worked to use Conda or something similar to install a newer version of Python.

- lang/py/**

defaults:
Expand All @@ -44,7 +44,16 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install -q -y python3 python3-dev python3-pip git libbz2-dev libjansson-dev liblzma-dev libsnappy-dev libzstd-dev
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt-get update -q
sudo apt-get install -q -y python3.12 python3.12-dev python3-pip git libbz2-dev libjansson-dev liblzma-dev libsnappy-dev libzstd-dev
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1
sudo sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.12 2
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 2
sudo update-alternatives --set python /usr/bin/python3.12
sudo update-alternatives --set python3 /usr/bin/python3.12
python3 -m pip install --upgrade pip setuptools tox

- name: Build
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/test-lang-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:
- '3.11'
- '3.10'
- '3.9'
- '3.8'
- '3.7'
- 'pypy-3.10'

steps:
Expand Down Expand Up @@ -89,8 +87,6 @@ jobs:
- '3.11'
- '3.10'
- '3.9'
- '3.8'
- '3.7'
- 'pypy-3.10'

steps:
Expand Down
4 changes: 1 addition & 3 deletions lang/py/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ license_files = avro/LICENSE
license = Apache License 2.0
classifiers =
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Expand All @@ -56,7 +54,7 @@ include_package_data = true
install_requires =
typing-extensions;python_version<"3.8"
zip_safe = true
python_requires = >=3.7
python_requires = >=3.9

[options.entry_points]
console_scripts =
Expand Down
4 changes: 0 additions & 4 deletions share/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ RUN apt-get -qqy update \
python3.10 \
python3.11 \
python3.11-dev \
Copy link
Member Author

Choose a reason for hiding this comment

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

Is it time to add 3.12 here ?

Copy link
Member

@Xuanwo Xuanwo Oct 25, 2024

Choose a reason for hiding this comment

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

Given that version 3.13 has been released, I think it's about time.

python3.7 \
python3.7-distutils \
python3.8 \
python3.8-distutils \
python3.9 \
python3.9-distutils \
source-highlight \
Expand Down
Loading