diff --git a/.github/workflows/publish-cdk-command.yml b/.github/workflows/publish-cdk-command.yml index b01d60e1971..ad87ee8da8e 100644 --- a/.github/workflows/publish-cdk-command.yml +++ b/.github/workflows/publish-cdk-command.yml @@ -13,9 +13,9 @@ jobs: publish-cdk: runs-on: ubuntu-latest steps: - - uses: actions/setup-python@v2 + - uses: gabrielfalcao/pyenv-action@v7 with: - python-version: '3.7' + default: 3.7.0 - uses: actions/setup-java@v1 with: java-version: '14' @@ -36,12 +36,13 @@ jobs: - name: Checkout Airbyte uses: actions/checkout@v2 - name: Build CDK Package - run: ./gradlew --no-daemon :airbyte-cdk:python:build + # By default .python-version is 3.7.9 + run: pyenv local 3.7.0 && ./gradlew --no-daemon :airbyte-cdk:python:build - name: Publish Python Package if: success() uses: mariamrf/py-package-publish-action@v1.1.0 with: - python_version: '3.7.9' + python_version: '3.7.0' pip_version: '21.1' subdir: 'airbyte-cdk/python/' env: diff --git a/airbyte-cdk/python/CHANGELOG.md b/airbyte-cdk/python/CHANGELOG.md index 01ec5ea368b..a8f04ed36fc 100644 --- a/airbyte-cdk/python/CHANGELOG.md +++ b/airbyte-cdk/python/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 0.1.4 +Allow to use Python 3.7.0: https://github.com/airbytehq/airbyte/pull/3566 + ## 0.1.2 Fix an issue that caused infinite pagination: https://github.com/airbytehq/airbyte/pull/3366 diff --git a/airbyte-cdk/python/docs/tutorials/cdk-tutorial-python-http/0-getting-started.md b/airbyte-cdk/python/docs/tutorials/cdk-tutorial-python-http/0-getting-started.md index 55344cb8eed..cbee09971d1 100644 --- a/airbyte-cdk/python/docs/tutorials/cdk-tutorial-python-http/0-getting-started.md +++ b/airbyte-cdk/python/docs/tutorials/cdk-tutorial-python-http/0-getting-started.md @@ -10,7 +10,7 @@ This is a step-by-step guide for how to create an Airbyte source in Python to re * Docker * NodeJS \(only used to generate the connector\). We'll remove the NodeJS dependency soon. -All the commands below assume that `python` points to a version of python >=3.7.9. On some systems, `python` points to a Python2 installation and `python3` points to Python3. If this is the case on your machine, substitute all `python` commands in this guide with `python3`. +All the commands below assume that `python` points to a version of python >=3.7.0. On some systems, `python` points to a Python2 installation and `python3` points to Python3. If this is the case on your machine, substitute all `python` commands in this guide with `python3`. ## Checklist diff --git a/airbyte-cdk/python/docs/tutorials/http_api_source.md b/airbyte-cdk/python/docs/tutorials/http_api_source.md index edc5c6cbe8c..21f360ade71 100644 --- a/airbyte-cdk/python/docs/tutorials/http_api_source.md +++ b/airbyte-cdk/python/docs/tutorials/http_api_source.md @@ -11,7 +11,7 @@ Exchangerates API as an example since it is both simple but demonstrates a lot o * Docker * NodeJS (only used to generate the connector). We'll remove the NodeJS dependency soon. -All the commands below assume that `python` points to a version of python >=3.7.9. On some systems, `python` points to a Python2 installation and `python3` points to Python3. If this is the case on your machine, substitute all `python` commands in this guide with `python3`. +All the commands below assume that `python` points to a version of python >=3.7.0. On some systems, `python` points to a Python2 installation and `python3` points to Python3. If this is the case on your machine, substitute all `python` commands in this guide with `python3`. ## Checklist * Step 1: Create the source using the template diff --git a/airbyte-cdk/python/setup.py b/airbyte-cdk/python/setup.py index 41716558044..b45170db909 100644 --- a/airbyte-cdk/python/setup.py +++ b/airbyte-cdk/python/setup.py @@ -35,7 +35,7 @@ README = (HERE / "README.md").read_text() setup( name="airbyte-cdk", - version="0.1.3", + version="0.1.4", description="A framework for writing Airbyte Connectors.", long_description=README, long_description_content_type="text/markdown", @@ -72,7 +72,7 @@ setup( "PyYAML==5.4", "requests", ], - python_requires=">=3.7.9", + python_requires=">=3.7.0", extras_require={ "dev": [ "MyPy==0.812",