diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18a1888908f46..2d0bf14cedacf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -378,10 +378,10 @@ jobs: runs-on: ubuntu-latest needs: [build-info, ci-images] env: - INSTALL_AIRFLOW_VERSION: "2.0.0-dev" # Note that this causes local installation + INSTALL_AIRFLOW_VERSION: "wheel" PYTHON_MAJOR_MINOR_VERSION: ${{needs.build-info.outputs.defaultPythonVersion}} - VERSION_SUFFIX_FOR_PYPI: "a0" - VERSION_SUFFIX_FOR_SVN: "a0" + VERSION_SUFFIX_FOR_PYPI: "a2" + VERSION_SUFFIX_FOR_SVN: "a2" if: needs.build-info.outputs.image-build == 'true' steps: - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" diff --git a/.gitignore b/.gitignore index 8d4068a60ea08..9528a2ffe1c0c 100644 --- a/.gitignore +++ b/.gitignore @@ -186,7 +186,10 @@ dmypy.json /.kube /.inputrc log.txt* + +# Provider-related ignores /provider_packages/CHANGELOG.txt +/airflow/providers/__init__.py # Local .terraform directories **/.terraform/* diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 734fd2cf6ce84..b75d69d21b3f3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -199,7 +199,7 @@ repos: hooks: - id: isort name: Run isort to sort imports - types: [python] + files: \.py$ # To keep consistent with the global isort skip config defined in setup.cfg exclude: ^build/.*$|^.tox/.*$|^venv/.*$ - repo: https://github.com/pycqa/pydocstyle @@ -335,7 +335,7 @@ repos: ^airflow/operators/.*$| ^airflow/sensors/.*$| ^airflow/providers/.*$| - ^provider_packages/.*$ + ^dev/provider_packages/.*$ - id: base-operator language: pygrep name: Make sure BaseOperator[Link] is imported from airflow.models outside of core @@ -438,6 +438,17 @@ repos: files: ^airflow/www/.*\.(css|scss|sass)$ # Keep dependency versions in sync w/ airflow/www/package.json additional_dependencies: ['stylelint@13.3.1', 'stylelint-config-standard@20.0.0'] + - id: version-sync + name: Version sync + files: ^airflow/version.py$|setup.py + entry: ./scripts/ci/pre_commit/pre_commit_sync_version.sh + language: system + - id: providers-init-file + name: Provider init file + pass_filenames: false + always_run: true + entry: ./scripts/ci/pre_commit/pre_commit_check_providers_init.sh + language: system - id: mermaid name: Generate mermaid images entry: ./scripts/ci/pre_commit/pre_commit_mermaid.sh diff --git a/BREEZE.rst b/BREEZE.rst index 6b078a68b1742..5b9a76f2bcb65 100644 --- a/BREEZE.rst +++ b/BREEZE.rst @@ -1207,6 +1207,9 @@ This is the current syntax for `./breeze <./breeze>`_: image building time in production image and at container entering time for CI image. One of: 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 + wheel + + When 'wheel' is used, Airflow is installed from /dist/apache_airflow-*.whl file. -t, --install-airflow-reference INSTALL_AIRFLOW_REFERENCE If specified, installs Airflow directly from reference in GitHub. This happens at @@ -2004,11 +2007,11 @@ This is the current syntax for `./breeze <./breeze>`_: dont-use-safe-filter end-of-file-fixer fix-encoding-pragma flake8 forbid-tabs helm-lint incorrect-use-of-LoggingMixin insert-license isort language-matters lint-dockerfile lint-openapi mermaid mixed-line-ending mypy mypy-helm - no-relative-imports pre-commit-descriptions provide-create-sessions pydevd - pydocstyle pylint pylint-tests python-no-log-warn pyupgrade restrict-start_date - rst-backticks setup-order setup-installation shellcheck sort-in-the-wild stylelint - trailing-whitespace update-breeze-file update-extras update-local-yml-file - update-setup-cfg-file yamllint + no-relative-imports pre-commit-descriptions provide-create-sessions + providers-init-file pydevd pydocstyle pylint pylint-tests python-no-log-warn + pyupgrade restrict-start_date rst-backticks setup-order setup-installation + shellcheck sort-in-the-wild stylelint trailing-whitespace update-breeze-file + update-extras update-local-yml-file update-setup-cfg-file version-sync yamllint You can pass extra arguments including options to to the pre-commit framework as passed after --. For example: @@ -2231,6 +2234,9 @@ This is the current syntax for `./breeze <./breeze>`_: image building time in production image and at container entering time for CI image. One of: 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 + wheel + + When 'wheel' is used, Airflow is installed from /dist/apache_airflow-*.whl file. -t, --install-airflow-reference INSTALL_AIRFLOW_REFERENCE If specified, installs Airflow directly from reference in GitHub. This happens at diff --git a/CI.rst b/CI.rst index 8ee5a4c9b1329..0825b04397d59 100644 --- a/CI.rst +++ b/CI.rst @@ -203,7 +203,8 @@ You can use those variables when you try to reproduce the build locally. | Image variables | +-----------------------------------------+-------------+-------------+------------+-------------------------------------------------+ | ``INSTALL_AIRFLOW_VERSION`` | | | | Installs Airflow version from PyPI when | -| | | | | building image. | +| | | | | building image. Can be "wheel" to install from | +| | | | | the wheel package instead. | +-----------------------------------------+-------------+-------------+------------+-------------------------------------------------+ | ``INSTALL_AIRFLOW_REFERENCE`` | | | | Installs Airflow version from GitHub | | | | | | branch or tag. | diff --git a/STATIC_CODE_CHECKS.rst b/STATIC_CODE_CHECKS.rst index b525394aba0b2..887671f9d6b94 100644 --- a/STATIC_CODE_CHECKS.rst +++ b/STATIC_CODE_CHECKS.rst @@ -126,6 +126,8 @@ require Breeze Docker images to be installed locally: ----------------------------------- ---------------------------------------------------------------- ------------ ``provide-create-sessions`` Make sure provide-session and create-session imports are OK. ----------------------------------- ---------------------------------------------------------------- ------------ +``providers-init-file`` Check that provider's __init__.py file is removed +----------------------------------- ---------------------------------------------------------------- ------------ ``pydevd`` Check for accidentally committed pydevd statements. ----------------------------------- ---------------------------------------------------------------- ------------ ``pydocstyle`` Runs pydocstyle. @@ -156,10 +158,12 @@ require Breeze Docker images to be installed locally: ----------------------------------- ---------------------------------------------------------------- ------------ ``update-local-yml-file`` Updates mounts in local.yml file. ----------------------------------- ---------------------------------------------------------------- ------------ -``update-setup-cfg-file`` Update setup.cfg file with all licenses. +``update-setup-cfg-file`` Update setup.cfg file with all licenses. ----------------------------------- ---------------------------------------------------------------- ------------ ``update-extras`` Updates extras in the documentation. ----------------------------------- ---------------------------------------------------------------- ------------ +``version-sync`` Synchronizes versions setup.py <-> airflow/version.py. +----------------------------------- ---------------------------------------------------------------- ------------ ``yamllint`` Checks yaml files with yamllint. =================================== ================================================================ ============ diff --git a/airflow/api_connexion/exceptions.py b/airflow/api_connexion/exceptions.py index cf6635746367f..0360ec2b67dbb 100644 --- a/airflow/api_connexion/exceptions.py +++ b/airflow/api_connexion/exceptions.py @@ -21,9 +21,10 @@ from airflow import version -doc_link = f'https://airflow.apache.org/docs/{version.version}/stable-rest-api-ref.html' -if 'dev' in version.version: +if any(suffix in version.version for suffix in ['dev', 'a', 'b']): doc_link = "https://airflow.readthedocs.io/en/latest/stable-rest-api-ref.html" +else: + doc_link = f'https://airflow.apache.org/docs/{version.version}/stable-rest-api-ref.html' EXCEPTIONS_LINK_MAP = { 400: f"{doc_link}#section/Errors/BadRequest", @@ -38,6 +39,7 @@ def common_error_handler(exception): """ Used to capture connexion exceptions and add link to the type field + :type exception: Exception """ if isinstance(exception, ProblemException): diff --git a/airflow/providers/amazon/backport_provider_setup.cfg b/airflow/providers/amazon/backport_provider_setup.cfg deleted file mode 100644 index a931f930a40b0..0000000000000 --- a/airflow/providers/amazon/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-amazon -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-amazon package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.amazon - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/amazon/backport_provider_setup.py b/airflow/providers/amazon/backport_provider_setup.py deleted file mode 100644 index f21a080fc8829..0000000000000 --- a/airflow/providers/amazon/backport_provider_setup.py +++ /dev/null @@ -1,112 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-amazon package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/amazon/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-amazon setup.""" - setup( - name='apache-airflow-backport-providers-amazon', - description='Backport provider package ' - 'apache-airflow-backport-providers-amazon for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.amazon*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'boto3>=1.12.0,<2.0.0', 'watchtower~=0.7.3'], - setup_requires=['setuptools', 'wheel'], - extras_require={ - 'apache.hive': ['apache-airflow-backport-providers-apache-hive'], - 'google': ['apache-airflow-backport-providers-google'], - 'imap': ['apache-airflow-backport-providers-imap'], - 'mongo': ['apache-airflow-backport-providers-mongo'], - 'mysql': ['apache-airflow-backport-providers-mysql'], - 'postgres': ['apache-airflow-backport-providers-postgres'], - 'ssh': ['apache-airflow-backport-providers-ssh'], - }, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/apache/cassandra/backport_provider_setup.cfg b/airflow/providers/apache/cassandra/backport_provider_setup.cfg deleted file mode 100644 index b92c1ea3dd8ed..0000000000000 --- a/airflow/providers/apache/cassandra/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-apache-cassandra -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-apache-cassandra package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.apache.cassandra - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/apache/cassandra/backport_provider_setup.py b/airflow/providers/apache/cassandra/backport_provider_setup.py deleted file mode 100644 index db239d0c4b6d3..0000000000000 --- a/airflow/providers/apache/cassandra/backport_provider_setup.py +++ /dev/null @@ -1,105 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-apache-cassandra package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/apache/cassandra/BACKPORT_PROVIDER_README.md'), - encoding='utf-8', - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-apache-cassandra setup.""" - setup( - name='apache-airflow-backport-providers-apache-cassandra', - description='Backport provider package ' - 'apache-airflow-backport-providers-apache-cassandra for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.apache.cassandra*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'cassandra-driver>=3.13.0,<3.21.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/apache/druid/backport_provider_setup.cfg b/airflow/providers/apache/druid/backport_provider_setup.cfg deleted file mode 100644 index 4aff24d2c980d..0000000000000 --- a/airflow/providers/apache/druid/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-apache-druid -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-apache-druid package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.apache.druid - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/apache/druid/backport_provider_setup.py b/airflow/providers/apache/druid/backport_provider_setup.py deleted file mode 100644 index 6674a2214890b..0000000000000 --- a/airflow/providers/apache/druid/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-apache-druid package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/apache/druid/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-apache-druid setup.""" - setup( - name='apache-airflow-backport-providers-apache-druid', - description='Backport provider package ' - 'apache-airflow-backport-providers-apache-druid for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.apache.druid*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'pydruid>=0.4.1'], - setup_requires=['setuptools', 'wheel'], - extras_require={'apache.hive': ['apache-airflow-backport-providers-apache-hive']}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/apache/hdfs/backport_provider_setup.cfg b/airflow/providers/apache/hdfs/backport_provider_setup.cfg deleted file mode 100644 index ff8171bb6f043..0000000000000 --- a/airflow/providers/apache/hdfs/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-apache-hdfs -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-apache-hdfs package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.apache.hdfs - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/apache/hdfs/backport_provider_setup.py b/airflow/providers/apache/hdfs/backport_provider_setup.py deleted file mode 100644 index 2815d167df70e..0000000000000 --- a/airflow/providers/apache/hdfs/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-apache-hdfs package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/apache/hdfs/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-apache-hdfs setup.""" - setup( - name='apache-airflow-backport-providers-apache-hdfs', - description='Backport provider package ' - 'apache-airflow-backport-providers-apache-hdfs for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.apache.hdfs*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'snakebite-py3'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/apache/hive/backport_provider_setup.cfg b/airflow/providers/apache/hive/backport_provider_setup.cfg deleted file mode 100644 index 2055eda1c8548..0000000000000 --- a/airflow/providers/apache/hive/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-apache-hive -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-apache-hive package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.apache.hive - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/apache/hive/backport_provider_setup.py b/airflow/providers/apache/hive/backport_provider_setup.py deleted file mode 100644 index e817ba7bcbce3..0000000000000 --- a/airflow/providers/apache/hive/backport_provider_setup.py +++ /dev/null @@ -1,111 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-apache-hive package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/apache/hive/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-apache-hive setup.""" - setup( - name='apache-airflow-backport-providers-apache-hive', - description='Backport provider package ' - 'apache-airflow-backport-providers-apache-hive for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.apache.hive*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'hmsclient>=0.1.0', 'pyhive[hive]>=0.6.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={ - 'amazon': ['apache-airflow-backport-providers-amazon'], - 'microsoft.mssql': ['apache-airflow-backport-providers-microsoft-mssql'], - 'mysql': ['apache-airflow-backport-providers-mysql'], - 'presto': ['apache-airflow-backport-providers-presto'], - 'samba': ['apache-airflow-backport-providers-samba'], - 'vertica': ['apache-airflow-backport-providers-vertica'], - }, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/apache/kylin/backport_provider_setup.cfg b/airflow/providers/apache/kylin/backport_provider_setup.cfg deleted file mode 100644 index bfd1909760950..0000000000000 --- a/airflow/providers/apache/kylin/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-apache-kylin -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-apache-kylin package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.apache.kylin - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/apache/kylin/backport_provider_setup.py b/airflow/providers/apache/kylin/backport_provider_setup.py deleted file mode 100644 index 61a4bc7917f67..0000000000000 --- a/airflow/providers/apache/kylin/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-apache-kylin package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/apache/kylin/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-apache-kylin setup.""" - setup( - name='apache-airflow-backport-providers-apache-kylin', - description='Backport provider package ' - 'apache-airflow-backport-providers-apache-kylin for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.apache.kylin*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'kylinpy>=2.6'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/apache/livy/backport_provider_setup.cfg b/airflow/providers/apache/livy/backport_provider_setup.cfg deleted file mode 100644 index 8a4465ad0eecc..0000000000000 --- a/airflow/providers/apache/livy/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-apache-livy -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-apache-livy package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.apache.livy - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/apache/livy/backport_provider_setup.py b/airflow/providers/apache/livy/backport_provider_setup.py deleted file mode 100644 index 27024e91dd367..0000000000000 --- a/airflow/providers/apache/livy/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-apache-livy package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/apache/livy/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-apache-livy setup.""" - setup( - name='apache-airflow-backport-providers-apache-livy', - description='Backport provider package ' - 'apache-airflow-backport-providers-apache-livy for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.apache.livy*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={'http': ['apache-airflow-backport-providers-http']}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/apache/pig/backport_provider_setup.cfg b/airflow/providers/apache/pig/backport_provider_setup.cfg deleted file mode 100644 index 33eaf65d1e73d..0000000000000 --- a/airflow/providers/apache/pig/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-apache-pig -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-apache-pig package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.apache.pig - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/apache/pig/backport_provider_setup.py b/airflow/providers/apache/pig/backport_provider_setup.py deleted file mode 100644 index 35150daedb124..0000000000000 --- a/airflow/providers/apache/pig/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-apache-pig package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/apache/pig/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-apache-pig setup.""" - setup( - name='apache-airflow-backport-providers-apache-pig', - description='Backport provider package ' - 'apache-airflow-backport-providers-apache-pig for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.apache.pig*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/apache/pinot/backport_provider_setup.cfg b/airflow/providers/apache/pinot/backport_provider_setup.cfg deleted file mode 100644 index 2d3fabcef8b80..0000000000000 --- a/airflow/providers/apache/pinot/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-apache-pinot -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-apache-pinot package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.apache.pinot - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/apache/pinot/backport_provider_setup.py b/airflow/providers/apache/pinot/backport_provider_setup.py deleted file mode 100644 index b626b84c86767..0000000000000 --- a/airflow/providers/apache/pinot/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-apache-pinot package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/apache/pinot/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-apache-pinot setup.""" - setup( - name='apache-airflow-backport-providers-apache-pinot', - description='Backport provider package ' - 'apache-airflow-backport-providers-apache-pinot for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.apache.pinot*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'pinotdb==0.1.1'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/apache/spark/backport_provider_setup.cfg b/airflow/providers/apache/spark/backport_provider_setup.cfg deleted file mode 100644 index 2fc9b29d141f6..0000000000000 --- a/airflow/providers/apache/spark/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-apache-spark -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-apache-spark package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.apache.spark - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/apache/spark/backport_provider_setup.py b/airflow/providers/apache/spark/backport_provider_setup.py deleted file mode 100644 index 40eb4bb4184e7..0000000000000 --- a/airflow/providers/apache/spark/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-apache-spark package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/apache/spark/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-apache-spark setup.""" - setup( - name='apache-airflow-backport-providers-apache-spark', - description='Backport provider package ' - 'apache-airflow-backport-providers-apache-spark for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.apache.spark*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'pyspark'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/apache/sqoop/backport_provider_setup.cfg b/airflow/providers/apache/sqoop/backport_provider_setup.cfg deleted file mode 100644 index 3425bed5764a0..0000000000000 --- a/airflow/providers/apache/sqoop/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-apache-sqoop -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-apache-sqoop package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.apache.sqoop - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/apache/sqoop/backport_provider_setup.py b/airflow/providers/apache/sqoop/backport_provider_setup.py deleted file mode 100644 index ff4ebe2c9f7e7..0000000000000 --- a/airflow/providers/apache/sqoop/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-apache-sqoop package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/apache/sqoop/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-apache-sqoop setup.""" - setup( - name='apache-airflow-backport-providers-apache-sqoop', - description='Backport provider package ' - 'apache-airflow-backport-providers-apache-sqoop for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.apache.sqoop*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/celery/backport_provider_setup.cfg b/airflow/providers/celery/backport_provider_setup.cfg deleted file mode 100644 index 28aa4a589657d..0000000000000 --- a/airflow/providers/celery/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-celery -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-celery package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.celery - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/celery/backport_provider_setup.py b/airflow/providers/celery/backport_provider_setup.py deleted file mode 100644 index 4b050fc0ceaa8..0000000000000 --- a/airflow/providers/celery/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-celery package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/celery/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-celery setup.""" - setup( - name='apache-airflow-backport-providers-celery', - description='Backport provider package ' - 'apache-airflow-backport-providers-celery for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.celery*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'celery~=4.4.2', 'flower>=0.7.3, <1.0', 'vine~=1.3'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/cloudant/backport_provider_setup.cfg b/airflow/providers/cloudant/backport_provider_setup.cfg deleted file mode 100644 index 30ac5179bc66e..0000000000000 --- a/airflow/providers/cloudant/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-cloudant -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-cloudant package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.cloudant - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/cloudant/backport_provider_setup.py b/airflow/providers/cloudant/backport_provider_setup.py deleted file mode 100644 index 92bfb7e1522b8..0000000000000 --- a/airflow/providers/cloudant/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-cloudant package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/cloudant/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-cloudant setup.""" - setup( - name='apache-airflow-backport-providers-cloudant', - description='Backport provider package ' - 'apache-airflow-backport-providers-cloudant for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.cloudant*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'cloudant>=2.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/cncf/kubernetes/backport_provider_setup.cfg b/airflow/providers/cncf/kubernetes/backport_provider_setup.cfg deleted file mode 100644 index 784e111724c38..0000000000000 --- a/airflow/providers/cncf/kubernetes/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-cncf-kubernetes -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-cncf-kubernetes package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.cncf.kubernetes - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/cncf/kubernetes/backport_provider_setup.py b/airflow/providers/cncf/kubernetes/backport_provider_setup.py deleted file mode 100644 index fe620b92def92..0000000000000 --- a/airflow/providers/cncf/kubernetes/backport_provider_setup.py +++ /dev/null @@ -1,105 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-cncf-kubernetes package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/cncf/kubernetes/BACKPORT_PROVIDER_README.md'), - encoding='utf-8', - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-cncf-kubernetes setup.""" - setup( - name='apache-airflow-backport-providers-cncf-kubernetes', - description='Backport provider package ' - 'apache-airflow-backport-providers-cncf-kubernetes for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.cncf.kubernetes*']), - zip_safe=False, - install_requires=['apache-airflow>=1.10.12, <2.0.0', 'cryptography>=2.0.0', 'kubernetes>=3.0.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/databricks/backport_provider_setup.cfg b/airflow/providers/databricks/backport_provider_setup.cfg deleted file mode 100644 index a9cbbddb20f30..0000000000000 --- a/airflow/providers/databricks/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-databricks -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-databricks package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.databricks - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/databricks/backport_provider_setup.py b/airflow/providers/databricks/backport_provider_setup.py deleted file mode 100644 index 7dabf94d54b26..0000000000000 --- a/airflow/providers/databricks/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-databricks package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/databricks/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-databricks setup.""" - setup( - name='apache-airflow-backport-providers-databricks', - description='Backport provider package ' - 'apache-airflow-backport-providers-databricks for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.databricks*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'requests>=2.20.0, <3'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/datadog/backport_provider_setup.cfg b/airflow/providers/datadog/backport_provider_setup.cfg deleted file mode 100644 index 52835b3d34c09..0000000000000 --- a/airflow/providers/datadog/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-datadog -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-datadog package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.datadog - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/datadog/backport_provider_setup.py b/airflow/providers/datadog/backport_provider_setup.py deleted file mode 100644 index 02e757c7689e4..0000000000000 --- a/airflow/providers/datadog/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-datadog package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/datadog/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-datadog setup.""" - setup( - name='apache-airflow-backport-providers-datadog', - description='Backport provider package ' - 'apache-airflow-backport-providers-datadog for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.datadog*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'datadog>=0.14.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/dingding/backport_provider_setup.cfg b/airflow/providers/dingding/backport_provider_setup.cfg deleted file mode 100644 index be3818dd5cd7d..0000000000000 --- a/airflow/providers/dingding/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-dingding -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-dingding package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.dingding - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/dingding/backport_provider_setup.py b/airflow/providers/dingding/backport_provider_setup.py deleted file mode 100644 index 78482b2446d91..0000000000000 --- a/airflow/providers/dingding/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-dingding package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/dingding/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-dingding setup.""" - setup( - name='apache-airflow-backport-providers-dingding', - description='Backport provider package ' - 'apache-airflow-backport-providers-dingding for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.dingding*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={'http': ['apache-airflow-backport-providers-http']}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/discord/backport_provider_setup.cfg b/airflow/providers/discord/backport_provider_setup.cfg deleted file mode 100644 index 4be362048c3b3..0000000000000 --- a/airflow/providers/discord/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-discord -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-discord package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.discord - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/discord/backport_provider_setup.py b/airflow/providers/discord/backport_provider_setup.py deleted file mode 100644 index 363d4d090ab9c..0000000000000 --- a/airflow/providers/discord/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-discord package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/discord/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-discord setup.""" - setup( - name='apache-airflow-backport-providers-discord', - description='Backport provider package ' - 'apache-airflow-backport-providers-discord for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.discord*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={'http': ['apache-airflow-backport-providers-http']}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/docker/backport_provider_setup.cfg b/airflow/providers/docker/backport_provider_setup.cfg deleted file mode 100644 index ff7fa4cc6da8e..0000000000000 --- a/airflow/providers/docker/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-docker -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-docker package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.docker - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/docker/backport_provider_setup.py b/airflow/providers/docker/backport_provider_setup.py deleted file mode 100644 index 42cedfb68e1c0..0000000000000 --- a/airflow/providers/docker/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-docker package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/docker/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-docker setup.""" - setup( - name='apache-airflow-backport-providers-docker', - description='Backport provider package ' - 'apache-airflow-backport-providers-docker for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.docker*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'docker~=3.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/elasticsearch/backport_provider_setup.cfg b/airflow/providers/elasticsearch/backport_provider_setup.cfg deleted file mode 100644 index 73ea99ab02459..0000000000000 --- a/airflow/providers/elasticsearch/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-elasticsearch -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-elasticsearch package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.elasticsearch - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/elasticsearch/backport_provider_setup.py b/airflow/providers/elasticsearch/backport_provider_setup.py deleted file mode 100644 index 27ba27cf84d74..0000000000000 --- a/airflow/providers/elasticsearch/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-elasticsearch package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/elasticsearch/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-elasticsearch setup.""" - setup( - name='apache-airflow-backport-providers-elasticsearch', - description='Backport provider package ' - 'apache-airflow-backport-providers-elasticsearch for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.elasticsearch*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/exasol/backport_provider_setup.cfg b/airflow/providers/exasol/backport_provider_setup.cfg deleted file mode 100644 index 448ead53ee461..0000000000000 --- a/airflow/providers/exasol/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-exasol -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-exasol package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.exasol - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/exasol/backport_provider_setup.py b/airflow/providers/exasol/backport_provider_setup.py deleted file mode 100644 index 1be0b3ffaf81f..0000000000000 --- a/airflow/providers/exasol/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-exasol package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/exasol/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-exasol setup.""" - setup( - name='apache-airflow-backport-providers-exasol', - description='Backport provider package ' - 'apache-airflow-backport-providers-exasol for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.exasol*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'pyexasol>=0.5.1,<1.0.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/facebook/backport_provider_setup.cfg b/airflow/providers/facebook/backport_provider_setup.cfg deleted file mode 100644 index 5c48f371b8361..0000000000000 --- a/airflow/providers/facebook/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-facebook -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-facebook package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.facebook - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/facebook/backport_provider_setup.py b/airflow/providers/facebook/backport_provider_setup.py deleted file mode 100644 index 0262eb87d71c8..0000000000000 --- a/airflow/providers/facebook/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-facebook package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/facebook/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-facebook setup.""" - setup( - name='apache-airflow-backport-providers-facebook', - description='Backport provider package ' - 'apache-airflow-backport-providers-facebook for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.facebook*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'facebook-business>=6.0.2'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/ftp/backport_provider_setup.py b/airflow/providers/ftp/backport_provider_setup.py deleted file mode 100644 index 9cb1f9fedf901..0000000000000 --- a/airflow/providers/ftp/backport_provider_setup.py +++ /dev/null @@ -1,103 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-ftp package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/ftp/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-ftp setup.""" - setup( - name='apache-airflow-backport-providers-ftp', - description='Backport provider package apache-airflow-backport-providers-ftp for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.ftp*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/google/backport_provider_setup.cfg b/airflow/providers/google/backport_provider_setup.cfg deleted file mode 100644 index 028a5f2017835..0000000000000 --- a/airflow/providers/google/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-google -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-google package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.google - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/google/backport_provider_setup.py b/airflow/providers/google/backport_provider_setup.py deleted file mode 100644 index d22578696510f..0000000000000 --- a/airflow/providers/google/backport_provider_setup.py +++ /dev/null @@ -1,147 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readmes -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-google package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/google/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-google setup.""" - setup( - name='apache-airflow-backport-providers-google', - description='Backport provider package ' - 'apache-airflow-backport-providers-google for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.google*']), - zip_safe=False, - install_requires=[ - 'apache-airflow~=1.10', - 'PyOpenSSL', - 'google-ads>=4.0.0', - 'google-api-python-client>=1.6.0,<2.0.0', - 'google-auth>=1.0.0,<2.0.0', - 'google-auth-httplib2>=0.0.1', - 'google-cloud-automl>=0.4.0,<2.0.0', - 'google-cloud-bigquery-datatransfer>=0.4.0,<2.0.0', - 'google-cloud-bigtable>=1.0.0,<2.0.0', - 'google-cloud-container>=0.1.1,<2.0.0', - 'google-cloud-datacatalog>=0.5.0, <0.8', - 'google-cloud-dataproc>=1.0.1,<2.0.0', - 'google-cloud-dlp>=0.11.0,<2.0.0', - 'google-cloud-kms>=1.2.1,<2.0.0', - 'google-cloud-language>=1.1.1,<2.0.0', - 'google-cloud-logging>=1.14.0,<2.0.0', - 'google-cloud-memcache>=0.2.0', - 'google-cloud-monitoring>=0.34.0,<2.0.0', - 'google-cloud-pubsub>=1.0.0,<2.0.0', - 'google-cloud-redis>=0.3.0,<2.0.0', - 'google-cloud-secret-manager>=0.2.0,<2.0.0', - 'google-cloud-spanner>=1.10.0,<2.0.0', - 'google-cloud-speech>=0.36.3,<2.0.0', - 'google-cloud-storage>=1.16,<2.0.0', - 'google-cloud-tasks>=1.2.1,<2.0.0', - 'google-cloud-texttospeech>=0.4.0,<2.0.0', - 'google-cloud-translate>=1.5.0,<2.0.0', - 'google-cloud-videointelligence>=1.7.0,<2.0.0', - 'google-cloud-vision>=0.35.2,<2.0.0', - 'grpcio-gcp>=0.2.2', - 'pandas-gbq', - ], - setup_requires=['setuptools', 'wheel'], - extras_require={ - 'amazon': ['apache-airflow-backport-providers-amazon'], - 'apache.cassandra': ['apache-airflow-backport-providers-apache-cassandra'], - 'cncf.kubernetes': ['apache-airflow-backport-providers-cncf-kubernetes'], - 'facebook': ['apache-airflow-backport-providers-facebook'], - 'microsoft.azure': ['apache-airflow-backport-providers-microsoft-azure'], - 'microsoft.mssql': ['apache-airflow-backport-providers-microsoft-mssql'], - 'mysql': ['apache-airflow-backport-providers-mysql'], - 'postgres': ['apache-airflow-backport-providers-postgres'], - 'presto': ['apache-airflow-backport-providers-presto'], - 'sftp': ['apache-airflow-backport-providers-sftp'], - }, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/grpc/backport_provider_setup.cfg b/airflow/providers/grpc/backport_provider_setup.cfg deleted file mode 100644 index 92370e147864e..0000000000000 --- a/airflow/providers/grpc/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-grpc -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-grpc package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.grpc - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/grpc/backport_provider_setup.py b/airflow/providers/grpc/backport_provider_setup.py deleted file mode 100644 index 927d43cc0b3d5..0000000000000 --- a/airflow/providers/grpc/backport_provider_setup.py +++ /dev/null @@ -1,108 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-grpc package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/grpc/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-grpc setup.""" - setup( - name='apache-airflow-backport-providers-grpc', - description='Backport provider package apache-airflow-backport-providers-grpc for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.grpc*']), - zip_safe=False, - install_requires=[ - 'apache-airflow~=1.10', - 'google-auth>=1.0.0, <2.0.0dev', - 'google-auth-httplib2>=0.0.1', - 'grpcio>=1.15.0', - ], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/hashicorp/backport_provider_setup.cfg b/airflow/providers/hashicorp/backport_provider_setup.cfg deleted file mode 100644 index 05405131c56b1..0000000000000 --- a/airflow/providers/hashicorp/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-hashicorp -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-hashicorp package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.hashicorp - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/hashicorp/backport_provider_setup.py b/airflow/providers/hashicorp/backport_provider_setup.py deleted file mode 100644 index ea75f9fc70e68..0000000000000 --- a/airflow/providers/hashicorp/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-hashicorp package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/hashicorp/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-hashicorp setup.""" - setup( - name='apache-airflow-backport-providers-hashicorp', - description='Backport provider package ' - 'apache-airflow-backport-providers-hashicorp for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.hashicorp*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'hvac~=0.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={'google': ['apache-airflow-backport-providers-google']}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/http/backport_provider_setup.cfg b/airflow/providers/http/backport_provider_setup.cfg deleted file mode 100644 index 83a7ef0db987b..0000000000000 --- a/airflow/providers/http/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-http -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-http package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.http - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/http/backport_provider_setup.py b/airflow/providers/http/backport_provider_setup.py deleted file mode 100644 index 190619867508f..0000000000000 --- a/airflow/providers/http/backport_provider_setup.py +++ /dev/null @@ -1,103 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-http package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/http/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-http setup.""" - setup( - name='apache-airflow-backport-providers-http', - description='Backport provider package apache-airflow-backport-providers-http for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.http*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/imap/backport_provider_setup.cfg b/airflow/providers/imap/backport_provider_setup.cfg deleted file mode 100644 index 53fa5f463923c..0000000000000 --- a/airflow/providers/imap/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-imap -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-imap package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.imap - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/imap/backport_provider_setup.py b/airflow/providers/imap/backport_provider_setup.py deleted file mode 100644 index 9feb7ed655a1f..0000000000000 --- a/airflow/providers/imap/backport_provider_setup.py +++ /dev/null @@ -1,103 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-imap package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/imap/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-imap setup.""" - setup( - name='apache-airflow-backport-providers-imap', - description='Backport provider package apache-airflow-backport-providers-imap for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.imap*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/jdbc/backport_provider_setup.cfg b/airflow/providers/jdbc/backport_provider_setup.cfg deleted file mode 100644 index 6958bae99de9b..0000000000000 --- a/airflow/providers/jdbc/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-jdbc -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-jdbc package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.jdbc - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/jdbc/backport_provider_setup.py b/airflow/providers/jdbc/backport_provider_setup.py deleted file mode 100644 index 7822f467829f6..0000000000000 --- a/airflow/providers/jdbc/backport_provider_setup.py +++ /dev/null @@ -1,103 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-jdbc package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/jdbc/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-jdbc setup.""" - setup( - name='apache-airflow-backport-providers-jdbc', - description='Backport provider package apache-airflow-backport-providers-jdbc for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.jdbc*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'jaydebeapi>=1.1.1'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/jenkins/backport_provider_setup.cfg b/airflow/providers/jenkins/backport_provider_setup.cfg deleted file mode 100644 index f45545455c1b4..0000000000000 --- a/airflow/providers/jenkins/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-jenkins -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-jenkins package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.jenkins - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/jenkins/backport_provider_setup.py b/airflow/providers/jenkins/backport_provider_setup.py deleted file mode 100644 index d35948529b3e6..0000000000000 --- a/airflow/providers/jenkins/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-jenkins package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/jenkins/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-jenkins setup.""" - setup( - name='apache-airflow-backport-providers-jenkins', - description='Backport provider package ' - 'apache-airflow-backport-providers-jenkins for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.jenkins*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'python-jenkins>=1.0.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/jira/backport_provider_setup.cfg b/airflow/providers/jira/backport_provider_setup.cfg deleted file mode 100644 index 12b8c1caf8cd0..0000000000000 --- a/airflow/providers/jira/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-jira -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-jira package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.jira - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/jira/backport_provider_setup.py b/airflow/providers/jira/backport_provider_setup.py deleted file mode 100644 index 1a4a05fc905be..0000000000000 --- a/airflow/providers/jira/backport_provider_setup.py +++ /dev/null @@ -1,103 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-jira package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/jira/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-jira setup.""" - setup( - name='apache-airflow-backport-providers-jira', - description='Backport provider package apache-airflow-backport-providers-jira for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.jira*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'JIRA>1.0.7'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/microsoft/azure/backport_provider_setup.cfg b/airflow/providers/microsoft/azure/backport_provider_setup.cfg deleted file mode 100644 index e177d6c9f7823..0000000000000 --- a/airflow/providers/microsoft/azure/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-microsoft-azure -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-microsoft-azure package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.microsoft.azure - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/microsoft/azure/backport_provider_setup.py b/airflow/providers/microsoft/azure/backport_provider_setup.py deleted file mode 100644 index 6580d1106aee2..0000000000000 --- a/airflow/providers/microsoft/azure/backport_provider_setup.py +++ /dev/null @@ -1,121 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-microsoft-azure package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/microsoft/azure/BACKPORT_PROVIDER_README.md'), - encoding='utf-8', - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-microsoft-azure setup.""" - setup( - name='apache-airflow-backport-providers-microsoft-azure', - description='Backport provider package ' - 'apache-airflow-backport-providers-microsoft-azure for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.microsoft.azure*']), - zip_safe=False, - install_requires=[ - 'apache-airflow~=1.10', - 'azure-batch>=8.0.0', - 'azure-cosmos>=3.0.1,<4', - 'azure-datalake-store>=0.0.45', - 'azure-identity>=1.3.1', - 'azure-keyvault>=4.1.0', - 'azure-kusto-data>=0.0.43,<0.1', - 'azure-mgmt-containerinstance>=1.5.0,<2.0', - 'azure-mgmt-datalake-store>=0.5.0', - 'azure-mgmt-resource>=2.2.0', - 'azure-storage>=0.34.0, <0.37.0', - 'azure-storage-blob<12.0', - ], - setup_requires=['setuptools', 'wheel'], - extras_require={ - 'google': ['apache-airflow-backport-providers-google'], - 'oracle': ['apache-airflow-backport-providers-oracle'], - }, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/microsoft/mssql/backport_provider_setup.cfg b/airflow/providers/microsoft/mssql/backport_provider_setup.cfg deleted file mode 100644 index 18a81e027e210..0000000000000 --- a/airflow/providers/microsoft/mssql/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-microsoft-mssql -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-microsoft-mssql package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.microsoft.mssql - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/microsoft/mssql/backport_provider_setup.py b/airflow/providers/microsoft/mssql/backport_provider_setup.py deleted file mode 100644 index 2c314e03a2f08..0000000000000 --- a/airflow/providers/microsoft/mssql/backport_provider_setup.py +++ /dev/null @@ -1,105 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-microsoft-mssql package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/microsoft/mssql/BACKPORT_PROVIDER_README.md'), - encoding='utf-8', - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-microsoft-mssql setup.""" - setup( - name='apache-airflow-backport-providers-microsoft-mssql', - description='Backport provider package ' - 'apache-airflow-backport-providers-microsoft-mssql for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.microsoft.mssql*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'pymssql~=2.1,>=2.1.5'], - setup_requires=['setuptools', 'wheel'], - extras_require={'odbc': ['apache-airflow-backport-providers-odbc']}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/microsoft/winrm/backport_provider_setup.cfg b/airflow/providers/microsoft/winrm/backport_provider_setup.cfg deleted file mode 100644 index f4203c6727f1d..0000000000000 --- a/airflow/providers/microsoft/winrm/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-microsoft-winrm -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-microsoft-winrm package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.microsoft.winrm - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/microsoft/winrm/backport_provider_setup.py b/airflow/providers/microsoft/winrm/backport_provider_setup.py deleted file mode 100644 index b79a1b5f3d7c3..0000000000000 --- a/airflow/providers/microsoft/winrm/backport_provider_setup.py +++ /dev/null @@ -1,105 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-microsoft-winrm package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/microsoft/winrm/BACKPORT_PROVIDER_README.md'), - encoding='utf-8', - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-microsoft-winrm setup.""" - setup( - name='apache-airflow-backport-providers-microsoft-winrm', - description='Backport provider package ' - 'apache-airflow-backport-providers-microsoft-winrm for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.microsoft.winrm*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'pywinrm~=0.4'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/mongo/backport_provider_setup.cfg b/airflow/providers/mongo/backport_provider_setup.cfg deleted file mode 100644 index 98a5b406ec356..0000000000000 --- a/airflow/providers/mongo/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-mongo -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-mongo package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.mongo - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/mongo/backport_provider_setup.py b/airflow/providers/mongo/backport_provider_setup.py deleted file mode 100644 index 0243217ce6be1..0000000000000 --- a/airflow/providers/mongo/backport_provider_setup.py +++ /dev/null @@ -1,103 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-mongo package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/mongo/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-mongo setup.""" - setup( - name='apache-airflow-backport-providers-mongo', - description='Backport provider package apache-airflow-backport-providers-mongo for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.mongo*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'dnspython>=1.13.0,<2.0.0', 'pymongo>=3.6.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/mysql/backport_provider_setup.cfg b/airflow/providers/mysql/backport_provider_setup.cfg deleted file mode 100644 index 0cf22b2f43a23..0000000000000 --- a/airflow/providers/mysql/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-mysql -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-mysql package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.mysql - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/mysql/backport_provider_setup.py b/airflow/providers/mysql/backport_provider_setup.py deleted file mode 100644 index f41cd0000e05e..0000000000000 --- a/airflow/providers/mysql/backport_provider_setup.py +++ /dev/null @@ -1,111 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-mysql package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/mysql/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-mysql setup.""" - setup( - name='apache-airflow-backport-providers-mysql', - description='Backport provider package apache-airflow-backport-providers-mysql for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.mysql*']), - zip_safe=False, - install_requires=[ - 'apache-airflow~=1.10', - 'mysql-connector-python>=8.0.11, <=8.0.18', - 'mysqlclient>=1.3.6,<1.4', - ], - setup_requires=['setuptools', 'wheel'], - extras_require={ - 'amazon': ['apache-airflow-backport-providers-amazon'], - 'presto': ['apache-airflow-backport-providers-presto'], - 'vertica': ['apache-airflow-backport-providers-vertica'], - }, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/odbc/backport_provider_setup.cfg b/airflow/providers/odbc/backport_provider_setup.cfg deleted file mode 100644 index 60ae0af008fc0..0000000000000 --- a/airflow/providers/odbc/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-odbc -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-odbc package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.odbc - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/odbc/backport_provider_setup.py b/airflow/providers/odbc/backport_provider_setup.py deleted file mode 100644 index 9af899d58f185..0000000000000 --- a/airflow/providers/odbc/backport_provider_setup.py +++ /dev/null @@ -1,103 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-odbc package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/odbc/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-odbc setup.""" - setup( - name='apache-airflow-backport-providers-odbc', - description='Backport provider package apache-airflow-backport-providers-odbc for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.odbc*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'pyodbc'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/openfaas/backport_provider_setup.cfg b/airflow/providers/openfaas/backport_provider_setup.cfg deleted file mode 100644 index 3f643cd816bd1..0000000000000 --- a/airflow/providers/openfaas/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-openfaas -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-openfaas package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.openfaas - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/openfaas/backport_provider_setup.py b/airflow/providers/openfaas/backport_provider_setup.py deleted file mode 100644 index 63400ec278376..0000000000000 --- a/airflow/providers/openfaas/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-openfaas package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/openfaas/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-openfaas setup.""" - setup( - name='apache-airflow-backport-providers-openfaas', - description='Backport provider package ' - 'apache-airflow-backport-providers-openfaas for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.openfaas*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/opsgenie/backport_provider_setup.cfg b/airflow/providers/opsgenie/backport_provider_setup.cfg deleted file mode 100644 index 430ad6a6a3bc7..0000000000000 --- a/airflow/providers/opsgenie/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-opsgenie -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-opsgenie package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.opsgenie - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/opsgenie/backport_provider_setup.py b/airflow/providers/opsgenie/backport_provider_setup.py deleted file mode 100644 index 9ffb68eaf2c03..0000000000000 --- a/airflow/providers/opsgenie/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-opsgenie package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/opsgenie/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-opsgenie setup.""" - setup( - name='apache-airflow-backport-providers-opsgenie', - description='Backport provider package ' - 'apache-airflow-backport-providers-opsgenie for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.opsgenie*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={'http': ['apache-airflow-backport-providers-http']}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/oracle/backport_provider_setup.cfg b/airflow/providers/oracle/backport_provider_setup.cfg deleted file mode 100644 index 2393933dfa2d1..0000000000000 --- a/airflow/providers/oracle/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-oracle -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-oracle package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.oracle - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/oracle/backport_provider_setup.py b/airflow/providers/oracle/backport_provider_setup.py deleted file mode 100644 index a2fe377e4fbff..0000000000000 --- a/airflow/providers/oracle/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-oracle package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/oracle/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-oracle setup.""" - setup( - name='apache-airflow-backport-providers-oracle', - description='Backport provider package ' - 'apache-airflow-backport-providers-oracle for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.oracle*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'cx_Oracle>=5.1.2'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/pagerduty/backport_provider_setup.cfg b/airflow/providers/pagerduty/backport_provider_setup.cfg deleted file mode 100644 index 6b05bcd046114..0000000000000 --- a/airflow/providers/pagerduty/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-pagerduty -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-pagerduty package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.pagerduty - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/pagerduty/backport_provider_setup.py b/airflow/providers/pagerduty/backport_provider_setup.py deleted file mode 100644 index 6b8d1ceec5d73..0000000000000 --- a/airflow/providers/pagerduty/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-pagerduty package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/pagerduty/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-pagerduty setup.""" - setup( - name='apache-airflow-backport-providers-pagerduty', - description='Backport provider package ' - 'apache-airflow-backport-providers-pagerduty for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.pagerduty*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'pdpyras>=4.1.2,<5'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/plexus/backport_provider_setup.cfg b/airflow/providers/plexus/backport_provider_setup.cfg deleted file mode 100644 index b8bfb081c5fd3..0000000000000 --- a/airflow/providers/plexus/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-plexus -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-plexus package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.plexus - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/plexus/backport_provider_setup.py b/airflow/providers/plexus/backport_provider_setup.py deleted file mode 100644 index f92d8dd8a9023..0000000000000 --- a/airflow/providers/plexus/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-plexus package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/plexus/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-plexus setup.""" - setup( - name='apache-airflow-backport-providers-plexus', - description='Backport provider package ' - 'apache-airflow-backport-providers-plexus for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.plexus*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'arrow>=0.16.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/postgres/backport_provider_setup.cfg b/airflow/providers/postgres/backport_provider_setup.cfg deleted file mode 100644 index f50f3aa4ec92a..0000000000000 --- a/airflow/providers/postgres/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-postgres -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-postgres package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.postgres - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/postgres/backport_provider_setup.py b/airflow/providers/postgres/backport_provider_setup.py deleted file mode 100644 index f3c5d6ed1ed83..0000000000000 --- a/airflow/providers/postgres/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-postgres package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/postgres/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-postgres setup.""" - setup( - name='apache-airflow-backport-providers-postgres', - description='Backport provider package ' - 'apache-airflow-backport-providers-postgres for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.postgres*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'psycopg2-binary>=2.7.4'], - setup_requires=['setuptools', 'wheel'], - extras_require={'amazon': ['apache-airflow-backport-providers-amazon']}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/presto/backport_provider_setup.cfg b/airflow/providers/presto/backport_provider_setup.cfg deleted file mode 100644 index 8b4ffc88b2f42..0000000000000 --- a/airflow/providers/presto/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-presto -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-presto package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.presto - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/presto/backport_provider_setup.py b/airflow/providers/presto/backport_provider_setup.py deleted file mode 100644 index cf9f269a838f4..0000000000000 --- a/airflow/providers/presto/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-presto package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/presto/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-presto setup.""" - setup( - name='apache-airflow-backport-providers-presto', - description='Backport provider package ' - 'apache-airflow-backport-providers-presto for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.presto*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'presto-python-client>=0.7.0,<0.8'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/qubole/backport_provider_setup.cfg b/airflow/providers/qubole/backport_provider_setup.cfg deleted file mode 100644 index 9cfe2838ac09a..0000000000000 --- a/airflow/providers/qubole/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-qubole -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-qubole package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.qubole - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/qubole/backport_provider_setup.py b/airflow/providers/qubole/backport_provider_setup.py deleted file mode 100644 index 8387e4a5d0556..0000000000000 --- a/airflow/providers/qubole/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-qubole package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/qubole/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-qubole setup.""" - setup( - name='apache-airflow-backport-providers-qubole', - description='Backport provider package ' - 'apache-airflow-backport-providers-qubole for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.qubole*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'qds-sdk>=1.10.4'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/redis/backport_provider_setup.cfg b/airflow/providers/redis/backport_provider_setup.cfg deleted file mode 100644 index dfea6a2ea37c6..0000000000000 --- a/airflow/providers/redis/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-redis -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-redis package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.redis - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/redis/backport_provider_setup.py b/airflow/providers/redis/backport_provider_setup.py deleted file mode 100644 index 305915269761b..0000000000000 --- a/airflow/providers/redis/backport_provider_setup.py +++ /dev/null @@ -1,103 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-redis package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/redis/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-redis setup.""" - setup( - name='apache-airflow-backport-providers-redis', - description='Backport provider package apache-airflow-backport-providers-redis for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.redis*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'redis~=3.2'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/salesforce/backport_provider_setup.cfg b/airflow/providers/salesforce/backport_provider_setup.cfg deleted file mode 100644 index 714fc2e6d6ccd..0000000000000 --- a/airflow/providers/salesforce/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-salesforce -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-salesforce package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.salesforce - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/salesforce/backport_provider_setup.py b/airflow/providers/salesforce/backport_provider_setup.py deleted file mode 100644 index 2743d4f88efe0..0000000000000 --- a/airflow/providers/salesforce/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-salesforce package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/salesforce/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-salesforce setup.""" - setup( - name='apache-airflow-backport-providers-salesforce', - description='Backport provider package ' - 'apache-airflow-backport-providers-salesforce for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.salesforce*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'simple-salesforce>=1.0.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/samba/backport_provider_setup.cfg b/airflow/providers/samba/backport_provider_setup.cfg deleted file mode 100644 index 78281558daed1..0000000000000 --- a/airflow/providers/samba/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-samba -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-samba package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.samba - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/samba/backport_provider_setup.py b/airflow/providers/samba/backport_provider_setup.py deleted file mode 100644 index 393ee93120f87..0000000000000 --- a/airflow/providers/samba/backport_provider_setup.py +++ /dev/null @@ -1,103 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-samba package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/samba/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-samba setup.""" - setup( - name='apache-airflow-backport-providers-samba', - description='Backport provider package apache-airflow-backport-providers-samba for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.samba*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'pysmbclient>=0.1.3'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/segment/backport_provider_setup.cfg b/airflow/providers/segment/backport_provider_setup.cfg deleted file mode 100644 index 4e34f30c07b77..0000000000000 --- a/airflow/providers/segment/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-segment -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-segment package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.segment - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/segment/backport_provider_setup.py b/airflow/providers/segment/backport_provider_setup.py deleted file mode 100644 index 54a77898a277a..0000000000000 --- a/airflow/providers/segment/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-segment package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/segment/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-segment setup.""" - setup( - name='apache-airflow-backport-providers-segment', - description='Backport provider package ' - 'apache-airflow-backport-providers-segment for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.segment*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'analytics-python>=1.2.9'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/sftp/backport_provider_setup.cfg b/airflow/providers/sftp/backport_provider_setup.cfg deleted file mode 100644 index 00b1f98428e8c..0000000000000 --- a/airflow/providers/sftp/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-sftp -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-sftp package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.sftp - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/sftp/backport_provider_setup.py b/airflow/providers/sftp/backport_provider_setup.py deleted file mode 100644 index 30c026c218b49..0000000000000 --- a/airflow/providers/sftp/backport_provider_setup.py +++ /dev/null @@ -1,108 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-sftp package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/sftp/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-sftp setup.""" - setup( - name='apache-airflow-backport-providers-sftp', - description='Backport provider package apache-airflow-backport-providers-sftp for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.sftp*']), - zip_safe=False, - install_requires=[ - 'apache-airflow~=1.10', - 'paramiko>=2.6.0', - 'pysftp>=0.2.9', - 'sshtunnel>=0.1.4,<0.2', - ], - setup_requires=['setuptools', 'wheel'], - extras_require={'ssh': ['apache-airflow-backport-providers-ssh']}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/singularity/backport_provider_setup.cfg b/airflow/providers/singularity/backport_provider_setup.cfg deleted file mode 100644 index 2de1d718e13e7..0000000000000 --- a/airflow/providers/singularity/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-singularity -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-singularity package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.singularity - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/singularity/backport_provider_setup.py b/airflow/providers/singularity/backport_provider_setup.py deleted file mode 100644 index e9f51448cc4b1..0000000000000 --- a/airflow/providers/singularity/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-singularity package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/singularity/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-singularity setup.""" - setup( - name='apache-airflow-backport-providers-singularity', - description='Backport provider package ' - 'apache-airflow-backport-providers-singularity for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.singularity*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'spython>=0.0.56'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/slack/backport_provider_setup.cfg b/airflow/providers/slack/backport_provider_setup.cfg deleted file mode 100644 index 663d2f5318796..0000000000000 --- a/airflow/providers/slack/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-slack -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-slack package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.slack - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/slack/backport_provider_setup.py b/airflow/providers/slack/backport_provider_setup.py deleted file mode 100644 index 0ed4cc3d19d43..0000000000000 --- a/airflow/providers/slack/backport_provider_setup.py +++ /dev/null @@ -1,103 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-slack package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/slack/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-slack setup.""" - setup( - name='apache-airflow-backport-providers-slack', - description='Backport provider package apache-airflow-backport-providers-slack for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.slack*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'slackclient>=2.0.0,<3.0.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={'http': ['apache-airflow-backport-providers-http']}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/snowflake/backport_provider_setup.cfg b/airflow/providers/snowflake/backport_provider_setup.cfg deleted file mode 100644 index e6bf36dc334c8..0000000000000 --- a/airflow/providers/snowflake/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-snowflake -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-snowflake package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.snowflake - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/snowflake/backport_provider_setup.py b/airflow/providers/snowflake/backport_provider_setup.py deleted file mode 100644 index 47ccac1f39e27..0000000000000 --- a/airflow/providers/snowflake/backport_provider_setup.py +++ /dev/null @@ -1,108 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-snowflake package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/snowflake/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-snowflake setup.""" - setup( - name='apache-airflow-backport-providers-snowflake', - description='Backport provider package ' - 'apache-airflow-backport-providers-snowflake for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.snowflake*']), - zip_safe=False, - install_requires=[ - 'apache-airflow~=1.10', - 'snowflake-connector-python>=1.5.2', - 'snowflake-sqlalchemy>=1.1.0', - ], - setup_requires=['setuptools', 'wheel'], - extras_require={'slack': ['apache-airflow-backport-providers-slack']}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/sqlite/backport_provider_setup.cfg b/airflow/providers/sqlite/backport_provider_setup.cfg deleted file mode 100644 index d87d82d22cacd..0000000000000 --- a/airflow/providers/sqlite/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-sqlite -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-sqlite package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.sqlite - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/sqlite/backport_provider_setup.py b/airflow/providers/sqlite/backport_provider_setup.py deleted file mode 100644 index da49f3006dd7c..0000000000000 --- a/airflow/providers/sqlite/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-sqlite package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/sqlite/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-sqlite setup.""" - setup( - name='apache-airflow-backport-providers-sqlite', - description='Backport provider package ' - 'apache-airflow-backport-providers-sqlite for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.sqlite*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/ssh/backport_provider_setup.cfg b/airflow/providers/ssh/backport_provider_setup.cfg deleted file mode 100644 index 3de49b5279d4b..0000000000000 --- a/airflow/providers/ssh/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-ssh -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-ssh package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.ssh - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/ssh/backport_provider_setup.py b/airflow/providers/ssh/backport_provider_setup.py deleted file mode 100644 index 9ad0f615c8e5a..0000000000000 --- a/airflow/providers/ssh/backport_provider_setup.py +++ /dev/null @@ -1,108 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-ssh package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/ssh/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-ssh setup.""" - setup( - name='apache-airflow-backport-providers-ssh', - description='Backport provider package apache-airflow-backport-providers-ssh for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.ssh*']), - zip_safe=False, - install_requires=[ - 'apache-airflow~=1.10', - 'paramiko>=2.6.0', - 'pysftp>=0.2.9', - 'sshtunnel>=0.1.4,<0.2', - ], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/vertica/backport_provider_setup.cfg b/airflow/providers/vertica/backport_provider_setup.cfg deleted file mode 100644 index c39a049ad7ef2..0000000000000 --- a/airflow/providers/vertica/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-vertica -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-vertica package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.vertica - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/vertica/backport_provider_setup.py b/airflow/providers/vertica/backport_provider_setup.py deleted file mode 100644 index 620ac43f7ffd8..0000000000000 --- a/airflow/providers/vertica/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-vertica package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/vertica/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-vertica setup.""" - setup( - name='apache-airflow-backport-providers-vertica', - description='Backport provider package ' - 'apache-airflow-backport-providers-vertica for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.vertica*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'vertica-python>=0.5.1'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/yandex/backport_provider_setup.cfg b/airflow/providers/yandex/backport_provider_setup.cfg deleted file mode 100644 index 986ebc5b341de..0000000000000 --- a/airflow/providers/yandex/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-yandex -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-yandex package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.yandex - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/yandex/backport_provider_setup.py b/airflow/providers/yandex/backport_provider_setup.py deleted file mode 100644 index 2ce94832e5dd1..0000000000000 --- a/airflow/providers/yandex/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-yandex package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/yandex/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-yandex setup.""" - setup( - name='apache-airflow-backport-providers-yandex', - description='Backport provider package ' - 'apache-airflow-backport-providers-yandex for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.yandex*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'yandexcloud>=0.22.0'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/airflow/providers/zendesk/backport_provider_setup.cfg b/airflow/providers/zendesk/backport_provider_setup.cfg deleted file mode 100644 index b39f921c9ee5a..0000000000000 --- a/airflow/providers/zendesk/backport_provider_setup.cfg +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-zendesk -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-zendesk package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.zendesk - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" diff --git a/airflow/providers/zendesk/backport_provider_setup.py b/airflow/providers/zendesk/backport_provider_setup.py deleted file mode 100644 index 42843864a7b4b..0000000000000 --- a/airflow/providers/zendesk/backport_provider_setup.py +++ /dev/null @@ -1,104 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE\ -# OVERWRITTEN WHEN RUNNING -# -# ./breeze prepare-provider-readme -# -# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE -# `SETUP_TEMPLATE.py.jinja2` IN the `provider_packages` DIRECTORY - -"""Setup.py for the apache-airflow-backport-providers-zendesk package.""" - -import logging -import os -import sys -from os.path import dirname - -from setuptools import find_packages, setup - -logger = logging.getLogger(__name__) - -version = '2020.10.29' - -my_dir = dirname(__file__) - -try: - with open( - os.path.join(my_dir, 'airflow/providers/zendesk/BACKPORT_PROVIDER_README.md'), encoding='utf-8' - ) as f: - long_description = f.read() -except FileNotFoundError: - long_description = '' - - -def do_setup(version_suffix_for_pypi=''): - """Perform the package apache-airflow-backport-providers-zendesk setup.""" - setup( - name='apache-airflow-backport-providers-zendesk', - description='Backport provider package ' - 'apache-airflow-backport-providers-zendesk for Apache Airflow', - long_description=long_description, - long_description_content_type='text/markdown', - license='Apache License 2.0', - version=version + version_suffix_for_pypi, - packages=find_packages(include=['airflow.providers.zendesk*']), - zip_safe=False, - install_requires=['apache-airflow~=1.10', 'zdesk'], - setup_requires=['setuptools', 'wheel'], - extras_require={}, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Environment :: Web Environment', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Topic :: System :: Monitoring', - ], - author='Apache Software Foundation', - author_email='dev@airflow.apache.org', - url='http://airflow.apache.org/', - download_url=('https://archive.apache.org/dist/airflow/backport-providers'), - python_requires='~=3.6', - project_urls={ - 'Documentation': 'https://airflow.apache.org/docs/', - 'Bug Tracker': 'https://github.com/apache/airflow/issues', - 'Source Code': 'https://github.com/apache/airflow', - }, - ) - - -# -# Note that --version-suffix-for-pypi should only be used in case we generate RC packages for PyPI -# Those packages should have actual RC version in order to be published even if source version -# should be the final one. -# -if __name__ == "__main__": - suffix = '' - if len(sys.argv) > 1 and sys.argv[1] == "--version-suffix-for-pypi": - if len(sys.argv) < 3: - print("ERROR! --version-suffix-for-pypi needs parameter!", file=sys.stderr) - sys.exit(1) - suffix = sys.argv[2] - sys.argv = [sys.argv[0]] + sys.argv[3:] - do_setup(version_suffix_for_pypi=suffix) diff --git a/breeze b/breeze index d370711d8ba7e..f320bf9489368 100755 --- a/breeze +++ b/breeze @@ -2220,6 +2220,8 @@ function breeze::flag_choose_different_airflow_version() { ${FORMATTED_INSTALL_AIRFLOW_VERSIONS} + When 'wheel' is used, Airflow is installed from /dist/apache_airflow-*.whl file. + -t, --install-airflow-reference INSTALL_AIRFLOW_REFERENCE If specified, installs Airflow directly from reference in GitHub. This happens at image building time in production image and at container entering time for CI image. diff --git a/breeze-complete b/breeze-complete index 1d65d1792be56..b0269d1ccc375 100644 --- a/breeze-complete +++ b/breeze-complete @@ -60,6 +60,7 @@ _breeze_allowed_install_airflow_versions=$(cat <<-EOF 1.10.4 1.10.3 1.10.2 +wheel EOF ) @@ -104,6 +105,7 @@ mypy-helm no-relative-imports pre-commit-descriptions provide-create-sessions +providers-init-file pydevd pydocstyle pylint @@ -122,6 +124,7 @@ update-breeze-file update-extras update-local-yml-file update-setup-cfg-file +version-sync yamllint EOF ) diff --git a/airflow/api_connexion/__init__.py b/dev/__init__.py similarity index 100% rename from airflow/api_connexion/__init__.py rename to dev/__init__.py diff --git a/dev/import_all_classes.py b/dev/import_all_classes.py new file mode 100644 index 0000000000000..2892f12679a42 --- /dev/null +++ b/dev/import_all_classes.py @@ -0,0 +1,113 @@ +#!/usr/bin/env python3 +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +import argparse +import importlib +import pkgutil +import sys +import traceback +from inspect import isclass +from typing import List + + +def import_all_classes( + paths: List[str], + prefix: str, + provider_ids: List[str] = None, + print_imports: bool = False, + print_skips: bool = False, +) -> List[str]: + """ + Imports all classes in providers packages. This method loads and imports + all the classes found in providers, so that we can find all the subclasses + of operators/sensors etc. + + :param paths: list of paths to look the provider packages in + :param prefix: prefix to add + :param provider_ids - provider ids that should be loaded. + :param print_imports - if imported class should also be printed in output + :param print_skips - if skipped classes should also be printed in output + :return: list of all imported classes + """ + imported_classes = [] + tracebacks = [] + + def mk_prefix(provider_id): + return f'{prefix}{provider_id}' + + if provider_ids: + provider_prefixes = [mk_prefix(provider_id) for provider_id in provider_ids] + else: + provider_prefixes = [prefix] + + def onerror(_): + nonlocal tracebacks + exception_string = traceback.format_exc() + if any([provider_prefix in exception_string for provider_prefix in provider_prefixes]): + tracebacks.append(exception_string) + + for modinfo in pkgutil.walk_packages(path=paths, prefix=prefix, onerror=onerror): + if not any(modinfo.name.startswith(provider_prefix) for provider_prefix in provider_prefixes): + if print_skips: + print(f"Skipping module: {modinfo.name}") + continue + if print_imports: + print(f"Importing module: {modinfo.name}") + try: + _module = importlib.import_module(modinfo.name) + for attribute_name in dir(_module): + class_name = modinfo.name + "." + attribute_name + attribute = getattr(_module, attribute_name) + if isclass(attribute): + if print_imports: + print(f"Imported {class_name}") + imported_classes.append(class_name) + except Exception: # noqa + exception_str = traceback.format_exc() + tracebacks.append(exception_str) + if tracebacks: + print( + """ +ERROR: There were some import errors +""", + file=sys.stderr, + ) + for trace in tracebacks: + print("----------------------------------------", file=sys.stderr) + print(trace, file=sys.stderr) + print("----------------------------------------", file=sys.stderr) + sys.exit(1) + else: + return imported_classes + + +if __name__ == '__main__': + + parser = argparse.ArgumentParser(description='Perform import of all provider classes.') + parser.add_argument('--path', action='append', help='paths to search providers in') + parser.add_argument('--prefix', help='prefix to add in front of the class', default='airflow.providers.') + + args = parser.parse_args() + print() + print(f"Walking all packages in {args.path} with prefix {args.prefix}") + print() + classes = import_all_classes(print_imports=True, print_skips=True, paths=args.path, prefix=args.prefix) + if len(classes) == 0: + raise Exception("Something is seriously wrong - no classes imported") + print() + print(f"SUCCESS: All provider packages are importable! Imported {len(classes)} classes.") + print() diff --git a/provider_packages/BACKPORT_PROVIDER_CHANGES_TEMPLATE.md.jinja2 b/dev/provider_packages/BACKPORT_PROVIDER_CHANGES_TEMPLATE.md.jinja2 similarity index 100% rename from provider_packages/BACKPORT_PROVIDER_CHANGES_TEMPLATE.md.jinja2 rename to dev/provider_packages/BACKPORT_PROVIDER_CHANGES_TEMPLATE.md.jinja2 diff --git a/provider_packages/BACKPORT_PROVIDER_CLASSES_TEMPLATE.md.jinja2 b/dev/provider_packages/BACKPORT_PROVIDER_CLASSES_TEMPLATE.md.jinja2 similarity index 100% rename from provider_packages/BACKPORT_PROVIDER_CLASSES_TEMPLATE.md.jinja2 rename to dev/provider_packages/BACKPORT_PROVIDER_CLASSES_TEMPLATE.md.jinja2 diff --git a/provider_packages/BACKPORT_PROVIDER_README_TEMPLATE.md.jinja2 b/dev/provider_packages/BACKPORT_PROVIDER_README_TEMPLATE.md.jinja2 similarity index 100% rename from provider_packages/BACKPORT_PROVIDER_README_TEMPLATE.md.jinja2 rename to dev/provider_packages/BACKPORT_PROVIDER_README_TEMPLATE.md.jinja2 diff --git a/provider_packages/PROVIDER_CHANGES_TEMPLATE.md.jinja2 b/dev/provider_packages/PROVIDER_CHANGES_TEMPLATE.md.jinja2 similarity index 100% rename from provider_packages/PROVIDER_CHANGES_TEMPLATE.md.jinja2 rename to dev/provider_packages/PROVIDER_CHANGES_TEMPLATE.md.jinja2 diff --git a/provider_packages/PROVIDER_CLASSES_TEMPLATE.md.jinja2 b/dev/provider_packages/PROVIDER_CLASSES_TEMPLATE.md.jinja2 similarity index 100% rename from provider_packages/PROVIDER_CLASSES_TEMPLATE.md.jinja2 rename to dev/provider_packages/PROVIDER_CLASSES_TEMPLATE.md.jinja2 diff --git a/provider_packages/PROVIDER_README_TEMPLATE.md.jinja2 b/dev/provider_packages/PROVIDER_README_TEMPLATE.md.jinja2 similarity index 100% rename from provider_packages/PROVIDER_README_TEMPLATE.md.jinja2 rename to dev/provider_packages/PROVIDER_README_TEMPLATE.md.jinja2 diff --git a/provider_packages/DEV-README.md b/dev/provider_packages/README.md similarity index 72% rename from provider_packages/DEV-README.md rename to dev/provider_packages/README.md index c30bab48c99e7..33d5fab551864 100644 --- a/provider_packages/DEV-README.md +++ b/dev/provider_packages/README.md @@ -171,3 +171,124 @@ the version in PyPI does not contain the leading 0s in version name - therefore also do not container the leading 0s. * You can install the .whl packages with `pip install ` + + +# Testing provider package scripts + +The backport packages importing and tests execute within the "CI" environment of Airflow -the +same image that is used by Breeze. They however require special mounts (no +sources of Airflow mounted to it) and possibility to install all extras and packages in order to test +importability of all the packages. It is rather simple but requires some semi-automated process: + +## Backport packages + +1. Prepare backport packages + + +```shell script +./breeze --backports prepare-provider-packages +``` + +This prepares all backport packages in the "dist" folder + +2. Enter the container: + +```shell script +export INSTALL_AIRFLOW_VERSION=1.10.12 +export BACKPORT_PACKAGES="true" + +./dev/provider_packages/enter_breeze_provider_package_tests.sh +``` + +(the rest of it is in the container) + +3. \[IN CONTAINER\] Install all remaining dependencies and reinstall airflow 1.10: + +```shell script +cd /airflow_sources + +pip install ".[all]" + +pip install "apache-airflow==${INSTALL_AIRFLOW_VERSION}" + +cd +``` + +4. \[IN CONTAINER\] Install the provider packages from /dist + +```shell script +pip install /dist/apache_airflow_backport_providers_*.whl +``` + +5. \[IN CONTAINER\] Check the installation folder for providers: + +```shell script +python3 </dev/null +import airflow.providers; +path=airflow.providers.__path__ +for p in path._path: + print(p) +EOF +``` + +6. \[IN CONTAINER\] Check if all the providers can be imported +python3 /opt/airflow/dev/import_all_classes.py --path + + +## Regular packages + +1. Prepare regular packages + +```shell script +./breeze prepare-provider-packages +``` + +This prepares all backport packages in the "dist" folder + +2. Prepare airflow package from sources + +```shell script +python setup.py compile_assets sdist bdist_wheel +rm -rf -- *egg-info* +``` + +This prepares airflow package in the "dist" folder + +2. Enter the container: + +```shell script +export INSTALL_AIRFLOW_VERSION="wheel" +unset BACKPORT_PACKAGES + +./dev/provider_packages/enter_breeze_provider_package_tests.sh +``` + +(the rest of it is in the container) + +3. \[IN CONTAINER\] Install apache-beam. + +```shell script +pip install apache-beam[gcp] +``` + +4. \[IN CONTAINER\] Install the provider packages from /dist + +```shell script +pip install --no-deps /dist/apache_airflow_providers_*.whl +``` + +Note! No-deps is because we are installing the version installed from wheel package. + +5. \[IN CONTAINER\] Check the installation folder for providers: + +```shell script +python3 </dev/null +import airflow.providers; +path=airflow.providers.__path__ +for p in path._path: + print(p) +EOF +``` + +6. \[IN CONTAINER\] Check if all the providers can be imported +python3 /opt/airflow/dev/import_all_classes.py --path diff --git a/provider_packages/SETUP_TEMPLATE.cfg.jinja2 b/dev/provider_packages/SETUP_TEMPLATE.cfg.jinja2 similarity index 98% rename from provider_packages/SETUP_TEMPLATE.cfg.jinja2 rename to dev/provider_packages/SETUP_TEMPLATE.cfg.jinja2 index 1577a2747c693..6af3c34cb9314 100644 --- a/provider_packages/SETUP_TEMPLATE.cfg.jinja2 +++ b/dev/provider_packages/SETUP_TEMPLATE.cfg.jinja2 @@ -48,4 +48,4 @@ default_section = THIRDPARTY include_trailing_comma = true known_first_party=airflow,tests multi_line_output=5 -profile = "black" +profile = black diff --git a/provider_packages/SETUP_TEMPLATE.py.jinja2 b/dev/provider_packages/SETUP_TEMPLATE.py.jinja2 similarity index 100% rename from provider_packages/SETUP_TEMPLATE.py.jinja2 rename to dev/provider_packages/SETUP_TEMPLATE.py.jinja2 diff --git a/provider_packages/__init__.py b/dev/provider_packages/__init__.py similarity index 100% rename from provider_packages/__init__.py rename to dev/provider_packages/__init__.py diff --git a/provider_packages/build_source_package.sh b/dev/provider_packages/build_source_package.sh similarity index 99% rename from provider_packages/build_source_package.sh rename to dev/provider_packages/build_source_package.sh index 618f484ab9de0..9e04dec706293 100755 --- a/provider_packages/build_source_package.sh +++ b/dev/provider_packages/build_source_package.sh @@ -24,7 +24,7 @@ set -euo pipefail PROVIDER_ID_PACKAGES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cd "${PROVIDER_ID_PACKAGES_DIR}"/.. +cd "${PROVIDER_ID_PACKAGES_DIR}"/../.. function check_version() { : "${VERSION:?"Please export VERSION variable with the version of source package to prepare"}" diff --git a/dev/provider_packages/enter_breeze_provider_package_tests.sh b/dev/provider_packages/enter_breeze_provider_package_tests.sh new file mode 100755 index 0000000000000..1ec7b5107acf8 --- /dev/null +++ b/dev/provider_packages/enter_breeze_provider_package_tests.sh @@ -0,0 +1,40 @@ +#!/usr/bin/env bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +export MOUNT_LOCAL_SOURCES="false" + +# shellcheck source=scripts/ci/libraries/_script_init.sh +. "$(dirname "${BASH_SOURCE[0]}")/../../scripts/ci/libraries/_script_init.sh" + +function enter_breeze_with_mapped_sources() { + docker run -it "${EXTRA_DOCKER_FLAGS[@]}" \ + -v "${AIRFLOW_SOURCES}/dist:/dist:cached" \ + -v "${AIRFLOW_SOURCES}/setup.py:/airflow_sources/setup.py:cached" \ + -v "${AIRFLOW_SOURCES}/setup.cfg:/airflow_sources/setup.cfg:cached" \ + -v "${AIRFLOW_SOURCES}/airflow/__init__.py:/airflow_sources/airflow/__init__.py:cached" \ + -v "${AIRFLOW_SOURCES}/airflow/version.py:/airflow_sources/airflow/version.py:cached" \ + -v "${AIRFLOW_SOURCES}/empty:/opt/airflow/airflow:cached" \ + -v "${AIRFLOW_SOURCES}/scripts/in_container:/opt/airflow/scripts/in_container:cached" \ + -v "${AIRFLOW_SOURCES}/dev/import_all_classes.py:/opt/airflow/dev/import_all_classes.py:cached" \ + "${AIRFLOW_CI_IMAGE}" +} + +build_images::prepare_ci_build + +build_images::rebuild_ci_image_if_needed + +enter_breeze_with_mapped_sources diff --git a/provider_packages/prepare_provider_packages.py b/dev/provider_packages/prepare_provider_packages.py similarity index 92% rename from provider_packages/prepare_provider_packages.py rename to dev/provider_packages/prepare_provider_packages.py index 5eed2407ea1ff..86607ab80f8cd 100644 --- a/provider_packages/prepare_provider_packages.py +++ b/dev/provider_packages/prepare_provider_packages.py @@ -42,17 +42,19 @@ BACKPORT_PROVIDER_PREFIX = "backport_provider_" MY_DIR_PATH = os.path.dirname(__file__) -SOURCE_DIR_PATH = os.path.abspath(os.path.join(MY_DIR_PATH, os.pardir)) +SOURCE_DIR_PATH = os.path.abspath(os.path.join(MY_DIR_PATH, os.pardir, os.pardir)) AIRFLOW_PATH = os.path.join(SOURCE_DIR_PATH, "airflow") PROVIDERS_PATH = os.path.join(AIRFLOW_PATH, "providers") - +TARGET_PROVIDER_PACKAGES_PATH = os.path.join(SOURCE_DIR_PATH, "provider_packages") +GENERATED_AIRFLOW_PATH = os.path.join(TARGET_PROVIDER_PACKAGES_PATH, "airflow") +GENERATED_PROVIDERS_PATH = os.path.join(GENERATED_AIRFLOW_PATH, "providers") sys.path.insert(0, SOURCE_DIR_PATH) # those imports need to come after the above sys.path.insert to make sure that Airflow # sources are importable without having to add the airflow sources to the PYTHONPATH before # running the script import tests.deprecated_classes # noqa # isort:skip -from provider_packages.import_all_provider_classes import import_all_provider_classes # noqa # isort:skip +from dev.import_all_classes import import_all_classes # noqa # isort:skip from setup import PROVIDERS_REQUIREMENTS # noqa # isort:skip # Note - we do not test protocols as they are not really part of the official API of @@ -133,7 +135,7 @@ def get_source_airflow_folder() -> str: :return: the folder path """ - return os.path.abspath(os.path.join(dirname(__file__), os.pardir)) + return os.path.abspath(SOURCE_DIR_PATH) def get_source_providers_folder() -> str: @@ -145,13 +147,22 @@ def get_source_providers_folder() -> str: return os.path.join(get_source_airflow_folder(), "airflow", "providers") +def get_target_folder() -> str: + """ + Returns target directory for providers (in the provider_packages folder) + + :return: the folder path + """ + return os.path.abspath(os.path.join(dirname(__file__), os.pardir, os.pardir, "provider_packages")) + + def get_target_providers_folder() -> str: """ Returns target directory for providers (in the provider_packages folder) :return: the folder path """ - return os.path.abspath(os.path.join(dirname(__file__), "airflow", "providers")) + return os.path.abspath(os.path.join(get_target_folder(), "airflow", "providers")) def get_target_providers_package_folder(provider_package_id: str) -> str: @@ -230,7 +241,8 @@ def get_package_release_version( """ return ( get_latest_release( - get_package_path(provider_package_id=provider_package_id), backport_packages=backport_packages + get_source_package_path(provider_package_id=provider_package_id), + backport_packages=backport_packages, ).release_version + version_suffix ) @@ -321,6 +333,7 @@ def usage() -> None: print(" list-providers-packages - lists all provider packages") print(" list-backportable-packages - lists all packages that are backportable") print(" update-package-release-notes [YYYY.MM.DD] [PACKAGES] - updates package release notes") + print(" generate-setup-files PACKAGES - generates setup files for the package") print(" --version-suffix-for-pypi - adds version suffix to version of the packages.") print(" Only useful when generating RC candidates for PyPI.") print() @@ -1013,9 +1026,9 @@ def store_current_changes( current_changes_file.write("\n") -def get_package_path(provider_package_id: str) -> str: +def get_source_package_path(provider_package_id: str) -> str: """ - Retrieves package path from package id. + Retrieves source package path from package id. :param provider_package_id: id of the package :return: path of the providers folder """ @@ -1023,6 +1036,16 @@ def get_package_path(provider_package_id: str) -> str: return provider_package_path +def get_generated_package_path(provider_package_id: str) -> str: + """ + Retrieves generated package path from package id. + :param provider_package_id: id of the package + :return: path of the providers folder + """ + provider_package_path = os.path.join(GENERATED_PROVIDERS_PATH, *provider_package_id.split(".")) + return provider_package_path + + def get_additional_package_info(provider_package_path: str) -> str: """ Returns additional info for the package. @@ -1098,12 +1121,14 @@ def get_package_pip_name(provider_package_id: str, backport_packages: bool): return f"apache-airflow-providers-{provider_package_id.replace('.', '-')}" -def update_release_notes_for_package( +def update_generated_files_for_package( provider_package_id: str, current_release_version: str, version_suffix: str, imported_classes: List[str], backport_packages: bool, + update_release_notes: bool, + update_setup: bool, ) -> Tuple[int, int]: """ Updates release notes (BACKPORT_PROVIDER_README.md/README.md) for the package. @@ -1114,15 +1139,17 @@ def update_release_notes_for_package( :param version_suffix: version suffix corresponding to the version in the code :param imported_classes - entities that have been imported from providers :param backport_packages: whether to prepare regular (False) or backport (True) packages + :param update_release_notes: whether to update release notes + :param update_setup: whether to update setup files :return: Tuple of total/bad number of entities """ verify_provider_package(provider_package_id) full_package_name = f"airflow.providers.{provider_package_id}" - provider_package_path = get_package_path(provider_package_id) + source_provider_package_path = get_source_package_path(provider_package_id) entity_summaries = get_package_class_summary(full_package_name, imported_classes) past_releases = get_all_releases( - provider_package_path=provider_package_path, backport_packages=backport_packages + provider_package_path=source_provider_package_path, backport_packages=backport_packages ) current_release_version, previous_release = check_if_release_version_ok( past_releases, current_release_version, backport_packages @@ -1135,16 +1162,6 @@ def update_release_notes_for_package( past_releases=past_releases, current_release_version=current_release_version, ) - git_cmd = get_git_command(previous_release) - changes = subprocess.check_output(git_cmd, cwd=provider_package_path, universal_newlines=True) - changes_table = convert_git_changes_to_table( - changes, base_url="https://github.com/apache/airflow/commit/" - ) - pip_requirements_table = convert_pip_requirements_to_table(PROVIDERS_REQUIREMENTS[provider_package_id]) - cross_providers_dependencies_table = convert_cross_package_dependencies_to_table( - cross_providers_dependencies, - base_url="https://github.com/apache/airflow/tree/master/airflow/providers/", - ) release_version_no_leading_zeros = ( strip_leading_zeros_in_calver(current_release_version) if backport_packages @@ -1160,12 +1177,9 @@ def update_release_notes_for_package( "RELEASE": current_release_version, "RELEASE_NO_LEADING_ZEROS": release_version_no_leading_zeros, "VERSION_SUFFIX": version_suffix, - "CURRENT_CHANGES_TABLE": changes_table, - "ADDITIONAL_INFO": get_additional_package_info(provider_package_path=provider_package_path), + "ADDITIONAL_INFO": get_additional_package_info(provider_package_path=source_provider_package_path), "CROSS_PROVIDERS_DEPENDENCIES": cross_providers_dependencies, - "CROSS_PROVIDERS_DEPENDENCIES_TABLE": cross_providers_dependencies_table, "PIP_REQUIREMENTS": PROVIDERS_REQUIREMENTS[provider_package_id], - "PIP_REQUIREMENTS_TABLE": pip_requirements_table, "PROVIDER_TYPE": "Backport provider" if BACKPORT_PACKAGES else "Provider", "PROVIDERS_FOLDER": "backport-providers" if BACKPORT_PACKAGES else "providers", "INSTALL_REQUIREMENTS": get_install_requirements( @@ -1176,17 +1190,37 @@ def update_release_notes_for_package( provider_package_id=provider_package_id, backport_packages=backport_packages ), } - prepare_readme_and_changes_files( - backport_packages, - context, - current_release_version, - entity_summaries, - provider_package_id, - provider_package_path, - ) - prepare_setup_py_file(context, provider_package_path) - prepare_setup_cfg_file(context, provider_package_path) + if update_release_notes: + git_cmd = get_git_command(previous_release) + changes = subprocess.check_output(git_cmd, cwd=source_provider_package_path, universal_newlines=True) + changes_table = convert_git_changes_to_table( + changes, base_url="https://github.com/apache/airflow/commit/" + ) + context["CURRENT_CHANGES_TABLE"] = changes_table + pip_requirements_table = convert_pip_requirements_to_table( + PROVIDERS_REQUIREMENTS[provider_package_id] + ) + cross_providers_dependencies_table = convert_cross_package_dependencies_to_table( + cross_providers_dependencies, + base_url="https://github.com/apache/airflow/tree/master/airflow/providers/", + ) + context["CROSS_PROVIDERS_DEPENDENCIES_TABLE"] = cross_providers_dependencies_table + context["PIP_REQUIREMENTS_TABLE"] = pip_requirements_table + total, bad = check_if_classes_are_properly_named(entity_summaries) + if update_release_notes: + prepare_readme_and_changes_files( + backport_packages, + context, + current_release_version, + entity_summaries, + provider_package_id, + source_provider_package_path, + ) + if update_setup: + prepare_setup_py_file(context) + prepare_setup_cfg_file(context) + bad = bad + sum([len(entity_summary.wrong_entities) for entity_summary in entity_summaries.values()]) if bad != 0: print() @@ -1258,10 +1292,9 @@ def prepare_readme_and_changes_files( os.remove(temp_file_path) -def prepare_setup_py_file(context, provider_package_path): +def prepare_setup_py_file(context): setup_template_name = "SETUP" - setup_target_prefix = BACKPORT_PROVIDER_PREFIX if BACKPORT_PACKAGES else "" - setup_file_path = os.path.abspath(os.path.join(provider_package_path, setup_target_prefix + "setup.py")) + setup_file_path = os.path.abspath(os.path.join(get_target_folder(), "setup.py")) setup_content = render_template( template_name=setup_template_name, context=context, extension='.py', autoescape=False ) @@ -1271,10 +1304,9 @@ def prepare_setup_py_file(context, provider_package_path): subprocess.run(["black", setup_file_path, "--config=./pyproject.toml"], cwd=SOURCE_DIR_PATH) -def prepare_setup_cfg_file(context, provider_package_path): +def prepare_setup_cfg_file(context): setup_template_name = "SETUP" - setup_target_prefix = BACKPORT_PROVIDER_PREFIX if BACKPORT_PACKAGES else "" - setup_file_path = os.path.abspath(os.path.join(provider_package_path, setup_target_prefix + "setup.cfg")) + setup_file_path = os.path.abspath(os.path.join(get_target_folder(), "setup.cfg")) setup_content = render_template( template_name=setup_template_name, context=context, @@ -1297,9 +1329,14 @@ def update_release_notes_for_packages( :param backport_packages: whether to prepare regular (False) or backport (True) packages :return: """ - imported_classes = import_all_provider_classes( - source_paths=[PROVIDERS_PATH], provider_ids=provider_ids, print_imports=False + imported_classes = import_all_classes( + provider_ids=provider_ids, print_imports=True, paths=[PROVIDERS_PATH], prefix="airflow.providers." ) + if len(imported_classes) == 0: + raise Exception( + "There is something seriously wrong with importing all classes as " + "None of the classes were imported," + ) make_sure_remote_apache_exists_and_fetch() if len(provider_ids) == 0: if backport_packages: @@ -1316,8 +1353,14 @@ def update_release_notes_for_packages( print(provider_id) print() for package in provider_ids: - inc_total, inc_bad = update_release_notes_for_package( - package, release_version, version_suffix, imported_classes, backport_packages + inc_total, inc_bad = update_generated_files_for_package( + package, + release_version, + version_suffix, + imported_classes, + backport_packages, + update_release_notes=True, + update_setup=False, ) total += inc_total bad += inc_bad @@ -1375,36 +1418,6 @@ def verify_provider_package(package: str) -> None: ) -def copy_setup_py(provider_package_id: str, backport_packages: bool) -> None: - """ - Copies setup.py to provider_package directory. - :param provider_package_id: package from which to copy the setup.py - :param backport_packages: whether to prepare regular (False) or backport (True) packages - :return: - """ - setup_source_prefix = BACKPORT_PROVIDER_PREFIX if backport_packages else "" - provider_package_path = get_package_path(provider_package_id) - copyfile( - os.path.join(provider_package_path, setup_source_prefix + "setup.py"), - os.path.join(MY_DIR_PATH, "setup.py"), - ) - - -def copy_setup_cfg(provider_package_id: str, backport_packages: bool) -> None: - """ - Copies setup.py to provider_package directory. - :param provider_package_id: package from which to copy the setup.cfg - :param backport_packages: whether to prepare regular (False) or backport (True) packages - :return: - """ - setup_source_prefix = BACKPORT_PROVIDER_PREFIX if backport_packages else "" - provider_package_path = get_package_path(provider_package_id) - copyfile( - os.path.join(provider_package_path, setup_source_prefix + "setup.cfg"), - os.path.join(MY_DIR_PATH, "setup.cfg"), - ) - - def copy_readme_and_changelog(provider_package_id: str, backport_packages: bool) -> None: """ Copies the right README.md/CHANGELOG.txt to provider_package directory. @@ -1413,11 +1426,11 @@ def copy_readme_and_changelog(provider_package_id: str, backport_packages: bool) :return: """ readme_source = "BACKPORT_PROVIDER_README.md" if backport_packages else "README.md" - provider_package_path = get_package_path(provider_package_id) - readme_source = os.path.join(provider_package_path, readme_source) - readme_target = os.path.join(MY_DIR_PATH, "README.md") + source_provider_package_path = get_source_package_path(provider_package_id) + readme_source = os.path.join(source_provider_package_path, readme_source) + readme_target = os.path.join(TARGET_PROVIDER_PACKAGES_PATH, "README.md") copyfile(readme_source, readme_target) - changelog_target = os.path.join(MY_DIR_PATH, "CHANGELOG.txt") + changelog_target = os.path.join(TARGET_PROVIDER_PACKAGES_PATH, "CHANGELOG.txt") with open(readme_source) as infile, open(changelog_target, 'wt') as outfile: copy = False for line in infile: @@ -1431,6 +1444,7 @@ def copy_readme_and_changelog(provider_package_id: str, backport_packages: bool) LIST_PROVIDERS_PACKAGES = "list-providers-packages" LIST_BACKPORTABLE_PACKAGES = "list-backportable-packages" UPDATE_PACKAGE_RELEASE_NOTES = "update-package-release-notes" + GENERATE_SETUP_FILES = "generate-setup-files" BACKPORT_PACKAGES = os.getenv('BACKPORT_PACKAGES') == "true" suffix = "" @@ -1440,6 +1454,7 @@ def copy_readme_and_changelog(provider_package_id: str, backport_packages: bool) possible_first_params.append(LIST_PROVIDERS_PACKAGES) possible_first_params.append(LIST_BACKPORTABLE_PACKAGES) possible_first_params.append(UPDATE_PACKAGE_RELEASE_NOTES) + possible_first_params.append(GENERATE_SETUP_FILES) if len(sys.argv) == 1: print( """ @@ -1507,13 +1522,20 @@ def copy_readme_and_changelog(provider_package_id: str, backport_packages: bool) backport_packages=BACKPORT_PACKAGES, ) sys.exit(0) - + elif sys.argv[1] == GENERATE_SETUP_FILES: + print() + print() + print("Generate setup files") + print() + provider = sys.argv[2] + update_generated_files_for_package( + provider, "", suffix, [], BACKPORT_PACKAGES, update_release_notes=False, update_setup=True + ) + sys.exit(0) _provider_package = sys.argv[1] verify_provider_package(_provider_package) del sys.argv[1] print(f"Building backport package: {_provider_package}") - copy_setup_py(_provider_package, BACKPORT_PACKAGES) - copy_setup_cfg(_provider_package, BACKPORT_PACKAGES) copy_readme_and_changelog(_provider_package, BACKPORT_PACKAGES) command = ["python3", "setup.py", "--version-suffix-for-pypi", suffix, "sdist", "bdist_wheel"] print(f"Executing command: '{command}'") diff --git a/provider_packages/refactor_provider_packages.py b/dev/provider_packages/refactor_provider_packages.py similarity index 99% rename from provider_packages/refactor_provider_packages.py rename to dev/provider_packages/refactor_provider_packages.py index 8772fa38b398f..7cd917fc5d5a3 100755 --- a/provider_packages/refactor_provider_packages.py +++ b/dev/provider_packages/refactor_provider_packages.py @@ -26,7 +26,7 @@ from fissix.fixer_util import Comma, KeywordArg, Name from fissix.pytree import Leaf -from provider_packages.prepare_provider_packages import ( +from dev.provider_packages.prepare_provider_packages import ( get_source_airflow_folder, get_source_providers_folder, get_target_providers_folder, @@ -715,8 +715,8 @@ def kubernetes_package_filter(node: LN, capture: Capture, filename: Filename) -> def do_refactor(self, in_process: bool = False) -> None: # noqa self.rename_deprecated_modules() self.refactor_amazon_package() - self.refactor_elasticsearch_package() self.refactor_google_package() + self.refactor_elasticsearch_package() self.refactor_odbc_package() self.remove_tags() self.remove_super_init_call() diff --git a/provider_packages/remove_old_releases.py b/dev/provider_packages/remove_old_releases.py similarity index 100% rename from provider_packages/remove_old_releases.py rename to dev/provider_packages/remove_old_releases.py diff --git a/docs/conf.py b/docs/conf.py index e071158a8688c..8b891fc5c3701 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -123,9 +123,14 @@ "_api/airflow/providers/cncf/index.rst", # Packages without operators "_api/airflow/providers/sendgrid", - # Setup.py files of the providers - "_api/airflow/providers/*/*setup/index.rst", - "_api/airflow/providers/*/*/*setup/index.rst", + # Other API rst files. + "_api/endpoints/index.rst", + "_api/endpoints/*/index.rst", + "_api/exceptions/index.rst", + "_api/parameters/index.rst", + "_api/schemas/index.rst", + "_api/schemas/*/index.rst", + "_api/security/index.rst", # Templates or partials 'autoapi_templates', 'howto/operator/google/_partials', diff --git a/provider_packages/.gitignore b/provider_packages/.gitignore index e852672cfa717..59b11608fc9d8 100644 --- a/provider_packages/.gitignore +++ b/provider_packages/.gitignore @@ -3,3 +3,4 @@ setup.py CHANGELOG.txt README.md setup.cfg +/airflow/ diff --git a/provider_packages/airflow/.gitignore b/provider_packages/airflow/.gitignore deleted file mode 100644 index 1639e3612d9a2..0000000000000 --- a/provider_packages/airflow/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -providers -git_version diff --git a/provider_packages/airflow/version.py b/provider_packages/airflow/version.py deleted file mode 120000 index fa0faf9e36c28..0000000000000 --- a/provider_packages/airflow/version.py +++ /dev/null @@ -1 +0,0 @@ -../../airflow/version.py \ No newline at end of file diff --git a/provider_packages/import_all_provider_classes.py b/provider_packages/import_all_provider_classes.py deleted file mode 100755 index ff0ffbc1199eb..0000000000000 --- a/provider_packages/import_all_provider_classes.py +++ /dev/null @@ -1,114 +0,0 @@ -#!/usr/bin/env python3 -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -import importlib -import os -import pkgutil -import sys -import traceback -from inspect import isclass -from typing import List - - -def import_all_provider_classes( - source_paths: str, provider_ids: List[str] = None, print_imports: bool = False -) -> List[str]: - """ - Imports all classes in providers packages. This method loads and imports - all the classes found in providers, so that we can find all the subclasses - of operators/sensors etc. - - :param source_paths: list of paths to look for sources - might be None to look for all packages in all - source paths - :param provider_ids - provider ids that should be loaded. - :param print_imports - if imported class should also be printed in output - :return: list of all imported classes - """ - imported_classes = [] - tracebacks = [] - - def onerror(_): - nonlocal tracebacks - exception_str = traceback.format_exc() - tracebacks.append(exception_str) - - def mk_path(provider_id): - provider_path = provider_id.replace('.', '/') - return (os.path.join(path + provider_path) for path in source_paths) - - def mk_prefix(provider_id): - if not provider_id: - return 'airflow.providers.' - else: - return f'airflow.providers.{provider_id}.' - - if not provider_ids: - provider_ids = [''] - - for provider_id in provider_ids: - for modinfo in pkgutil.walk_packages( - mk_path(provider_id), prefix=mk_prefix(provider_id), onerror=onerror - ): - if print_imports: - print(f"Importing module: {modinfo.name}") - try: - _module = importlib.import_module(modinfo.name) - for attribute_name in dir(_module): - class_name = modinfo.name + "." + attribute_name - attribute = getattr(_module, attribute_name) - if isclass(attribute): - if print_imports: - print(f"Imported {class_name}") - imported_classes.append(class_name) - except Exception: # noqa - exception_str = traceback.format_exc() - tracebacks.append(exception_str) - if tracebacks: - print( - """ -ERROR: There were some import errors -""", - file=sys.stderr, - ) - for trace in tracebacks: - print("----------------------------------------", file=sys.stderr) - print(trace, file=sys.stderr) - print("----------------------------------------", file=sys.stderr) - sys.exit(1) - else: - return imported_classes - - -if __name__ == '__main__': - try: - import airflow.providers - - install_source_path = list(iter(airflow.providers.__path__)) - except ImportError as e: - print("----------------------------------------", file=sys.stderr) - print(e, file=sys.stderr) - print("----------------------------------------", file=sys.stderr) - sys.exit(1) - - print() - print(f"Walking all paths in {install_source_path}") - print() - import_all_provider_classes(print_imports=True, source_paths=install_source_path) - print() - print("SUCCESS: All provider packages are importable!") - print() diff --git a/scripts/ci/docker-compose/local.yml b/scripts/ci/docker-compose/local.yml index 03822bdaf6607..5432403151cc3 100644 --- a/scripts/ci/docker-compose/local.yml +++ b/scripts/ci/docker-compose/local.yml @@ -48,6 +48,7 @@ services: - ../../../hooks:/opt/airflow/hooks:cached - ../../../logs:/root/airflow/logs:cached - ../../../pylintrc:/opt/airflow/pylintrc:cached + - ../../../pyproject.toml:/opt/airflow/pyproject.toml:cached - ../../../pytest.ini:/opt/airflow/pytest.ini:cached - ../../../scripts:/opt/airflow/scripts:cached - ../../../scripts/in_container/entrypoint_ci.sh:/entrypoint:cached diff --git a/scripts/ci/libraries/_local_mounts.sh b/scripts/ci/libraries/_local_mounts.sh index 93676b61259c2..c11b419560765 100644 --- a/scripts/ci/libraries/_local_mounts.sh +++ b/scripts/ci/libraries/_local_mounts.sh @@ -44,6 +44,7 @@ function local_mounts::generate_local_mounts_list { "$prefix"hooks:/opt/airflow/hooks:cached "$prefix"logs:/root/airflow/logs:cached "$prefix"pylintrc:/opt/airflow/pylintrc:cached + "$prefix"pyproject.toml:/opt/airflow/pyproject.toml:cached "$prefix"pytest.ini:/opt/airflow/pytest.ini:cached "$prefix"scripts:/opt/airflow/scripts:cached "$prefix"scripts/in_container/entrypoint_ci.sh:/entrypoint:cached diff --git a/airflow/providers/ftp/backport_provider_setup.cfg b/scripts/ci/pre_commit/pre_commit_check_providers_init.sh old mode 100644 new mode 100755 similarity index 50% rename from airflow/providers/ftp/backport_provider_setup.cfg rename to scripts/ci/pre_commit/pre_commit_check_providers_init.sh index 023e37ef2a3f2..8b7bb2ab85cce --- a/airflow/providers/ftp/backport_provider_setup.cfg +++ b/scripts/ci/pre_commit/pre_commit_check_providers_init.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -14,38 +15,14 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +set -euo pipefail +# shellcheck source=scripts/ci/libraries/_script_init.sh +. "$( dirname "${BASH_SOURCE[0]}" )/../libraries/_script_init.sh" -[metadata] -name = Airflow Backport provider: apache-airflow-backport-providers-ftp -summary = Backport provider for Apache Airflow. Implements apache-airflow-backport-providers-ftp package -description-file = README.md -author = Apache Airflow PMC -author-email = dev@airflow.apache.org -license = Apache License, Version 2.0 -license_files = - LICENSE - NOTICE - -[bdist_wheel] -python-tag=py3 - -[files] -packages = airflow.providers.ftp - -[easy_install] - -[mypy] -ignore_missing_imports = True -no_implicit_optional = True -warn_redundant_casts = True -warn_unused_ignores = False -pretty = True - -[isort] -line_length=110 -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -known_first_party=airflow,tests -multi_line_output=5 -profile = "black" +if [[ -f "${AIRFLOW_SOURCES}/airflow/providers/__init__.py" ]]; then + >&2 echo + >&2 echo "The ${AIRFLOW_SOURCES}/airflow/providers/__init__.py file should not exist. Deleting it" + >&2 echo + rm "${AIRFLOW_SOURCES}/airflow/providers/__init__.py" + exit 1 +fi diff --git a/provider_packages/airflow/__init__.py b/scripts/ci/pre_commit/pre_commit_sync_version.sh old mode 100644 new mode 100755 similarity index 68% rename from provider_packages/airflow/__init__.py rename to scripts/ci/pre_commit/pre_commit_sync_version.sh index 13a83393a9124..4e51c43ee1871 --- a/provider_packages/airflow/__init__.py +++ b/scripts/ci/pre_commit/pre_commit_sync_version.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -14,3 +15,14 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +set -euo pipefail + +# shellcheck source=scripts/ci/libraries/_script_init.sh +. "$( dirname "${BASH_SOURCE[0]}" )/../libraries/_script_init.sh" + +set -x + +AIRFLOW_VERSION_STRING=$(grep "version =" "${AIRFLOW_SOURCES}/airflow/version.py") +readonly AIRFLOW_VERSION_STRING + +sed "s/version =.*$/${AIRFLOW_VERSION_STRING}/" -i "${AIRFLOW_SOURCES}/setup.py" diff --git a/scripts/ci/provider_packages/ci_prepare_provider_readme.sh b/scripts/ci/provider_packages/ci_prepare_provider_readme.sh index b5f7764e72b3a..e4d0f5e35dd23 100755 --- a/scripts/ci/provider_packages/ci_prepare_provider_readme.sh +++ b/scripts/ci/provider_packages/ci_prepare_provider_readme.sh @@ -17,7 +17,7 @@ # under the License. # shellcheck source=scripts/ci/libraries/_script_init.sh . "$( dirname "${BASH_SOURCE[0]}" )/../libraries/_script_init.sh" -# + build_images::prepare_ci_build build_images::rebuild_ci_image_if_needed diff --git a/scripts/ci/provider_packages/ci_test_provider_packages_import_all_classes.sh b/scripts/ci/provider_packages/ci_test_provider_packages_import_all_classes.sh index b53c62e8ca20a..7a3a5db2b5af4 100755 --- a/scripts/ci/provider_packages/ci_test_provider_packages_import_all_classes.sh +++ b/scripts/ci/provider_packages/ci_test_provider_packages_import_all_classes.sh @@ -15,6 +15,8 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +export MOUNT_LOCAL_SOURCES="false" + # shellcheck source=scripts/ci/libraries/_script_init.sh . "$( dirname "${BASH_SOURCE[0]}" )/../libraries/_script_init.sh" @@ -26,7 +28,9 @@ function run_test_package_import_all_classes() { -v "${AIRFLOW_SOURCES}/setup.cfg:/airflow_sources/setup.cfg:cached" \ -v "${AIRFLOW_SOURCES}/airflow/__init__.py:/airflow_sources/airflow/__init__.py:cached" \ -v "${AIRFLOW_SOURCES}/airflow/version.py:/airflow_sources/airflow/version.py:cached" \ - -v "${AIRFLOW_SOURCES}/provider_packages/import_all_provider_classes.py:/import_all_provider_classes.py:cached" \ + -v "${AIRFLOW_SOURCES}/empty:/opt/airflow/airflow:cached" \ + -v "${AIRFLOW_SOURCES}/scripts/in_container:/opt/airflow/scripts/in_container:cached" \ + -v "${AIRFLOW_SOURCES}/dev/import_all_classes.py:/opt/airflow/dev/import_all_classes.py:cached" \ "${AIRFLOW_CI_IMAGE}" \ "--" "/opt/airflow/scripts/in_container/run_test_package_import_all_classes.sh" } diff --git a/scripts/ci/provider_packages/ci_test_provider_packages_install.sh b/scripts/ci/provider_packages/ci_test_provider_packages_install.sh index 1e70531f094d7..2c3312ae6770b 100755 --- a/scripts/ci/provider_packages/ci_test_provider_packages_install.sh +++ b/scripts/ci/provider_packages/ci_test_provider_packages_install.sh @@ -15,6 +15,8 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +export MOUNT_LOCAL_SOURCES="false" + # shellcheck source=scripts/ci/libraries/_script_init.sh . "$( dirname "${BASH_SOURCE[0]}" )/../libraries/_script_init.sh" @@ -22,6 +24,8 @@ function run_test_package_install() { docker run "${EXTRA_DOCKER_FLAGS[@]}" \ --entrypoint "/usr/local/bin/dumb-init" \ -v "${AIRFLOW_SOURCES}/dist:/dist:cached" \ + -v "${AIRFLOW_SOURCES}/empty:/opt/airflow/airflow:cached" \ + -v "${AIRFLOW_SOURCES}/scripts/in_container:/opt/airflow/scripts/in_container:cached" \ "${AIRFLOW_CI_IMAGE}" \ "--" "/opt/airflow/scripts/in_container/run_test_package_install.sh" "${1}" } diff --git a/scripts/in_container/_in_container_utils.sh b/scripts/in_container/_in_container_utils.sh index 19bce560cf5f7..9ff5e7472f52b 100644 --- a/scripts/in_container/_in_container_utils.sh +++ b/scripts/in_container/_in_container_utils.sh @@ -259,11 +259,15 @@ function install_released_airflow_version() { export SLUGIFY_USES_TEXT_UNIDECODE=yes fi rm -rf "${AIRFLOW_SOURCES}"/*.egg-info - INSTALLS=("apache-airflow==${1}" "werkzeug<1.0.0") - pip install --upgrade "${INSTALLS[@]}" + if [[ ${INSTALL_AIRFLOW_VERSION} == "wheel" ]]; then + pip install /dist/apache_airflow-*.whl + else + INSTALLS=("apache-airflow==${1}") + pip install --upgrade "${INSTALLS[@]}" + fi } -function setup_backport_packages() { +function setup_provider_packages() { if [[ ${BACKPORT_PACKAGES:=} == "true" ]]; then export PACKAGE_TYPE="backport" export PACKAGE_PREFIX_UPPERCASE="BACKPORT_" diff --git a/scripts/in_container/run_prepare_provider_packages.sh b/scripts/in_container/run_prepare_provider_packages.sh index 00e6ee6087725..f10f29b3731ff 100755 --- a/scripts/in_container/run_prepare_provider_packages.sh +++ b/scripts/in_container/run_prepare_provider_packages.sh @@ -18,7 +18,7 @@ # shellcheck source=scripts/in_container/_in_container_script_init.sh . "$( dirname "${BASH_SOURCE[0]}" )/_in_container_script_init.sh" -setup_backport_packages +setup_provider_packages LIST_OF_DIRS_FILE=$(mktemp) @@ -29,14 +29,13 @@ find . -type d | sed 's/.\///; s/\//\./g' | grep -E 'hooks|operators|sensors|sec cd "${AIRFLOW_SOURCES}/provider_packages" || exit 1 -rm -rf dist/* -rm -rf -- *.egg-info - +PREPARE_PROVIDER_PACKAGES_PY="${AIRFLOW_SOURCES}/dev/provider_packages/prepare_provider_packages.py" +REFACTOR_PROVIDER_PACKAGES_PY="${AIRFLOW_SOURCES}/dev/provider_packages/refactor_provider_packages.py" verify_suffix_versions_for_package_preparation if [[ -z "$*" ]]; then - PROVIDERS_PACKAGES=$(python3 prepare_provider_packages.py list-providers-packages) + PROVIDERS_PACKAGES=$(python3 "${PREPARE_PROVIDER_PACKAGES_PY}" list-providers-packages) PACKAGE_ERROR="false" # Check if all providers are included @@ -51,20 +50,20 @@ if [[ -z "$*" ]]; then if [[ ${PACKAGE_ERROR} == "true" ]]; then echo - echo "ERROR! Some packages from provider_packages/prepare_provider_packages.py are missing in providers dir" + echo "ERROR! Some packages from dev/provider_packages/prepare_provider_packages.py are missing in providers dir" exit 1 fi NUM_LINES=$(wc -l "${LIST_OF_DIRS_FILE}" | awk '{ print $1 }') if [[ ${NUM_LINES} != "0" ]]; then echo "ERROR! Some folders from providers package are not defined" - echo " Please add them to provider_packages/prepare_provider_packages.py:" + echo " Please add them to dev/provider_packages/prepare_provider_packages.py:" echo cat "${LIST_OF_DIRS_FILE}" echo exit 1 fi - PROVIDER_PACKAGES=$(python3 prepare_provider_packages.py list-backportable-packages) + PROVIDER_PACKAGES=$(python3 "${PREPARE_PROVIDER_PACKAGES_PY}" list-backportable-packages) else if [[ "$1" == "--help" ]]; then echo @@ -72,7 +71,7 @@ else echo echo "You can provide list of packages to build out of:" echo - python3 prepare_provider_packages.py list-providers-packages | tr '\n ' ' ' | fold -w 100 -s + python3 "${PREPARE_PROVIDER_PACKAGES_PY}" list-providers-packages | tr '\n ' ' ' | fold -w 100 -s echo echo exit @@ -89,11 +88,17 @@ else echo " Copying sources for provider packages" echo "===================================================================================" fi -python3 refactor_provider_packages.py + +python3 "${REFACTOR_PROVIDER_PACKAGES_PY}" + +rm -rf dist/* for PROVIDER_PACKAGE in ${PROVIDER_PACKAGES} do + rm -rf -- *.egg-info + rm -rf build/ LOG_FILE=$(mktemp) + python3 "${PREPARE_PROVIDER_PACKAGES_PY}" generate-setup-files "${PROVIDER_PACKAGE}" echo "===================================================================================" echo " Preparing ${PACKAGE_TYPE} package ${PROVIDER_PACKAGE} " if [[ "${VERSION_SUFFIX_FOR_PYPI}" == '' && "${VERSION_SUFFIX_FOR_SVN}" == '' @@ -126,7 +131,7 @@ do # only adds suffix to setup.py if version suffix for PyPI is set but the SVN one is not package_suffix="${VERSION_SUFFIX_FOR_PYPI}" fi - python3 prepare_provider_packages.py --version-suffix "${package_suffix}" \ + python3 "${PREPARE_PROVIDER_PACKAGES_PY}" --version-suffix "${package_suffix}" \ "${PROVIDER_PACKAGE}">"${LOG_FILE}" 2>&1 RES="${?}" set -e diff --git a/scripts/in_container/run_prepare_provider_readme.sh b/scripts/in_container/run_prepare_provider_readme.sh index 885add500185f..38a3af271051d 100755 --- a/scripts/in_container/run_prepare_provider_readme.sh +++ b/scripts/in_container/run_prepare_provider_readme.sh @@ -18,7 +18,7 @@ # shellcheck source=scripts/in_container/_in_container_script_init.sh . "$( dirname "${BASH_SOURCE[0]}" )/_in_container_script_init.sh" -setup_backport_packages +setup_provider_packages OUT_FILE_PRINTED_ON_ERROR=$(mktemp) @@ -38,9 +38,10 @@ echo > "${OUT_FILE_PRINTED_ON_ERROR}" cd "${AIRFLOW_SOURCES}/provider_packages" || exit 1 -python3 prepare_provider_packages.py --version-suffix "${TARGET_VERSION_SUFFIX}" \ - update-package-release-notes "$@" +PREPARE_PROVIDER_PACKAGES_PY="${AIRFLOW_SOURCES}/dev/provider_packages/prepare_provider_packages.py" +python3 "${PREPARE_PROVIDER_PACKAGES_PY}" --version-suffix "${TARGET_VERSION_SUFFIX}" \ + update-package-release-notes "$@" AIRFLOW_PROVIDER_README_TGZ_FILE="/files/airflow-readme-$(date +"%Y-%m-%d-%H.%M.%S").tar.gz" diff --git a/scripts/in_container/run_test_package_import_all_classes.sh b/scripts/in_container/run_test_package_import_all_classes.sh index 845f1951ea36d..81d0000be209f 100755 --- a/scripts/in_container/run_test_package_import_all_classes.sh +++ b/scripts/in_container/run_test_package_import_all_classes.sh @@ -18,7 +18,7 @@ # shellcheck source=scripts/in_container/_in_container_script_init.sh . "$( dirname "${BASH_SOURCE[0]}" )/_in_container_script_init.sh" -setup_backport_packages +setup_provider_packages echo echo "Testing if all classes in import packages can be imported" @@ -26,12 +26,13 @@ echo OUT_FILE_PRINTED_ON_ERROR=$(mktemp) -if [[ ${INSTALL_AIRFLOW_VERSION:=""} =~ ^2\..* ]]; then +if [[ ${INSTALL_AIRFLOW_VERSION:=""} == "wheel" ]]; then echo - echo "Installing regular packages for Airflow 2.0 but first installing prepared Airflow from master" + echo "Installing the airflow prepared from wheels" echo + pip uninstall -y apache-airflow pip install /dist/apache_airflow-*.whl - # Need to add excluded apache beam + # Need to add excluded apache. All the rest should be installed by extras pip install apache-beam[gcp] echo elif [[ ! ${INSTALL_AIRFLOW_VERSION:=""} =~ ^1\.10\..* ]]; then @@ -71,14 +72,36 @@ fi # Install all packages at once pip install ${EXTRA_FLAGS} /dist/apache_airflow*providers_*.whl >>"${OUT_FILE_PRINTED_ON_ERROR}" 2>&1 - echo > "${OUT_FILE_PRINTED_ON_ERROR}" echo echo Importing all classes in Airflow 1.10 echo +# We have to move to a directory where "airflow +unset PYTHONPATH # We need to make sure we are not in the airflow checkout, otherwise it will automatically be added to the # import path cd / -python3 /import_all_provider_classes.py + +declare -a IMPORT_CLASS_PARAMETERS + +PROVIDER_PATHS=$(python3 </dev/null +import airflow.providers; +path=airflow.providers.__path__ +for p in path._path: + print(p) +EOF +) +export PROVIDER_PATHS + +echo "Searching for providers packages in:" +echo "${PROVIDER_PATHS}" + + +while read -r provider_path +do + IMPORT_CLASS_PARAMETERS+=("--path" "${provider_path}") +done < <(echo "${PROVIDER_PATHS}") + +python3 /opt/airflow/dev/import_all_classes.py "${IMPORT_CLASS_PARAMETERS[@]}" diff --git a/scripts/in_container/run_test_package_install.sh b/scripts/in_container/run_test_package_install.sh index 07218569b5d73..94d9e37d00a9a 100755 --- a/scripts/in_container/run_test_package_install.sh +++ b/scripts/in_container/run_test_package_install.sh @@ -19,15 +19,15 @@ . "$( dirname "${BASH_SOURCE[0]}" )/_in_container_script_init.sh" OUT_FILE_PRINTED_ON_ERROR=$(mktemp) -setup_backport_packages +setup_provider_packages echo echo "Testing if all provider packages can be installed separately on Airflow and cause no side effects" echo -if [[ ${INSTALL_AIRFLOW_VERSION:=""} =~ ^2\..* ]]; then +if [[ ${INSTALL_AIRFLOW_VERSION:=""} == "wheel" ]]; then echo - echo "Installing regular packages for Airflow 2.0 but first installing prepared Airflow from master" + echo "Installing the airflow prepared from wheels" echo pip install /dist/apache_airflow-*.whl # Need to add excluded apache beam diff --git a/setup.py b/setup.py index 50de8db2395b6..167906fa8479d 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,6 @@ import subprocess import sys import unittest -from importlib import util from os.path import dirname from textwrap import wrap from typing import Dict, Iterable, List @@ -31,11 +30,8 @@ logger = logging.getLogger(__name__) -# Kept manually in sync with airflow.__version__ -spec = util.spec_from_file_location("airflow.version", os.path.join('airflow', 'version.py')) # noqa -mod = util.module_from_spec(spec) -spec.loader.exec_module(mod) # type: ignore -version = mod.version # type: ignore +# This is automatically maintained in sync via pre-commit from airflow/version.py +version = '2.0.0a2' PY3 = sys.version_info[0] == 3