diff --git a/README.md b/README.md index 94c6e19c04e68..fd04baae1f867 100644 --- a/README.md +++ b/README.md @@ -170,15 +170,15 @@ them to the appropriate format and workflow that your tool requires. ```bash -pip install 'apache-airflow==2.11.0' \ - --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.11.0/constraints-3.9.txt" +pip install 'apache-airflow==2.11.1' \ + --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.11.1/constraints-3.10.txt" ``` 2. Installing with extras (i.e., postgres, google) ```bash -pip install 'apache-airflow[postgres,google]==2.8.3' \ - --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.11.0/constraints-3.9.txt" +pip install 'apache-airflow[postgres,google]==2.11.1' \ + --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.11.1/constraints-3.10.txt" ``` For information on installing provider packages, check diff --git a/generated/PYPI_README.md b/generated/PYPI_README.md index 15e532f98e39e..102f70862a7a6 100644 --- a/generated/PYPI_README.md +++ b/generated/PYPI_README.md @@ -123,15 +123,15 @@ them to the appropriate format and workflow that your tool requires. ```bash -pip install 'apache-airflow==2.11.0' \ - --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.11.0/constraints-3.9.txt" +pip install 'apache-airflow==2.11.1' \ + --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.11.1/constraints-3.10.txt" ``` 2. Installing with extras (i.e., postgres, google) ```bash -pip install 'apache-airflow[postgres,google]==2.8.3' \ - --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.11.0/constraints-3.9.txt" +pip install 'apache-airflow[postgres,google]==2.11.1' \ + --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.11.1/constraints-3.10.txt" ``` For information on installing provider packages, check diff --git a/hatch_build.py b/hatch_build.py index 0685f4e4632a8..f3d879a458939 100644 --- a/hatch_build.py +++ b/hatch_build.py @@ -43,7 +43,7 @@ "common.compat", "common.io", "common.sql", - "fab>=1.5.4,<2.0", + "fab>=1.5.4rc0,<2.0", "ftp", "http", "imap", @@ -576,13 +576,15 @@ def get_provider_requirement(provider_spec: str) -> str: current_airflow_version = Version(airflow_version_match.group(1)) provider_id, min_version = provider_spec.split(">=") - min_version = min_version.split(",")[0] + version_split = min_version.split(",") + min_version = version_split[0] provider_version = Version(min_version) if provider_version.is_prerelease and not current_airflow_version.is_prerelease: # strip pre-release version from the pre-installed provider's version when we are preparing # the official package min_version = str(provider_version.base_version) - return f"apache-airflow-providers-{provider_id.replace('.', '-')}>={min_version}" + extra_version = "" if len(version_split) == 1 else "," + ",".join(version_split[1:]) + return f"apache-airflow-providers-{provider_id.replace('.', '-')}>={min_version}{extra_version}" else: return f"apache-airflow-providers-{provider_spec.replace('.', '-')}"