-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Description
Apache Airflow version
2.2.1 (latest released)
Operating System
N/A
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
What happened
Trying to install Airflow in a Python 3.7+ project via Poetry gives following error:
The current project's Python requirement (>=3.7) is not compatible with some of the required packages Python requirement:
- apache-airflow requires Python ~=3.6, so it will not be satisfied for Python >=4.0
I am aware poetry is not supported [*] but isn't this constraint on the python version needlessly tight regardless? It comes from setup.cfg: python_requires = ~=3.6
[*] (it normally works after some copying some entries from constraints.txt into Poetry.lock)
What you expected to happen
According to https://airflow.apache.org/docs/apache-airflow/stable/installation/prerequisites.html, "Airflow is tested on 3.6, 3.7, 3.8, 3.9." Installing the pip package in those python environments should work. Preferably in newer versions also as they are generally very compatible.
Can the constraint be set to >=3.6?
How to reproduce
No response
Anything else
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct