Release Process & CI/CD
Relevant source files
The following files were used as context for generating this wiki page:
Introduction
The abx-dl project utilizes a structured release process and CI/CD pipeline to ensure technical stability and automated delivery of the CLI tool. The process is centered around versioning in pyproject.toml, Git tagging for release triggers, and GitHub Actions for automated testing and PyPI publishing.
The system is designed to handle complex dependency management across multiple plugin types (pip, npm, brew, etc.) and architectures, ensuring that the tool remains cross-platform and reliable.
CI/CD Workflows
The project maintains two primary GitHub Actions workflows to handle quality assurance and distribution.
Automated Testing (test.yml)
This workflow is triggered on every Pull Request and push to the main branch. It executes parallel tests for the various plugins available in the ArchiveBox ecosystem. Developers are encouraged to run these tests locally using uv run pytest before pushing changes.
Sources: CLAUDE.md:46-47, tests/test_cli.py:53-63
Publishing (publish.yml)
The publishing workflow is responsible for distributing the package to PyPI. It is triggered when a new Git tag is pushed to the repository. The project uses the "trusted publisher" configuration on PyPI to handle authentication securely without manual intervention.
Sources: CLAUDE.md:41, 48
Build and Test Flow
The following diagram illustrates the lifecycle of a code change from local development to a public release.
The workflow ensures that only verified code reaches the production package repository.
Sources: CLAUDE.md:31-48, README.md:143-150
Release Process
Rolling a new release for abx-dl involves a specific sequence of manual and automated steps to maintain version consistency across the ArchiveBox ecosystem.
1. Version Management
The version is manually bumped in the pyproject.toml file. The project follows semantic versioning (e.g., 1.10.21). This version string is used by importlib.metadata within the CLI to report the current version to users via abx-dl --version.
Sources: pyproject.toml:3, CLAUDE.md:33-35, abx_dl/cli.py:1003-1007
2. Tagging and Pushing
Once the version is bumped, the developer commits the change, creates an annotated Git tag, and pushes both to the origin.
| Step | Command |
|---|---|
| Commit | git commit -m "Bump to vX.Y.Z" |
| Tag | git tag -a vX.Y.Z -m "vX.Y.Z" |
| Push | git push origin vX.Y.Z |
Sources: CLAUDE.md:37-41
3. Release Creation
A GitHub Release is created using the GitHub CLI (gh). This provides a central location for release notes and asset downloads.
gh release create vX.Y.Z --title "vX.Y.Z" --notes "Release notes here"
Sources: CLAUDE.md:43-45
Build System Configuration
The project uses pdm-backend as the build system and uv for dependency management. The pyproject.toml file defines how the package is constructed and what files are included or excluded from the final distribution.
| Field | Value / Configuration |
|---|---|
| Build Backend | pdm.backend |
| Includes | abx_dl/ |
| Excludes | .DS_Store, tests/, tests/** |
| Dependencies | rich-click, abxbus, abx-pkg, abx-plugins, etc. |
Sources: pyproject.toml:79-95, pyproject.toml:44-55
Binary Dependency Integration
A critical part of the CI and installation process is the management of external binaries. The abx-dl tool lazily installs missing dependencies (like chrome, wget, yt-dlp) during runtime, but the release process ensures that the providers for these binaries are correctly mapped.
This installation pipeline is verified during CI via the abx-dl install command, which runs the InstallEvent logic without executing a full crawl.
Sources: README.md:143-165, TODOs.md:16-30, abx_dl/cli.py:843-855
Conclusion
The abx-dl release and CI/CD architecture prioritize automation and environment isolation. By separating user configuration (config.env) from runtime-derived data (derived.env) and utilizing GitHub Actions for standardized testing and distribution, the project maintains a robust path from development to deployment.