Skip to content
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions generated/PYPI_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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('.', '-')}"

Expand Down
Loading