From d82cac38951c2a212dad36dac280c46e819cd5f5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 28 Mar 2026 12:55:02 +0100 Subject: [PATCH 1/5] chore(ci): pin "build" and use the pinned version in CI --- .github/workflows/ci.yml | 2 +- requirements-dev.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 074d677c9..96c456a45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -337,7 +337,7 @@ jobs: - name: Build distribution run: | - uv pip install -U build + uv pip install $(grep -E "^build==" requirements-dev.txt) python -m build --sdist --wheel - name: Upload artifacts 📦 diff --git a/requirements-dev.txt b/requirements-dev.txt index bc7b94918..109b73487 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -30,3 +30,4 @@ types-requests==2.32.4.20260107 types-tabulate==0.10.0.20260308 types-python-dateutil==2.9.0.20260305 pip-audit==2.10.0 +build==1.4.2 From 626e7199424b95e4ec5d428b51ff08466485c27a Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 28 Mar 2026 12:56:24 +0100 Subject: [PATCH 2/5] chore(ci): don't upgrade wheel it'll be auto-installed in the build environment --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96c456a45..3618b4b5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,6 @@ jobs: - name: Installation (python) run: | - uv pip install --upgrade wheel uv pip install -r requirements-dev.txt uv pip install -e ft_client/ uv pip install -e . @@ -267,7 +266,6 @@ jobs: - name: Installation - *nix run: | - uv pip install --upgrade wheel uv pip install -r requirements-dev.txt uv pip install -e ft_client/ uv pip install -e . From 0982b26d6b9c354dade2525ee602fe526bbeb8fc Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 28 Mar 2026 13:02:03 +0100 Subject: [PATCH 3/5] chore(ci): pin pyyaml explicitly --- .github/workflows/ci.yml | 10 ++++++++-- requirements-dev.txt | 3 +++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3618b4b5d..c7a5842db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -180,11 +180,17 @@ jobs: - name: Set up Python 🐍 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 #v6.2.0 with: - python-version: "3.12" + python-version: "3.13" + + - name: Install uv + uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 + with: + activate-environment: true + python-version: "3.13" - name: pre-commit dependencies run: | - pip install pyaml + uv pip install $(grep -E "^pyyaml==" requirements-dev.txt) python build_helpers/pre_commit_update.py pre-commit: diff --git a/requirements-dev.txt b/requirements-dev.txt index 109b73487..850cf4578 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -30,4 +30,7 @@ types-requests==2.32.4.20260107 types-tabulate==0.10.0.20260308 types-python-dateutil==2.9.0.20260305 pip-audit==2.10.0 +# For build step in CI build==1.4.2 +# For pre-commit-update check +pyyaml==6.0.3 From f169f99a5f0515da99fd1d61f733218639f24dc2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 28 Mar 2026 13:03:24 +0100 Subject: [PATCH 4/5] chore(ci): pre-commit-update pin pre-commit --- .github/workflows/pre-commit-update.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit-update.yml b/.github/workflows/pre-commit-update.yml index 88c320f26..723a47d2a 100644 --- a/.github/workflows/pre-commit-update.yml +++ b/.github/workflows/pre-commit-update.yml @@ -27,11 +27,16 @@ jobs: - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: "3.12" + python-version: "3.13" + - name: Install uv + uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1 + with: + activate-environment: true + python-version: "3.13" - name: Install pre-commit - run: pip install pre-commit + run: uv pip install $(grep -E "^pre-commit==" requirements-dev.txt) - name: Run auto-update run: pre-commit autoupdate From e0d55bf5d36a9061950bfddf2aea67b13c45b0ac Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 28 Mar 2026 13:04:42 +0100 Subject: [PATCH 5/5] chore(ci): install pinned ccxt and orjson versions --- .github/workflows/binance-lev-tier-update.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/binance-lev-tier-update.yml b/.github/workflows/binance-lev-tier-update.yml index ee8682a09..cce07573c 100644 --- a/.github/workflows/binance-lev-tier-update.yml +++ b/.github/workflows/binance-lev-tier-update.yml @@ -36,7 +36,7 @@ jobs: python-version: "3.14" - name: Install ccxt - run: uv pip install ccxt orjson + run: uv pip install $(grep -E "^ccxt==" requirements.txt) $(grep -E "^orjson==" requirements.txt) - name: Run leverage tier update env: @@ -55,7 +55,7 @@ jobs: Dependencies branch: update/binance-leverage-tiers title: Update Binance Leverage Tiers - commit-message: "chore: update pre-commit hooks" + commit-message: "chore: update binance leverage tiers" committer: Freqtrade Bot <154552126+freqtrade-bot@users.noreply.github.com> author: Freqtrade Bot <154552126+freqtrade-bot@users.noreply.github.com> body: Update binance leverage tiers.