From f8f0f6e5beee029a6612bea812988bcb5ca05970 Mon Sep 17 00:00:00 2001 From: Merel Theisen <49397448+MerelTheisenQB@users.noreply.github.com> Date: Mon, 4 Apr 2022 18:00:49 +0200 Subject: [PATCH] Prepare `kedro-airflow` 0.5.0 release (#17) * Prepare airflow for kedro 0.18.0 Signed-off-by: Merel Theisen * Put back kedro req Signed-off-by: Merel Theisen * Temporarily pin back black Signed-off-by: Merel Theisen * Try pinning flask and jinja Signed-off-by: Merel Theisen * Fix lint Signed-off-by: Merel Theisen * Use latest black Signed-off-by: Merel Theisen * Try unpin flask Signed-off-by: Merel Theisen * Unpin jinja Signed-off-by: Merel Theisen * Bump version Signed-off-by: noklam * Force starters to point to checkout 0.18.0 temporarily Signed-off-by: noklam * Disable the path checking temporarily Signed-off-by: noklam * Revert checkout argument for starters Signed-off-by: noklam * Test older version of Kedro build Signed-off-by: noklam * Forcing e2e test run on kedro==0.17.3 Signed-off-by: noklam * Bump kedro to 0.17.4 Signed-off-by: noklam * Pin 0.17.5 Signed-off-by: noklam * Update kedro-airflow/RELEASE.md Co-authored-by: Antony Milne <49395058+AntonyMilneQB@users.noreply.github.com> * Update kedro-airflow/RELEASE.md Co-authored-by: Antony Milne <49395058+AntonyMilneQB@users.noreply.github.com> * Revert the test to point back to latest kedro for CI Signed-off-by: noklam * Fix Ci config Signed-off-by: noklam * update badges Signed-off-by: noklam * Pin kedro to latest in test config Signed-off-by: noklam Co-authored-by: noklam Co-authored-by: Nok Co-authored-by: Antony Milne <49395058+AntonyMilneQB@users.noreply.github.com> --- .circleci/continue_config.yml | 10 +++++----- kedro-airflow/README.md | 2 +- kedro-airflow/RELEASE.md | 6 ++++++ kedro-airflow/features/airflow.feature | 4 ++-- kedro-airflow/kedro_airflow/__init__.py | 2 +- kedro-airflow/requirements.txt | 2 +- kedro-airflow/setup.py | 2 +- kedro-airflow/test_requirements.txt | 2 +- 8 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.circleci/continue_config.yml b/.circleci/continue_config.yml index 15d65df8d..1bd7af50a 100644 --- a/.circleci/continue_config.yml +++ b/.circleci/continue_config.yml @@ -55,7 +55,7 @@ commands: name: Install kedro and test requirements command: | cd <> - pip install kedro==0.17.7 + pip install git+https://github.com/kedro-org/kedro@main pip install -r test_requirements.txt - run: name: Install pre-commit hooks @@ -106,7 +106,7 @@ commands: conda activate kedro_plugins cd <> python -m pip install -U pip setuptools wheel - pip install kedro==0.17.7 + pip install git+https://github.com/kedro-org/kedro@main pip install -r test_requirements.txt -U - run: name: Pip freeze @@ -239,16 +239,16 @@ workflows: plugin: "kedro-airflow" matrix: parameters: - python_version: ["3.6", "3.7", "3.8"] + python_version: ["3.7", "3.8", "3.9", "3.10"] - e2e_tests: plugin: "kedro-airflow" matrix: parameters: - python_version: ["3.6", "3.7", "3.8"] + python_version: ["3.7", "3.8", "3.9", "3.10"] - win_unit_tests: plugin: "kedro-airflow" matrix: parameters: - python_version: ["3.6", "3.7", "3.8"] + python_version: ["3.7", "3.8", "3.9", "3.10"] - lint: plugin: "kedro-airflow" diff --git a/kedro-airflow/README.md b/kedro-airflow/README.md index 00e7dc3cf..c89d3513b 100644 --- a/kedro-airflow/README.md +++ b/kedro-airflow/README.md @@ -1,7 +1,7 @@ # Kedro-Airflow [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -[![Python Version](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8-blue.svg)](https://pypi.org/project/kedro-airflow/) +[![Python Version](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-blue.svg)](https://pypi.org/project/kedro-airflow/) [![PyPI Version](https://badge.fury.io/py/kedro-airflow.svg)](https://pypi.org/project/kedro-airflow/) [![Code Style: Black](https://img.shields.io/badge/code%20style-black-black.svg)](https://github.com/ambv/black) diff --git a/kedro-airflow/RELEASE.md b/kedro-airflow/RELEASE.md index 5cc795327..ff4ebff64 100755 --- a/kedro-airflow/RELEASE.md +++ b/kedro-airflow/RELEASE.md @@ -1,5 +1,11 @@ +# Release 0.5.0 +* Add compatibility with `kedro` 0.18.0 +* Add compatibility with Python 3.9 and 3.10 +* Remove compatibility with Python 3.6 + # Release 0.4.2 * Drop context/session usage to fetch pipelines to support Kedro>=0.17.5. + # Release 0.4.1 ## Bugfix diff --git a/kedro-airflow/features/airflow.feature b/kedro-airflow/features/airflow.feature index e6a265180..f888ab1ee 100644 --- a/kedro-airflow/features/airflow.feature +++ b/kedro-airflow/features/airflow.feature @@ -4,7 +4,7 @@ Feature: Airflow Given I have initialized Airflow with home dir "airflow" Scenario: Print a list of tasks with latest Kedro - Given I have installed kedro version "0.17.7" + Given I have installed kedro version "latest" And I have prepared a config file And I have run a non-interactive kedro new And I have prepared a data catalog @@ -17,7 +17,7 @@ Feature: Airflow And I should get a message including "train" Scenario: Run Airflow task locally with latest Kedro - Given I have installed kedro version "0.17.7" + Given I have installed kedro version "latest" And I have prepared a config file And I have run a non-interactive kedro new And I have prepared a data catalog diff --git a/kedro-airflow/kedro_airflow/__init__.py b/kedro-airflow/kedro_airflow/__init__.py index 07603998e..d4bdefb01 100644 --- a/kedro-airflow/kedro_airflow/__init__.py +++ b/kedro-airflow/kedro_airflow/__init__.py @@ -1,3 +1,3 @@ """ Kedro plugin for running a project with Airflow """ -__version__ = "0.4.2" +__version__ = "0.5.0" diff --git a/kedro-airflow/requirements.txt b/kedro-airflow/requirements.txt index f4f208e9b..2a4e50c0a 100644 --- a/kedro-airflow/requirements.txt +++ b/kedro-airflow/requirements.txt @@ -1,3 +1,3 @@ -kedro>=0.17.5, <0.18.0 +kedro>=0.17.5 python-slugify~=4.0 semver~=2.10 # Needs to be at least 2.10.0 to get VersionInfo.match diff --git a/kedro-airflow/setup.py b/kedro-airflow/setup.py index 4f5398af2..5c4bd1459 100644 --- a/kedro-airflow/setup.py +++ b/kedro-airflow/setup.py @@ -33,7 +33,7 @@ long_description_content_type="text/markdown", url="https://github.com/kedro-org/kedro-plugins/tree/main/kedro-airflow", author="Kedro", - python_requires=">=3.6, <3.9", + python_requires=">=3.7, <3.11", install_requires=requires, tests_require=test_requires, license="Apache Software License (Apache 2.0)", diff --git a/kedro-airflow/test_requirements.txt b/kedro-airflow/test_requirements.txt index a0cd4863a..ef162c949 100644 --- a/kedro-airflow/test_requirements.txt +++ b/kedro-airflow/test_requirements.txt @@ -2,7 +2,7 @@ apache-airflow<3.0 bandit>=1.6.2, <2.0 behave -black==v19.10.b0 +black~=22.0 flake8 pre-commit>=1.17.0, <2.0 pylint>=2.5.2, <3.0