This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new ffbba9efd6 Fix case where pip requiremet version starts with !=
(#35645)
ffbba9efd6 is described below
commit ffbba9efd6fd5f897586eea3025c7989b867fabf
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Nov 15 12:16:55 2023 +0100
Fix case where pip requiremet version starts with != (#35645)
Github provider has package starting with `!=` and the documentation
generation had a bug (for a long time) to split the package versions
wrongly in this case.
---
airflow/providers/github/__init__.py | 2 +-
.../src/airflow_breeze/prepare_providers/provider_documentation.py | 2 +-
docs/apache-airflow-providers-github/index.rst | 4 +---
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/airflow/providers/github/__init__.py
b/airflow/providers/github/__init__.py
index 5a0cc95031..57b34f528f 100644
--- a/airflow/providers/github/__init__.py
+++ b/airflow/providers/github/__init__.py
@@ -39,5 +39,5 @@ if
packaging.version.parse(packaging.version.parse(airflow_version).base_version
"2.5.0"
):
raise RuntimeError(
- f"The package `apache-airflow-providers-github:{__version__}` requires
Apache Airflow 2.5.0+"
+ f"The package `apache-airflow-providers-github:{__version__}` needs
Apache Airflow 2.5.0+"
)
diff --git
a/dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py
b/dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py
index fc35eacc06..6842d1c4fd 100644
--- a/dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py
+++ b/dev/breeze/src/airflow_breeze/prepare_providers/provider_documentation.py
@@ -566,7 +566,7 @@ def _convert_pip_requirements_to_table(requirements:
Iterable[str], markdown: bo
headers = ["PIP package", "Version required"]
table_data = []
for dependency in requirements:
- found = re.match(r"(^[^<=>~]*)([^<=>~]?.*)$", dependency)
+ found = re.match(r"(^[^<=>~!]*)([^<=>~!]?.*)$", dependency)
if found:
package = found.group(1)
version_required = found.group(2)
diff --git a/docs/apache-airflow-providers-github/index.rst
b/docs/apache-airflow-providers-github/index.rst
index 1daef86625..61dc835efb 100644
--- a/docs/apache-airflow-providers-github/index.rst
+++ b/docs/apache-airflow-providers-github/index.rst
@@ -68,8 +68,6 @@
Detailed list of commits <commits>
.. THE REMAINDER OF THE FILE IS AUTOMATICALLY GENERATED. IT WILL BE
OVERWRITTEN AT RELEASE TIME!
-
-
.. toctree::
:hidden:
:maxdepth: 1
@@ -108,5 +106,5 @@ The minimum Apache Airflow version supported by this
provider package is ``2.5.0
PIP package Version required
================== ==================
``apache-airflow`` ``>=2.5.0``
-``PyGithub!`` ``=1.58``
+``PyGithub`` ``!=1.58``
================== ==================