Airflow Workflow component
Development
By default, Airflow runs in a container, started from the repository root with Docker Compose:
docker compose up -d
(or make up). This is the default Airflow used in development and e2e tests, available at
http://localhost:8080.
Local development
Optionally run a local standalone Airflow on the host (in the dev-container) from the repository root. This is mainly for testing Airflow version upgrades and as a backup:
make airflow-start
After execution, the Airflow logs will appear in the terminal. Passwords are pre-written
deterministically to .airflow/simple_auth_manager_passwords.json.generated from the values of .env.
Run make airflow-clean airflow-start to pick up changes to those passwords.
Once started, Airflow can be accessed via browser at http://localhost:8080.
The PORTS tab in the terminal panel also shows which port the Airflow webserver is running on, and VS Code provides "Open in browser" buttons.
If necessary, code changes can be updated for Airflow use immediately by running the command airflow dags reserialize
or make airflow-reserialize from the root of the repository.
Airflow also automatically updates DAG file changes periodically.
Developing DAGs locally
If you want to run the load dem DAG, you can place test data inside the repo root test_data folder, which is automatically mounted to the processing container.
DAG development practices
- When accessing any database, use
@task.dockersince database urls work only inside containers
Production image
Containerfile has two targets that produce one image for every Airflow component:
| Target | Package source | Usage |
|---|---|---|
nightly |
Local repository source | Latest development image, tagged as latest and built from the main branch. |
prod |
Published PyPI package | Release images. Build requires PINTA_DAGS_VERSION and PINTA_DAGS_CONSTRAINT. |
Both add the celery, fab and pandas Airflow extras. nightly uses the versions pinned in uv.lock
and prod uses the constraints of the published pinta-dags release.
Build the latest development image:
podman build --target nightly -f components/dags/Containerfile -t pinta-airflow:latest .
Build a release image:
podman build --target prod -f components/dags/Containerfile \
--build-arg PINTA_DAGS_VERSION=<version> \
--build-arg PINTA_DAGS_CONSTRAINT=<constraints-file-in-context> \
--build-arg AIRFLOW_VERSION=3.3.1 \
-t pinta-airflow:<version>-airflow3.3.1 .
- The entrypoint is
tini -- airflow. The component is chosen at run time. (api-server,scheduler,dag-processor,triggerer,celery worker). It does not rundb migrateor seed connections. - The image works with any uid and only writes to
AIRFLOW_HOME(/opt/airflow), the log directory and/tmp. - Tag convention:
<dags version>-airflow<airflow version>, because Airflow can be updated without releasing the DAG package. - The worker needs access to a container engine socket to run
@task.dockertasks. - Smoke test:
podman run --rm <image> dags list-import-errors.
Updating Airflow
numpy and scipy are pinned in the DAG component because Airflow's upstream constraints file already fixes versions for the whole dependency set, but those two packages need to be kept under explicit control in this repository so the workspace can resolve the Airflow extra consistently across components. Pulling them out of the generated constraints file and pinning them in pyproject.toml makes upgrades repeatable and avoids resolution conflicts when uv add is run.
- Update the Airflow version in
components/dags/pyproject.tomlmanually. - Update required AIRFLOW_VERSION and PYTHON_VERSION in Makefile
- Fetch and normalize the matching constraints file with
make airflow-prepare-constraints.- The helper downloads the upstream Apache Airflow constraints file for the selected Python version, removes the
numpyandscipypins, and writes a local modified copy undercomponents/dags/.airflow/constraints/. - The helper prints the upstream
numpyandscipyversions. Update thenumpyandscipypins incomponents/dags/pyproject.tomlto match.
- The helper downloads the upstream Apache Airflow constraints file for the selected Python version, removes the
- Use the new
AIRFLOW_VERSIONwhen building the production image. - If the backend Airflow client needs to stay in sync, update the pin in
components/backend/pyproject.tomlas well. - Run
uv add --optional airflow "apache-airflow[celery,docker,fab,pandas,postgres,standard]==<version>" --constraint <path-to-modified-constraints>fromcomponents/dags. Thecelery,fabandpandasextras are used by the production image, so they must be locked together with the providers of the constraints file. - Run tests and test standalone usage; remove warning filters or other workarounds required by the old version if necessary.
Special Cases
If there is a need to update dependencies defined by the Airflow constraint file—for example, due to a vulnerability, a bug, or a new feature in a specific provider package:
- Upgrade the single package in the lock file, e.g.
uv lock --upgrade-package <package>, and add a comment explaining why it differs from the upstream constraints file if necessary. - Test sufficiently.
- Release the update.
NOTE: The production image is built from the constraints of a published pinta-dags release, so a changed package
only reaches an environment after a new release has been made and verified.
Metadata
Release files for pinta-dags 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pinta_dags-0.1.1.tar.gz | 29.1 kB | Without provenance | Details for pinta_dags-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pinta_dags-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pinta_dags-0.1.1-py3-none-any.whl |
Total release size: 70.8 kB
Release files / pinta_dags-0.1.1.tar.gz
| Download URL | pinta_dags-0.1.1.tar.gz |
|---|---|
| Size | 29.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fae8de35f40b4f3012d9797848933ac4edc412fef2a240e454a169aa7cd0cc9
|
|
BLAKE2b-256 checksum How to use checksums |
1429b572096f4d676789e3070c3438b8979958ed65f22781a7a09d5309c4bb19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pinta_dags-0.1.1-py3-none-any.whl
| Download URL | pinta_dags-0.1.1-py3-none-any.whl |
|---|---|
| Size | 41.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e25cd8b31542f2fb5d98667d895d0d6cbce6ed5b0291ab713bf03b97445ed5a3
|
|
BLAKE2b-256 checksum How to use checksums |
afccb8b8b0d064200b80ec794bc5929a5e2276260579a7b9b4220f2929237470
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for pinta-dags 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.