From 628195c9e7b031075d4d41dce019033ebbef8d2a Mon Sep 17 00:00:00 2001 From: Ahmed Khalid Date: Thu, 10 Sep 2026 14:42:17 +0500 Subject: [PATCH] chore: require the upcoming Tutor major version on main The main branch of this plugin is developed against Tutor's main branch, which now carries the version of the upcoming Open edX release. Requiring the released Tutor version here makes pip install that release over the Tutor under development, and it stops the plugin from ever declaring what it actually targets. The test workflow installs Tutor from its main branch before the plugin, because the requirement above has no PyPI release to resolve against until that release is cut. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/test.yml | 7 +++++++ pyproject.toml | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 32cc317..d16acd2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,14 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install dependencies + env: + TARGET_BRANCH: ${{ github.base_ref || github.ref_name }} run: | + # On main this plugin requires the upcoming Tutor major version, which has + # no PyPI release yet: install Tutor from its main branch first. + if [ "$TARGET_BRANCH" = "main" ]; then + pip install "tutor[dev] @ git+https://github.com/overhangio/tutor@main" + fi pip install .[dev] - name: Test lint, types, and format run: make test \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 4cd3418..0b63fe7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,14 +28,14 @@ classifiers = [ "Programming Language :: Python :: 3.14", ] dependencies = [ - "tutor>=22.0.0,<23.0.0" + "tutor>=23.0.0,<24.0.0" ] # Version will be dynamically loaded from __about__.py dynamic = ["version"] [project.optional-dependencies] dev = [ - "tutor[dev]>=22.0.0,<23.0.0", + "tutor[dev]>=23.0.0,<24.0.0", "ruff", ]