Skip to content

Commit

Permalink
Improve provider documentation and README structure (#32125)
Browse files Browse the repository at this point in the history
The changelong in provider docs has been part of the README which
became part of the page displayed in `PyPI` as well as the main
page displayed when you want to see provider documentation. This
was fine when the changelog was short, but with providers history
growing, the main page became longer and longer and the generated
index on the right side (from the changelog) became less and less
usable, and changelog itself became far less discoverable.

This change introduces another approach. Changelog gets its
own, separate page and it has quite a few positive consequences:

1) we can add separate "Changelog" URL in PyPI so that it is
   prominently visible at the TOC in PyPI URLS
2) we can link to the changelog easily from stable page - without
   worrrying which version we link to
3) the README file is part of the package so fixing the changelog
   in case of a doc-only mistake will not fix the PyPI page (it
   will only be fixed in future releases)
4) the link tree on the right side of the provider index page becomes back
   usable
5) the left-side TOD  on the provider's index page containes two
   prominent links that were missing: Home (back to the index provider
   page), Changelog, and Security - all under "Basics" link
6) The TOC is not repeated in the index page itself, making the content
   immediately visible rather than having to scroll trough the long
   TOC (in some cases like amazon the TOC was reallly long).
  • Loading branch information
potiuk committed Jun 27, 2023
1 parent 58784ad commit 09d4718
Show file tree
Hide file tree
Showing 344 changed files with 6,611 additions and 652 deletions.
6 changes: 3 additions & 3 deletions airflow/providers/airbyte/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-airbyte``
--------------------------------------------------


3.3.1
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/alibaba/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-alibaba``
--------------------------------------------------

2.4.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/amazon/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-amazon``
-------------------------------------------------

8.2.0
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/beam/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-beam``
------------------------------------------------------

5.1.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/cassandra/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-cassandra``
-----------------------------------------------------------

3.2.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/drill/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-drill``
-------------------------------------------------------


2.4.1
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/druid/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-druid``
-------------------------------------------------------

3.4.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/flink/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-flink``
-------------------------------------------------------

1.1.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/hdfs/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-hdfs``
------------------------------------------------------

4.1.0
-----
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/hive/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-hive``
------------------------------------------------------


6.1.1
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/impala/CHANGELOG.rst
Expand Up @@ -16,12 +16,12 @@
under the License.
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-impala``
--------------------------------------------------------

1.1.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/kafka/CHANGELOG.rst
Expand Up @@ -16,12 +16,12 @@
under the License.
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-kafka``
-------------------------------------------------------

1.1.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/kylin/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-kylin``
-------------------------------------------------------


3.2.1
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/livy/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-livy``
------------------------------------------------------

3.5.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/pig/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-pig``
-----------------------------------------------------

4.1.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/pinot/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-pinot``
-------------------------------------------------------


4.1.1
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/spark/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-spark``
-------------------------------------------------------

4.1.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/apache/sqoop/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-apache-sqoop``
-------------------------------------------------------


3.2.1
Expand Down
2 changes: 1 addition & 1 deletion airflow/providers/apprise/CHANGELOG.rst
Expand Up @@ -17,6 +17,6 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
17 changes: 17 additions & 0 deletions airflow/providers/apprise/__init__.py
Expand Up @@ -22,3 +22,20 @@
# IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE
# `PROVIDER__INIT__PY_TEMPLATE.py.jinja2` IN the `dev/provider_packages` DIRECTORY
#
from __future__ import annotations

import packaging.version

__all__ = ["__version__"]

__version__ = "1.0.0"

try:
from airflow import __version__ as airflow_version
except ImportError:
from airflow.version import version as airflow_version

if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"):
raise RuntimeError(
f"The package `apache-airflow-providers-apprise:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501
)
6 changes: 3 additions & 3 deletions airflow/providers/arangodb/CHANGELOG.rst
Expand Up @@ -18,12 +18,12 @@
under the License.
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-arangodb``
---------------------------------------------------

2.2.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/asana/CHANGELOG.rst
Expand Up @@ -16,12 +16,12 @@
under the License.
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-asana``
------------------------------------------------

2.2.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/atlassian/jira/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-atlassian-jira``
---------------------------------------------------------

2.1.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/celery/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-celery``
-------------------------------------------------

3.2.1
.....
Expand Down
6 changes: 3 additions & 3 deletions airflow/providers/cloudant/CHANGELOG.rst
Expand Up @@ -17,12 +17,12 @@
.. NOTE TO CONTRIBUTORS:
Please, only add notes to the Changelog just below the "Changelog" header when there are some breaking changes
Please, only add notes to the Changelog just below the "Changelog for ..." header when there are some breaking changes
and you want to add an explanation to the users on how they are supposed to deal with them.
The changelog is updated and maintained semi-automatically by release manager.
Changelog
---------
Changelog for ``apache-airflow-providers-cloudant``
---------------------------------------------------

3.2.1
.....
Expand Down

0 comments on commit 09d4718

Please sign in to comment.