Skip to content

Migrate py313 build#1

Closed
ValerioL29 wants to merge 3 commits intomainfrom
migrate-to-py313
Closed

Migrate py313 build#1
ValerioL29 wants to merge 3 commits intomainfrom
migrate-to-py313

Conversation

@ValerioL29
Copy link
Collaborator

Description

This PR tries to migrate voyager with py3.13 and 3.14 build

Python

change pyproject toml and build workflows

@ValerioL29 ValerioL29 self-assigned this Jan 27, 2026
Copilot AI review requested due to automatic review settings January 27, 2026 08:47
@ValerioL29 ValerioL29 added the 🥑 feature New feature or request label Jan 27, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Python packaging/build configuration to target newer Python versions (notably 3.13), alongside a few test formatting cleanups.

Changes:

  • Update Python package metadata (version, classifiers, homepage) in pyproject.toml.
  • Modify GitHub Actions workflow to run Python CI primarily on 3.13 and adjust build/benchmark Python versions.
  • Minor formatting changes in Python tests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
python/tests/test_e4m3.py Adjusts an f-string formatting in an error message.
python/tests/test_distances.py Re-formats an assertion for clarity.
python/pyproject.toml Updates package metadata (version/homepage) and adds Python 3.13 classifier.
.github/workflows/all.yml Refocuses CI to Python 3.13 and comments out Java/C++ jobs and Maven publishing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +279 to +286
# lint-java:
# runs-on: "ubuntu-latest"
# continue-on-error: true
# name: Lint Java
# defaults:
# run:
# working-directory: java
# steps:
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

Java/C++ lint/tests and the Maven publishing workflow have been removed from the active jobs: section and left as a large commented-out block. Given the repo includes java/ and cpp/ and the README describes Java bindings, this effectively drops CI coverage and disables Maven releases. Prefer re-enabling these jobs (or moving them into a separate workflow) and deleting the commented-out code to avoid an unmaintainable workflow file.

Copilot uses AI. Check for mistakes.
[project]
name = "voyager"
version = "2.0.10"
version = "2.1.1"
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

The project version is bumped to 2.1.1 as part of this PR, but the PR description only mentions migrating Python 3.13/3.14 builds. If this isn’t meant to be a release/version change, keep the version unchanged; otherwise update the PR description/changelog/release process accordingly.

Copilot uses AI. Check for mistakes.

[project.urls]
Homepage = "https://github.com/spotify/voyager"
Homepage = "https://github.com/troph-team/voyager"
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

Homepage was changed to https://github.com/troph-team/voyager. This is a user-facing metadata change and seems unrelated to the stated goal (migrating Python builds). If the package is still published/maintained under the original project URL, revert this; otherwise call out the ownership/repo change explicitly in the PR description/release notes.

Copilot uses AI. Check for mistakes.
Comment on lines +21 to +22
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

The classifiers still advertise support for Python 3.7, but requires-python is >=3.8. This metadata is inconsistent and can mislead users/installers; remove the 3.7 classifier (or lower requires-python if 3.7 is actually supported).

Copilot uses AI. Check for mistakes.
Comment on lines 23 to +26
matrix:
python-version:
- '3.8'
- '3.13'
os: ['ubuntu-latest', windows-latest, macos-latest]
- "3.13"
os: ["ubuntu-latest", windows-latest, macos-latest]
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

The PR description mentions migrating to Python 3.13 and 3.14 builds, but the test matrix only runs on 3.13. Either add 3.14 to the matrix (if intended) or update the PR description; also consider keeping the minimum supported version (per requires-python >=3.8) in CI to catch compatibility issues early.

Copilot uses AI. Check for mistakes.
@ValerioL29 ValerioL29 closed this Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🥑 feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants