From 69a6e7ebca9bd2d385f866bd36d32057977d3fb4 Mon Sep 17 00:00:00 2001 From: Leah Cole Date: Mon, 8 Nov 2021 10:39:43 -0800 Subject: [PATCH 1/2] add constraint --- composer/airflow_1_samples/constraints.txt | 1 + .../gcp-tech-blog/unit-test-dags-cloud-build/constraints.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/composer/airflow_1_samples/constraints.txt b/composer/airflow_1_samples/constraints.txt index ca0e831ad6a..635964be150 100644 --- a/composer/airflow_1_samples/constraints.txt +++ b/composer/airflow_1_samples/constraints.txt @@ -1,2 +1,3 @@ pandas-gbq==0.14.1 # must be under 0.15.0 until https://github.com/apache/airflow/issues/15113 is addressed SQLAlchemy==1.3.23 # must be under 1.4 until at least Airflow 2.0 (check airflow setup.py for restrictions) +WTForms==2.3.3 # Must stay under 3.0 because of https://github.com/dpgaspar/Flask-AppBuilder/issues/1732 \ No newline at end of file diff --git a/composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/constraints.txt b/composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/constraints.txt index 5784f524232..6f10d14cb1d 100644 --- a/composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/constraints.txt +++ b/composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/constraints.txt @@ -1 +1,2 @@ SQLAlchemy==1.3.23 # must be under 1.4 until at least Airflow 2.0 (check airflow setup.py for restrictions) +WTForms==2.3.3 # Must stay under 3.0 because of https://github.com/dpgaspar/Flask-AppBuilder/issues/1732 \ No newline at end of file From 2dd3a7ed03a5b567bd8b2bbd0a46f11046d00bcd Mon Sep 17 00:00:00 2001 From: Leah Cole Date: Mon, 8 Nov 2021 10:50:10 -0800 Subject: [PATCH 2/2] Add 3.10 to noxfile exemption --- composer/airflow_1_samples/noxfile_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer/airflow_1_samples/noxfile_config.py b/composer/airflow_1_samples/noxfile_config.py index bc8c408b1fb..e23bba7a16c 100644 --- a/composer/airflow_1_samples/noxfile_config.py +++ b/composer/airflow_1_samples/noxfile_config.py @@ -31,7 +31,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # Skipping for Python 3.9 due to numpy compilation failure. - "ignored_versions": ["2.7", "3.9"], + "ignored_versions": ["2.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False,