Skip to content

Commit 979a9a5

Browse files
committed
feat: Support Python 3.10
1 parent 501739c commit 979a9a5

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/test.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: [3.7, 3.8, 3.9]
16+
python-version: [3.7, 3.8, 3.9, '3.10']
1717
airflow-version: ['1.10.15', '2.0.2', '2.2.5']
18+
exclude:
19+
- python-version: '3.10'
20+
airflow-version: '2.0.2'
21+
- python-version: '3.10'
22+
airflow-version: '1.10.15'
1823
runs-on: ubuntu-latest
1924
steps:
2025
- uses: actions/checkout@v2
@@ -42,12 +47,19 @@ jobs:
4247
run: poetry run black --check .
4348

4449
- name: Install Airflow > 2
45-
if: matrix.airflow-version != '1.10.15'
50+
if: matrix.airflow-version != '1.10.15' && matrix.python-version != '3.10'
4651
run: |
4752
wget https://raw.githubusercontent.com/apache/airflow/constraints-${{ matrix.airflow-version }}/constraints-${{ matrix.python-version }}.txt -O constraints.txt
4853
poetry run pip install apache-airflow==${{ matrix.airflow-version }} apache-airflow-providers-amazon -c constraints.txt
4954
poetry run airflow db init
5055
56+
- name: Install Airflow > 2
57+
if: matrix.airflow-version != '1.10.15' && matrix.python-version == '3.10'
58+
run: |
59+
wget https://raw.githubusercontent.com/apache/airflow/constraints-${{ matrix.airflow-version }}/constraints-3.9.txt -O constraints.txt
60+
poetry run pip install apache-airflow==${{ matrix.airflow-version }} apache-airflow-providers-amazon -c constraints.txt
61+
poetry run airflow db init
62+
5163
- name: Install Airflow 1.10.15
5264
if: matrix.airflow-version == '1.10.15'
5365
run: |

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ classifiers = [
1616
"Programming Language :: Python :: 3.7",
1717
"Programming Language :: Python :: 3.8",
1818
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
1920
]
2021

2122
[tool.poetry.dependencies]
22-
python = ">=3.7.2, <3.10.0"
23+
python = ">=3.7.2, <3.11.0"
2324

2425
apache-airflow = { version = ">=2.2", optional = true }
2526
apache-airflow-providers-amazon = { version = ">=3.0.0", optional = true }

0 commit comments

Comments
 (0)