Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Fix all build-system/requires including transitive dependencies
Add a feature to fix all build-system/requires to make build
reproducibility works. The build-system requires are managed
automatically by the `upgrade-important-versions` prek hook.

This should not only provide reproducibility, but also it should
prevent cases where transient dependency upgrade might break
building sdist (for example as it happened with virtualenv 21
breaking hatchling with pypa/hatch#2193
  • Loading branch information
potiuk committed Feb 27, 2026
commit 9150121ad4c7985781afa8170a0273c489f0e53f
12 changes: 7 additions & 5 deletions .github/workflows/basic-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -329,16 +329,18 @@ jobs:
--hook-stage manual upgrade-important-versions || true
if: always()
env:
UPGRADE_PIP: "false"
UPGRADE_PYTHON: "false"
UPGRADE_FLIT: "false"
UPGRADE_GITPYTHON: "false"
UPGRADE_GOLANG: "false"
UPGRADE_NODE_LTS: "false"
UPGRADE_HATCH: "false"
UPGRADE_HATCHLING: "false"
UPGRADE_MYPY: "false"
UPGRADE_NODE_LTS: "false"
UPGRADE_PIP: "false"
UPGRADE_PYTHON: "false"
UPGRADE_PYYAML: "false"
UPGRADE_GITPYTHON: "false"
UPGRADE_RICH: "false"
UPGRADE_RUFF: "false"
UPGRADE_MYPY: "false"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Run automated upgrade for important versions minus uv (failing if needed)"
run: |
Expand Down
17 changes: 11 additions & 6 deletions airflow-core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@

[build-system]
requires = [
"GitPython==3.1.45",
"distlib==0.4.0",
"filelock==3.24.3",
"gitdb==4.0.12",
"hatchling==1.27.0",
"packaging==25.0",
"pathspec==0.12.1",
"GitPython==3.1.46",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"smmap==5.0.2",
"tomli==2.2.1; python_version < '3.11'",
"trove-classifiers==2025.9.11.17",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

Expand Down
14 changes: 13 additions & 1 deletion airflow-ctl-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@
# under the License.

[build-system]
requires = [ "hatchling==1.27.0" ]
requires = [
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

[project]
Expand Down
14 changes: 13 additions & 1 deletion airflow-ctl/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,19 @@ YouTube = "https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/"
airflowctl = "airflowctl.__main__:main"

[build-system]
requires = ["hatchling"]
requires = [
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

[tool.hatch.version]
Expand Down
14 changes: 13 additions & 1 deletion airflow-e2e-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@
# under the License.

[build-system]
requires = [ "hatchling==1.27.0" ]
requires = [
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

[project]
Expand Down
12 changes: 11 additions & 1 deletion chart/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,17 @@

[build-system]
requires = [
"hatchling==1.27.0",
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

Expand Down
14 changes: 13 additions & 1 deletion clients/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@
# under the License.

[build-system]
requires = ["hatchling==1.27.0"]
requires = [
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

[project]
Expand Down
2 changes: 1 addition & 1 deletion dev/breeze/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
[build-system]
requires = ["flit_core >=3.11,<4"]
requires = ["flit_core >=3.12.0,<4"]
build-backend = "flit_core.buildapi"

[project]
Expand Down
14 changes: 13 additions & 1 deletion dev/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@
# under the License.

[build-system]
requires = [ "hatchling==1.27.0" ]
requires = [
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

[project]
Expand Down
12 changes: 11 additions & 1 deletion docker-stack-docs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,17 @@

[build-system]
requires = [
"hatchling==1.27.0",
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

Expand Down
14 changes: 13 additions & 1 deletion docker-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@
# under the License.

[build-system]
requires = [ "hatchling==1.27.0" ]
requires = [
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

[project]
Expand Down
14 changes: 13 additions & 1 deletion helm-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@
# under the License.

[build-system]
requires = [ "hatchling==1.27.0" ]
requires = [
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

[project]
Expand Down
14 changes: 13 additions & 1 deletion kubernetes-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,19 @@
# specific language governing permissions and limitations
# under the License.
[build-system]
requires = [ "hatchling==1.27.0" ]
requires = [
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

[project]
Expand Down
12 changes: 11 additions & 1 deletion providers-summary-docs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,17 @@

[build-system]
requires = [
"hatchling==1.27.0",
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

Expand Down
18 changes: 10 additions & 8 deletions providers/edge3/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
[build-system]
requires = [
"GitPython==3.1.45",
"gitdb==4.0.12",
"hatchling==1.27.0",
"packaging==25.0",
"pathspec==0.12.1",
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"smmap==5.0.2",
"tomli==2.2.1; python_version < '3.11'",
"trove-classifiers==2025.9.11.17",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

Expand Down
18 changes: 10 additions & 8 deletions providers/fab/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@
# `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
[build-system]
requires = [
"GitPython==3.1.45",
"gitdb==4.0.12",
"hatchling==1.27.0",
"packaging==25.0",
"pathspec==0.12.1",
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"smmap==5.0.2",
"tomli==2.2.1; python_version < '3.11'",
"trove-classifiers==2025.9.11.17",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

Expand Down
18 changes: 10 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@

[build-system]
requires = [
"GitPython==3.1.45",
"gitdb==4.0.12",
"hatchling==1.27.0",
"packaging==25.0",
"pathspec==0.12.1",
"distlib==0.4.0",
"filelock==3.24.3",
"hatchling==1.29.0",
"packaging==26.0",
"pathspec==1.0.4",
"platformdirs==4.9.2",
"pluggy==1.6.0",
"smmap==5.0.2",
"tomli==2.2.1; python_version < '3.11'",
"trove-classifiers==2025.9.11.17",
"tomli==2.4.0; python_version < '3.11'",
"trove-classifiers==2026.1.14.14",
"typing-extensions==4.15.0; python_version < '3.11'",
"virtualenv==20.39.1",
]
build-backend = "hatchling.build"

Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/prek/check_extra_packages_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# /// script
# requires-python = ">=3.10,<3.11"
# dependencies = [
# "hatchling==1.27.0",
# "hatchling==1.29.0",
# "rich>=13.6.0",
# "tabulate>=0.9.0",
# ]
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/prek/check_shared_distributions_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def check_private_classifier(pyproject: dict) -> bool:

def check_build_system(pyproject: dict, shared_path: Path) -> bool:
build_system = pyproject.get("build-system", {})
if build_system == {"requires": ["hatchling"], "build-backend": "hatchling.build"}:
if build_system["build-backend"] == "hatchling.build":
console.print(
f" build-system is correct for [magenta]{shared_path.name}[/magenta] [bold green]OK[/bold green]"
)
Expand Down
Loading
Loading