Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Telegram provider to new structure #46079

Merged
merged 1 commit into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/boring-cyborg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,7 @@ labelPRBasedOnFilePath:
- providers/tests/system/tableau/**/*

provider:telegram:
- providers/src/airflow/providers/telegram/**/*
- docs/apache-airflow-providers-telegram/**/*
- providers/tests/telegram/**/*
- providers/tests/system/telegram/**/*
- providers/telegram/**

provider:teradata:
- providers/src/airflow/providers/teradata/**/*
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ apache-airflow-providers-common-sql
apache-airflow-providers-edge
apache-airflow-providers-pinecone
apache-airflow-providers-standard
apache-airflow-providers-telegram
apache-airflow-providers-weaviate
apache-airflow-providers-zendesk
25 changes: 0 additions & 25 deletions docs/apache-airflow-providers-telegram/changelog.rst

This file was deleted.

62 changes: 62 additions & 0 deletions providers/telegram/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@

.. 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!

.. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
`PROVIDER_README_TEMPLATE.rst.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY


Package ``apache-airflow-providers-telegram``

Release: ``4.7.0``


`Telegram <https://telegram.org/>`__


Provider package
----------------

This is a provider package for ``telegram`` provider. All classes for this provider package
are in ``airflow.providers.telegram`` python package.

You can find package information and changelog for the provider
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.0/>`_.

Installation
------------

You can install this package on top of an existing Airflow 2 installation (see ``Requirements`` below
for the minimum Airflow version supported) via
``pip install apache-airflow-providers-telegram``

The package supports the following python versions: 3.9,3.10,3.11,3.12

Requirements
------------

======================= ==================
PIP package Version required
======================= ==================
``apache-airflow`` ``>=2.9.0``
``python-telegram-bot`` ``>=20.2``
======================= ==================

The changelog for the provider package can be found in the
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.0/changelog.html>`_.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Misc
Features
~~~~~~~~

* ``Add telegram connection with documnetation (#37515)``
* ``Add telegram connection with documentation (#37515)``

.. Below changes are excluded from the changelog. Move them to
appropriate section above if needed. Do not delete the lines(!):
Expand Down Expand Up @@ -227,7 +227,7 @@ In this version, we upgraded the ``python-telegram-bot`` to ``20.0.0`` and above
All remains the same except that now the ``get_conn()`` method in ``TelegramHook`` is a coroutine function.
Refer to `python-telegram-bot transition guide <https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-20.0#asyncio>`_ for more details.

* ``Updated Telegram Provider to ensure compatbility with >=20.0.0 (#28953)``
* ``Updated Telegram Provider to ensure compatibility with >=20.0.0 (#28953)``

3.1.1
.....
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ the connection metadata is structured as follows:

An example usage of the TelegramOperator is as follows:

.. exampleinclude:: /../../providers/tests/system/telegram/example_telegram.py
.. exampleinclude:: /../../providers/telegram/tests/system/telegram/example_telegram.py
:language: python
:start-after: [START howto_operator_telegram]
:end-before: [END howto_operator_telegram]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,12 @@ versions:
- 1.0.1
- 1.0.0

dependencies:
- apache-airflow>=2.9.0
- python-telegram-bot>=20.2

integrations:
- integration-name: Telegram
external-doc-url: https://telegram.org/
how-to-guide:
- /docs/apache-airflow-providers-telegram/operators.rst
logo: /integration-logos/telegram/Telegram.png
logo: /docs/integration-logos/Telegram.png
tags: [service]

operators:
Expand Down
78 changes: 78 additions & 0 deletions providers/telegram/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# 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!

# IF YOU WANT TO MODIFY THIS FILE EXCEPT DEPENDENCIES, YOU SHOULD MODIFY THE TEMPLATE
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
[build-system]
requires = ["flit_core==3.10.1"]
build-backend = "flit_core.buildapi"

[project]
name = "apache-airflow-providers-telegram"
version = "4.7.0"
description = "Provider package apache-airflow-providers-telegram for Apache Airflow"
readme = "README.rst"
authors = [
{name="Apache Software Foundation", email="[email protected]"},
]
maintainers = [
{name="Apache Software Foundation", email="[email protected]"},
]
keywords = [ "airflow-provider", "telegram", "airflow", "integration" ]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Framework :: Apache Airflow",
"Framework :: Apache Airflow :: Provider",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Monitoring",
]
requires-python = "~=3.9"

# The dependencies should be modified in place in the generated file
# Any change in the dependencies is preserved when the file is regenerated
dependencies = [
"apache-airflow>=2.9.0",
"python-telegram-bot>=20.2",
]

[project.urls]
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.0"
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.0/changelog.html"
"Bug Tracker" = "https://github.com/apache/airflow/issues"
"Source Code" = "https://github.com/apache/airflow"
"Slack Chat" = "https://s.apache.org/airflow-slack"
"Twitter" = "https://x.com/ApacheAirflow"
"YouTube" = "https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/"

[project.entry-points."apache_airflow_provider"]
provider_info = "airflow.providers.telegram.get_provider_info:get_provider_info"

[tool.flit.module]
name = "airflow.providers.telegram"

[tool.pytest.ini_options]
ignore = "tests/system/"
Loading