From fca5de9c88b57a5e0b042a33662e3c7a648b689f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 31 Oct 2025 10:35:03 +0000 Subject: [PATCH 1/4] pip: bump the pip-packages group across 1 directory with 2 updates Bumps the pip-packages group with 2 updates in the / directory: [potodo](https://git.afpy.org/AFPy/potodo) and [sphinx-lint](https://github.com/sphinx-contrib/sphinx-lint). Updates `potodo` from 0.25 to 0.31 Updates `sphinx-lint` from 1.0.0 to 1.0.1 - [Release notes](https://github.com/sphinx-contrib/sphinx-lint/releases) - [Commits](https://github.com/sphinx-contrib/sphinx-lint/compare/v1.0.0...v1.0.1) --- updated-dependencies: - dependency-name: potodo dependency-version: '0.31' dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip-packages - dependency-name: sphinx-lint dependency-version: 1.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: pip-packages ... Signed-off-by: dependabot[bot] --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index b0e506ca0..04f125b84 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ polib==1.2.0 pomerge==0.1.4 -potodo==0.25 +potodo==0.31 powrap==1.0.2 sphinx-intl==2.3.2 -sphinx-lint==1.0.0 +sphinx-lint==1.0.1 From 71912244a40e025973b1b7175d31d05132771166 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Sat, 1 Nov 2025 04:52:35 -0300 Subject: [PATCH 2/4] Replace scan_path with PoDirectory for stats --- scripts/stats.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/stats.py b/scripts/stats.py index ec2e7e285..81fe1aed5 100755 --- a/scripts/stats.py +++ b/scripts/stats.py @@ -10,7 +10,7 @@ from datetime import datetime, timezone from pathlib import Path -from potodo.potodo import scan_path +from potodo.po_file import PoDirectory logging.basicConfig(level=logging.INFO) @@ -29,7 +29,8 @@ def main() -> None: if not list(pofiles_path.rglob("*.po")): raise FileNotFoundError(f"No PO files found in {pofiles_path}") - stats = scan_path(pofiles_path, no_cache=True, hide_reserved=False, api_url="") + stats = PoDirectory(pofiles_path, use_cache=False) + stats.scan() stats_data = { "completion": str(round(stats.completion, 2)) + "%", From 2fd245853d92137cce6592b6c4038013155a1e2a Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Sat, 1 Nov 2025 06:16:01 -0300 Subject: [PATCH 3/4] Remove gettext installation step --- .github/workflows/sync.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index b428fc10a..3e0913151 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -75,9 +75,6 @@ jobs: cd /usr/local/bin curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash -s -- v$TX_CLI_VERSION - - name: Install APT dependencies - run: sudo apt update -y && sudo apt install gettext -y - - name: Install Python dependencies run: | pip install -r requirements.txt From 95997de68e1f7f1320328f442b8139ec02d6f1a6 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Sat, 1 Nov 2025 06:33:50 -0300 Subject: [PATCH 4/4] Re-add gettext installation required by powrap --- .github/workflows/sync.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 3e0913151..b428fc10a 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -75,6 +75,9 @@ jobs: cd /usr/local/bin curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash -s -- v$TX_CLI_VERSION + - name: Install APT dependencies + run: sudo apt update -y && sudo apt install gettext -y + - name: Install Python dependencies run: | pip install -r requirements.txt