Skip to content

Commit

Permalink
Fix Python3.11 constraints (#1285)
Browse files Browse the repository at this point in the history
* Fix Python3.11 constraints

* Add a note for hive python3.11
  • Loading branch information
pankajastro authored Aug 7, 2023
1 parent ff09c1f commit 4e6e21c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
40 changes: 39 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ workflows:
name: constraints-<< matrix.python_version >>-<< matrix.airflow_version >>
matrix:
parameters:
python_version: ["3.8", "3.9", "3.10", "3.11"]
python_version: ["3.8", "3.9", "3.10"]
airflow_version: ["2.4.3", "2.5.3", "2.6.3"]
<<: *main_and_release_branches
- generate-constraints-python-3-11:
name: constraints-<< matrix.python_version >>-<< matrix.airflow_version >>
matrix:
parameters:
python_version: ["3.11"]
airflow_version: ["2.6.3"]
<<: *main_and_release_branches
- build-docs:
<<: *all_branches_and_version_tag
- test-python3-11:
Expand Down Expand Up @@ -279,6 +286,37 @@ jobs:
> constraints-<<parameters.python_version>>-<<parameters.airflow_version>>.txt
- store_artifacts:
path: constraints-<<parameters.python_version>>-<<parameters.airflow_version>>.txt
generate-constraints-python-3-11:
parameters:
python_version:
description: "Python Version"
type: string
airflow_version:
description: "Airflow Version"
type: string
description: Test Python-<<parameters.python_version>>
executor:
name: docker-executor
python_version: "<<parameters.python_version>>"
steps:
- checkout
- run:
name: Install Dependencies for sasl
command: |
sudo apt-get install -y --no-install-recommends build-essential
sudo apt-get update
sudo apt-get install libsasl2-dev
- run:
name: Install Dependencies
command: pip install -U -e .[test_python_3_11,tests] apache-airflow==<<parameters.airflow_version>>
- run:
name: Generate Constraints
command: pip freeze
| sort
| grep -v "@"
> constraints-<<parameters.python_version>>-<<parameters.airflow_version>>.txt
- store_artifacts:
path: constraints-<<parameters.python_version>>-<<parameters.airflow_version>>.txt

build-and-verify:
executor:
Expand Down
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ Extras

.. EXTRA_DOC_END
.. note::
astronomer-providers[apache.hive] is not supported for Python3.11

Example Usage
-------------

Expand Down Expand Up @@ -185,6 +188,7 @@ Limitations

- In Airflow sensors have a param ``mode`` which can be ``poke`` and ``reschedule``.
In async sensors, this param has no usage since tasks gets deferred to Triggerer.
- astronomer-providers[apache.hive] is not supported for Python3.11

License
-------
Expand Down

0 comments on commit 4e6e21c

Please sign in to comment.