Skip to content

Fix python version - #92

Closed
lormafe34 wants to merge 5 commits into
intra2net:masterfrom
lormafe34:fix-python-version
Closed

lormafe34 wants to merge 5 commits into
intra2net:masterfrom
lormafe34:fix-python-version

Conversation

@lormafe34

@lormafe34 lormafe34 commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Expanded the Linux CI test matrix to include Python 3.14, increasing automated test coverage across newer Python releases.
    • Updated CI artifact upload conditions to ensure artifacts are produced for Python 3.14 runs as well.

@coderabbitai

coderabbitai Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 906ebfde-89fd-42e5-8957-3c93f30eefc7

📥 Commits

Reviewing files that changed from the base of the PR and between cefbaba and a971527.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

📝 Walkthrough

Walkthrough

The Linux GitHub Actions workflow now tests Python 3.14 and includes that version in the Linux artifact upload condition.

Changes

CI workflow

Layer / File(s) Summary
Linux Python matrix and artifact handling
.github/workflows/ci.yml
Adds Python 3.14 to the linux-multi-python matrix and enables artifact uploads for Python 3.14.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested reviewers: pevogam

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and relevant to the main change, which updates supported Python versions in CI.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ci.yml:
- Around line 2-9: Restore the missing dependency installation and validation
steps in the build job after the Python setup, including installing Pillow and
PyQt5 and running the intended test/build commands. Ensure the job executes the
project’s established validation workflow rather than succeeding after checkout
and interpreter setup alone.
- Around line 6-9: Declare the supported Python minor version in
packaging/setup.py using python_requires and matching Python-version
classifiers, then update the setup-python step in the CI workflow to pin that
same minor version instead of 3.x. Keep the metadata and CI version values
consistent.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 42294c86-c40f-40ae-90ed-8870a0215784

📥 Commits

Reviewing files that changed from the base of the PR and between c38b1ad and 9ff5313.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml Outdated
@lormafe34
lormafe34 force-pushed the fix-python-version branch from 9ff5313 to 4bcb59e Compare July 29, 2026 11:00

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ci.yml:
- Around line 18-23: Update the artifact-upload condition around the pip matrix
job to match the current python-version value of '3.x', or introduce and use an
explicit upload flag for the pip entry. Ensure the wheel built by the pip
install_variant is uploaded while preserving the existing behavior for other
matrix entries.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 6d82ad48-2e74-44df-9560-f803604a0410

📥 Commits

Reviewing files that changed from the base of the PR and between 9ff5313 and 4bcb59e.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

Comment thread .github/workflows/ci.yml Outdated
@lormafe34
lormafe34 force-pushed the fix-python-version branch from 4bcb59e to 28dac4b Compare July 29, 2026 11:11

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ci.yml:
- Line 18: Remove Python 3.14 from the python-version matrix in the CI workflow,
leaving 3.10.8 through 3.13 enabled so the Linux pip job remains compatible with
its existing torch and torchvision pins.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c861df13-eb6e-45b0-bee2-09d8c21fb938

📥 Commits

Reviewing files that changed from the base of the PR and between 4bcb59e and cefbaba.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

Comment thread .github/workflows/ci.yml
strategy:
matrix:
python-version: [3.10.8, 3.11, 3.12, 3.13]
python-version: ['3.10.8', '3.11', '3.12', '3.13', '3.14']

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

python -m pip install --dry-run --only-binary=:all: \
  --python-version 3.14 \
  -r packaging/pip_requirements.txt

Repository: intra2net/guibot

Length of output: 191


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

echo "Files:"
git ls-files | rg '(^\.github/workflows/ci\.yml$|^packaging/pip_requirements\.txt$|requirements|pip_requirements)' || true

echo
echo "Workflow around Python matrix:"
sed -n '1,80p' .github/workflows/ci.yml || true

echo
echo "Packaging requirements:"
sed -n '1,200p' packaging/pip_requirements.txt || true

echo
echo "Platform files around requirements references:"
rg -n "pip_requirements|requirements|torchvision|torch|python_requires|Classifier.*Python" -S . --glob '!*.log' --glob '!*.pyc' || true

Repository: intra2net/guibot

Length of output: 10244


🌐 Web query:

PyTorch 2.6.0 supported Python versions

💡 Result:

PyTorch 2.6.0 supports Python versions 3.9 through 3.13 [1][2]. Additionally, it includes experimental support for Python 3.13t [1][2]. This compatibility reflects PyTorch's general policy of supporting minor versions of CPython that have not reached end-of-life status [1][2]. With the release of PyTorch 2.6.0 on January 29, 2025, the framework also added official support for using torch.compile with Python 3.13 [3][4].

Citations:


🌐 Web query:

torchvision 0.21.0 supported Python versions

💡 Result:

Torchvision 0.21.0 supports Python versions >=3.9 and <=3.12 [1][2][3]. It is compatible with PyTorch 2.6 [4].

Citations:


🌐 Web query:

pip PyTorch 2.6.0 Python 3.14 compatible

💡 Result:

PyTorch 2.6.0 is not compatible with Python 3.14 [1][2][3]. PyTorch 2.6.0 officially supports Python versions 3.9 through 3.13 (with experimental support for 3.13t) [1][2][3]. Python 3.14 was not supported by the PyTorch 2.6 release [1][2][3]. If you require Python 3.14 support, you must use a later version of PyTorch, such as PyTorch 2.9 or newer, which introduced compatibility for Python 3.14 [4][5].

Citations:


🌐 Web query:

PyTorch 2.9 Python 3.14 supported

💡 Result:

Yes, PyTorch 2.9 supports Python 3.14 [1][2]. In PyTorch 2.9, Python 3.14 (including the free-threaded 3.14t variant) was introduced with preview status [1][3]. While Python 3.14 compatibility is included, users should be aware of the following details: - Hardware Acceleration: There have been reports of limited availability for specific CUDA/GPU-enabled wheels for Python 3.14, with some configurations defaulting to CPU-only [4]. - Versioning: PyTorch 2.9 requires a minimum of Python 3.10 [1][2]. - Current Context: As of July 30, 2026, PyTorch has since progressed through several subsequent releases, with version 2.13.0 being the latest stable release [5][6]. Newer versions have expanded support for even more recent Python releases, such as Python 3.15 [5].

Citations:


🌐 Web query:

torchvision Python 3.14 support latest

💡 Result:

As of July 30, 2026, torchvision officially supports Python 3.14 [1][2][3]. Current support status and details: - Official Compatibility: According to official PyTorch project documentation and PyPI metadata, torchvision versions 0.25.0 and later explicitly support Python 3.14 (specifically ranging from >=3.10 up to <=3.14) [1][2][3]. - PyTorch Dependency: Since PyTorch 2.9.0, Python 3.14 and its free-threaded variant (3.14t) have been supported as part of the official releases [4][5]. - Considerations: While Python 3.14 is supported, users should verify their specific environment requirements. Some users have reported challenges with CUDA-enabled wheel availability for specific sub-configurations [6], and it is recommended to check the official PyTorch installation guide for your specific OS and hardware setup to ensure compatible binaries are available [7]. For the most stable experience, ensure you are using a torchvision version that corresponds to your installed PyTorch version [1][5]. You can verify the exact supported versions in your local environment by checking the torchvision metadata or the official PyTorch vision repository [1][3].

Citations:


🌐 Web query:

PyTorch 2.6.0 Python 3.13 release notes

💡 Result:

PyTorch 2.6.0 was released on January 29, 2025 [1][2]. A primary feature of this release is the official support for Python 3.13, including beta support for torch.compile in Python 3.13 environments [1][3]. Key points regarding Python 3.13 support in PyTorch 2.6.0: - torch.compile Compatibility: While torch.compile previously supported Python versions up to 3.12, PyTorch 2.6.0 introduced beta-level support for optimizing models with torch.compile in Python 3.13 [1][3]. - Free-Threading (3.13t): PyTorch 2.6.0 included experimental support for the Python 3.13t (free-threaded/no-GIL) build, though these binaries were initially made available specifically via download.pytorch.org rather than PyPI to signify their experimental status [4][5]. - General Support: PyTorch 2.6.0 officially supports Python versions from 3.9 up to 3.13 [5][6]. Users are advised that PyTorch typically follows a three-release-per-year cadence [7]. By the time of your inquiry in July 2026, later versions of PyTorch (such as 2.8, 2.9, and beyond) have been released, which have further evolved support for subsequent Python versions [8][9].

Citations:


🌐 Web query:

torchvision 0.20.0 Python 3.13 support

💡 Result:

Torchvision 0.20.0 does not officially support Python 3.13 [1][2][3][4]. Official documentation and compatibility tables indicate that Torchvision 0.20.0 is compatible with Python versions 3.9 through 3.12 [2][3][4]. Python 3.13 support was introduced in later versions of the library, beginning with Torchvision 0.21.0 [5]. Users attempting to use Torchvision 0.20.0 with Python 3.13 may encounter installation or runtime issues due to the lack of official support [5].

Citations:


Make the Python 3.14 pip matrix compatible before enabling it.

The Linux pip job installs torch==2.6.0 and torchvision==0.21.0 for Python ≥3.12, but both supported only through Python 3.13 / 3.12 respectively, so the 3.14 entry will fail during dependency installation. Constrain python-version: ['3.10.8', '3.11', '3.12', '3.13'], or update the ≥3.12 pins to a supported 3.14-compatible pair.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ci.yml at line 18, Remove Python 3.14 from the
python-version matrix in the CI workflow, leaving 3.10.8 through 3.13 enabled so
the Linux pip job remains compatible with its existing torch and torchvision
pins.

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.23%. Comparing base (beb244c) to head (a971527).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #92   +/-   ##
=======================================
  Coverage   89.23%   89.23%           
=======================================
  Files          17       17           
  Lines        4643     4643           
=======================================
  Hits         4143     4143           
  Misses        500      500           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lormafe34 lormafe34 closed this Jul 30, 2026
@lormafe34
lormafe34 deleted the fix-python-version branch August 9, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant