From 8c80f9ce9efd4d7cbbe4fd4467e38d459200be35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Fri, 29 Aug 2025 15:27:36 +0200 Subject: [PATCH 1/4] tmp: bump versions to make it easier to check what we're about to do --- cli/pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/pyproject.toml b/cli/pyproject.toml index 4af98fd1..13e8346e 100644 --- a/cli/pyproject.toml +++ b/cli/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi" [project] name = "nonos-cli" -version = "0.1.0" +version = "0.1.1" description = "A companion command line interface for nonos" readme = "README.md" authors = [ diff --git a/uv.lock b/uv.lock index dc12878b..836d82cb 100644 --- a/uv.lock +++ b/uv.lock @@ -1300,7 +1300,7 @@ typecheck = [ [[package]] name = "nonos-cli" -version = "0.1.0" +version = "0.1.1" source = { editable = "cli" } dependencies = [ { name = "inifix" }, From 09ecb0639336bb8c0ad0650ca1f05a63391b6b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Fri, 29 Aug 2025 15:42:48 +0200 Subject: [PATCH 2/4] TST: implement both-way backward compatibility CI checks for both workspace packages --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9464ccfa..77dde7a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,9 @@ on: workflow_dispatch: permissions: {} +env: + # avoid compile-time SyntaxWarnings from dependencies (if any) + UV_COMPILE_BYTECODE: '1' jobs: tests: @@ -28,23 +31,41 @@ jobs: - '3.13' - '3.14' label: [''] + package: [--all-packages] include: - os: ubuntu-22.04 python-version: '3.10' - label: (oldest-deps-minimal) + label: oldest-deps-minimal_workspace + package: --all-packages install-args: --resolution=lowest - os: ubuntu-22.04 python-version: '3.10' - label: (oldest-deps-full) - install-args: --resolution=lowest --all-extras --compile-bytecode + label: oldest-deps-full_workspace + package: --all-packages + install-args: --resolution=lowest --all-extras + - os: ubuntu-22.04 + python-version: '3.10' + label: nonos[all]_oldest-deps-full-no_workspace + package: --package nonos + install-args: --resolution=lowest --all-extras --no-install-workspace + test-dir: tests + - os: ubuntu-22.04 + python-version: '3.10' + label: nonos-cli_oldest-deps-full_no-workspace + package: --package nonos-cli + install-args: --resolution=lowest --all-extras --no-install-workspace + test-dir: cli/tests - os: ubuntu-latest python-version: '3.14' + package: --all-packages install-args: --all-extras - label: (full) + label: full - os: macos-latest python-version: '3.14' + package: --all-packages - os: windows-latest python-version: '3.14' + package: --all-packages name: ${{ matrix.os }}-py${{ matrix.python-version }} ${{ matrix.label }} runs-on: ${{ matrix.os }} @@ -61,11 +82,11 @@ jobs: cache-suffix: ${{ matrix.label }} - name: Build - run: uv sync --all-packages --group covcheck ${{ matrix.install-args }} + run: uv sync ${{ matrix.package }} --group covcheck ${{ matrix.install-args }} - name: Run pytest shell: bash - run: uv run --no-sync coverage run --parallel-mode -m pytest --color=yes + run: uv run --no-sync coverage run --parallel-mode -m pytest --color=yes ${{ matrix.test-dir }} - name: Upload coverage data # only using reports from ubuntu because From b1b39e69567cc09e17d85ba08c8b57af352e276b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Sun, 1 Feb 2026 10:44:17 +0100 Subject: [PATCH 3/4] add dep groups to cli --- cli/pyproject.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cli/pyproject.toml b/cli/pyproject.toml index 13e8346e..cb84cf1d 100644 --- a/cli/pyproject.toml +++ b/cli/pyproject.toml @@ -45,5 +45,15 @@ all = [ "nonos[all]", ] +[dependency-groups] +test = [ + "pytest>=9.0.0", +] +covcheck = [ + {include-group = "test"}, + "coverage[toml]; python_full_version < '3.11'", + "coverage>=7.6.12", +] + [tool.uv.sources] nonos = { workspace = true } From 17dfacc14414e1e5f0bd15ce6411b96c4d5df1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Sun, 1 Feb 2026 10:49:08 +0100 Subject: [PATCH 4/4] remove breaking option --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77dde7a6..906b841c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,13 +47,13 @@ jobs: python-version: '3.10' label: nonos[all]_oldest-deps-full-no_workspace package: --package nonos - install-args: --resolution=lowest --all-extras --no-install-workspace + install-args: --resolution=lowest --all-extras test-dir: tests - os: ubuntu-22.04 python-version: '3.10' label: nonos-cli_oldest-deps-full_no-workspace package: --package nonos-cli - install-args: --resolution=lowest --all-extras --no-install-workspace + install-args: --resolution=lowest --all-extras test-dir: cli/tests - os: ubuntu-latest python-version: '3.14'