Skip to content

Commit 8c7f407

Browse files
committed
Revert "Remove Python 3.9 support (apache#2554)"
This reverts commit 1bef2a4
1 parent cd487f5 commit 8c7f407

File tree

6 files changed

+1567
-859
lines changed

6 files changed

+1567
-859
lines changed

.github/workflows/pypi-build-artifacts.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- uses: actions/setup-python@v6
4343
with:
4444
python-version: |
45+
3.9
4546
3.10
4647
3.11
4748
3.12
@@ -68,7 +69,7 @@ jobs:
6869
env:
6970
# Ignore 32 bit architectures
7071
CIBW_ARCHS: "auto64"
71-
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10"
72+
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9,<3.13"
7273
CIBW_TEST_REQUIRES: "pytest==7.4.2 moto==5.0.1"
7374
CIBW_TEST_COMMAND: "pytest {project}/tests/avro/test_decoder.py"
7475
CIBW_BUILD_VERBOSITY: 1

.github/workflows/python-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848
strategy:
4949
matrix:
50-
python: ['3.10', '3.11', '3.12']
50+
python: ['3.9', '3.10', '3.11', '3.12']
5151

5252
steps:
5353
- uses: actions/checkout@v5
@@ -71,7 +71,7 @@ jobs:
7171
runs-on: ubuntu-latest
7272
strategy:
7373
matrix:
74-
python: ['3.10', '3.11', '3.12']
74+
python: ['3.9', '3.10', '3.11', '3.12']
7575

7676
steps:
7777
- uses: actions/checkout@v5

.github/workflows/svn-build-artifacts.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- uses: actions/setup-python@v6
4343
with:
4444
python-version: |
45+
3.9
4546
3.10
4647
3.11
4748
3.12
@@ -63,7 +64,7 @@ jobs:
6364
env:
6465
# Ignore 32 bit architectures
6566
CIBW_ARCHS: "auto64"
66-
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10"
67+
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9,<3.13"
6768
CIBW_TEST_REQUIRES: "pytest==7.4.2 moto==5.0.1"
6869
CIBW_TEST_COMMAND: "pytest {project}/tests/avro/test_decoder.py"
6970
# Ignore tests for pypy since not all dependencies are compiled for it

mkdocs/docs/contributing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ Deprecated in 0.1.0, will be removed in 0.2.0. The old_property is deprecated. P
234234

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

237+
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/).
238+
237239
### Third party libraries
238240

239241
PyIceberg naturally integrates into the rich Python ecosystem, however it is important to be hesitant adding third party packages. Adding a lot of packages makes the library heavyweight, and causes incompatibilities with other projects if they use a different version of the library. Also, big libraries such as `s3fs`, `adlfs`, `pyarrow`, `thrift` should be optional to avoid downloading everything, while not being sure if is actually being used.

0 commit comments

Comments
 (0)