Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add python3.13 support #103

Merged
merged 1 commit into from
Dec 19, 2024
Merged

build: add python3.13 support #103

merged 1 commit into from
Dec 19, 2024

Conversation

vishwa2710
Copy link
Contributor

@vishwa2710 vishwa2710 commented Dec 19, 2024

Summary by CodeRabbit

  • New Features

    • Added support for Python version 3.13 in the build configuration.
  • Bug Fixes

    • Updated the version constraint for the open-space-toolkit-core dependency to allow for improvements in version 4.1.

@vishwa2710 vishwa2710 requested a review from apaletta3 December 19, 2024 18:39
@vishwa2710 vishwa2710 self-assigned this Dec 19, 2024
Copy link

coderabbitai bot commented Dec 19, 2024

Caution

Review failed

The head commit changed during the review from 54d7cc8 to ec7b3c3.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
bindings/python/CMakeLists.txt (1)

188-188: Consider adding test requirements for Python 3.13

Since this adds support for a new Python version, ensure that:

  1. CI pipelines are updated to test Python 3.13 builds
  2. Test coverage includes Python 3.13-specific scenarios

Would you like help in setting up test requirements or CI configurations for Python 3.13?

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5167615 and ec7b3c3.

📒 Files selected for processing (2)
  • bindings/python/CMakeLists.txt (1 hunks)
  • bindings/python/requirements.txt (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • bindings/python/requirements.txt

@@ -185,7 +185,7 @@ FIND_PACKAGE (pybind11 2.12.0 REQUIRED)
### Python

# Python versions to build for and support
SET (PYTHON_SEARCH_VERSIONS 3.9 3.10 3.11 3.12 CACHE STRING "Versions of Python bindings to build.")
SET (PYTHON_SEARCH_VERSIONS 3.9 3.10 3.11 3.12 3.13 CACHE STRING "Versions of Python bindings to build.")
Copy link

Choose a reason for hiding this comment

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

💡 Codebase verification

Based on the search results and the earlier GitHub issue search that revealed an open issue "Python v3.13 related things to look into" (#4870), I can now generate the final response:

Python 3.13 support needs further investigation

The addition of Python 3.13 to PYTHON_SEARCH_VERSIONS may be premature as:

  1. There's an open issue in pybind11 (#4870) specifically about Python 3.13 compatibility
  2. Python 3.13 support is still being investigated by the pybind11 team
  3. The CMake configuration will safely skip Python 3.13 if it's not found, but enabling it now might create expectations of support

Recommendation:

  • Consider waiting for official Python 3.13 support in pybind11 before adding it to PYTHON_SEARCH_VERSIONS
  • Alternatively, add a comment indicating that Python 3.13 support is experimental
🔗 Analysis chain

Verify pybind11 compatibility with Python 3.13

The addition of Python 3.13 support aligns with the PR objective. However, since Python 3.13 is relatively new, please ensure:

  1. The project's pybind11 version (2.12.0) supports Python 3.13
  2. All binding features work correctly with Python 3.13

Let's verify pybind11's Python 3.13 support:


Let me try another approach to verify pybind11's Python 3.13 support by checking their source code directly:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check pybind11's Python version support in their repository

# Check if pybind11 2.12.0 mentions Python 3.13 support in their changelog
gh api repos/pybind/pybind11/contents/docs/changelog.rst | jq -r '.content' | base64 -d | grep -A 5 "v2.12.0"

# Check for any open/closed issues related to Python 3.13 support
gh api graphql -f query='
{
  search(query: "repo:pybind/pybind11 Python 3.13", type: ISSUE, first: 5) {
    nodes {
      ... on Issue {
        title
        state
        url
      }
    }
  }
}'

Length of output: 982


Script:

#!/bin/bash
# Check pybind11's Python version support in their CMake configuration
fd CMakeLists.txt | xargs rg -A 5 "PYTHON_VERSION|Python version"

# Check if there are any Python version checks or limitations in pybind11 headers
fd "\.h$" | xargs rg -A 5 "PY_VERSION|Python 3.13"

# Look for any Python version related tests
fd "test" | xargs rg -A 5 "Python 3.13|py3.13"

Length of output: 7903

@vishwa2710 vishwa2710 merged commit 1f6a6ac into main Dec 19, 2024
14 checks passed
@vishwa2710 vishwa2710 deleted the build/python3.13 branch December 19, 2024 19:33
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.47%. Comparing base (5167615) to head (ec7b3c3).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #103   +/-   ##
=======================================
  Coverage   69.47%   69.47%           
=======================================
  Files           7        7           
  Lines         498      498           
=======================================
  Hits          346      346           
  Misses        152      152           

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

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