Skip to content

Commit 383aa74

Browse files
authored
fix(airflow): rename constraints file (#594)
* fix(airflow): rename constraints file * feat(airflow): add helper script for downloading the constraint files * fix(airflow): us upstream constraints file * fix(airflow): markdown lints * fix(airflow): shellcheck lints * fix(airflow): shellcheck lints
1 parent 19ea13b commit 383aa74

File tree

3 files changed

+327
-293
lines changed

3 files changed

+327
-293
lines changed

airflow/README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Airflow constraints
22

3-
The constraints file can be downloaded from <https://raw.githubusercontent.com/apache/airflow/constraints-2.7.2/constraints-3.9.txt> where `2.7.2` is the airflow version and `3.9` is the python version.
3+
To add a new version of Airflow (or python) you can download the applicable constraints file from upstream.
44

5-
Due to the build in the docker image, the python version must be specified without the `dot`. E.g. `3.9` must be renamed to `39` in the constraints file name.
5+
_The script is safe to run from outside of this directory. The file will be downloaded to the same folder that the
6+
script resides. This example will assume you are running from the repository root directory._
7+
8+
```sh
9+
# Use default Python version (specified in the script):
10+
./airflow/download_constraints.sh 2.8.3
11+
12+
# Use a specific Python version:
13+
./airflow/download_constraints.sh 2.8.3 3.11
14+
```
15+
16+
Example output:
17+
18+
```output
19+
Downloading constraints file for Airflow 2.8.3 (Python 3.9)
20+
Successfully pulled new constraints file: constraints-2.8.3-python39.txt
21+
```

0 commit comments

Comments
 (0)