Skip to content

Conversation

@maarten-k
Copy link
Contributor

@maarten-k maarten-k commented May 23, 2025

This should provide initial support for Python 3.13. The main issue was that conda-forge dependencies were not built for Python 3.13 (immutables and pulp). The immutables issue is solved, and for pulp, the pull request is ready conda-forge/pulp-feedstock#50

Also the pixi lock file needs to be updated (I assume this will be done automatically)

This should fix #3354

QC

  • [ x] The PR contains a test case for the changes or the changes are already covered by an existing test case.
  • The documentation (docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).

Summary by CodeRabbit

  • Chores
    • Updated testing environments to include Python 3.13 in the continuous integration workflow.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented May 23, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

📝 Walkthrough

Walkthrough

The continuous integration workflow configuration was updated to include Python 3.13 in the test matrix. This ensures that automated tests are now executed on Python 3.11, 3.12, and 3.13 across supported operating systems. No other logic or configuration changes were made.

Changes

File(s) Change Summary
.github/workflows/main.yml Added Python 3.13 ("py313") to the CI test matrix for all OS targets

Assessment against linked issues

Objective Addressed Explanation
Add/support Python 3.13 in CI test matrix (#3354)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • johanneskoester
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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
🪧 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @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.

@maarten-k maarten-k changed the title python 3.13 support feat: python 3.13 support May 23, 2025
@maarten-k maarten-k marked this pull request as draft May 23, 2025 09:40
@maarten-k
Copy link
Contributor Author

Since pulp is not supported yet, I converted to a draft

@maarten-k
Copy link
Contributor Author

PuLP works for python 3.13. The next tool on the list is CWLtool, which requires cheetah3 (https://github.com/conda-forge/cheetah3-feedstock/pulls).

@maarten-k
Copy link
Contributor Author

maarten-k commented Jun 4, 2025

Cheetah3 is done, now waiting on conda-forge/cwltool-feedstock#166 , which is depended on pydot.

@maarten-k
Copy link
Contributor Author

It looks like all tests succeeded except the CWL involved test, since I commented the dependency out because of no python 3.13 compatibility. I will wait until python 3.13 compatibly version of cwltool is released (there is a fix implemented ).

@corneliusroemer
Copy link
Contributor

I can't find an issue on cwltool regarding Python 3.13, is it already supported or should I make a signpost issue?

@maarten-k
Copy link
Contributor Author

I can't find an issue on cwltool regarding Python 3.13, is it already supported or should I make a signpost issue?

There is now in trunk/main of cwltool a patch to support 3.13, but there is not a release of cwltool with this patch. We are waiting on this. Maybe you can gently nudge a bit.

@corneliusroemer
Copy link
Contributor

corneliusroemer commented Jul 22, 2025

How important is cwltool for snakemake? Maybe it could be made an optional dependency?

I've made an issue to ask for a new release: common-workflow-language/cwltool#2136

@maarten-k
Copy link
Contributor Author

It is needed for testng. You can disable this test, but often it is forgotten to reenable which makes me uncomfortable.

@corneliusroemer
Copy link
Contributor

There's a new release already!

@maarten-k
Copy link
Contributor Author

https://github.com/conda-forge/cwltool-feedstock does not build py313 packages. A fresh pull request is being made as we speak by the conda-forge-admin bot.

@maarten-k maarten-k marked this pull request as ready for review July 23, 2025 23:11
@maarten-k maarten-k marked this pull request as draft July 23, 2025 23:11
@maarten-k
Copy link
Contributor Author

It looks like one test failed due to a network issue. first try to fix it is to rerun the tests.

@maarten-k maarten-k marked this pull request as ready for review July 24, 2025 00:16
@maarten-k
Copy link
Contributor Author

@johanneskoester Python 3.13 seems to work now. Can you merge this request?

@cademirch cademirch merged commit 429cff4 into snakemake:main Jul 25, 2025
151 of 152 checks passed
johanneskoester pushed a commit that referenced this pull request Jul 29, 2025
🤖 I have created a release *beep* *boop*
---


##
[9.9.0](v9.8.2...v9.9.0)
(2025-07-29)


### Features

* python 3.13 support
([#3602](#3602))
([429cff4](429cff4))


### Bug Fixes

* dag mermaid-js edges
(bug:[#3556](#3556))
([#3669](#3669))
([c6e2e71](c6e2e71))
* if asset is present and no sha256 provided assume pass
([#3685](#3685))
([7731175](7731175))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
@coderabbitai coderabbitai bot mentioned this pull request Sep 12, 2025
27 tasks
kjohnsen pushed a commit to kjohnsen/snakemake that referenced this pull request Dec 15, 2025
kjohnsen pushed a commit to kjohnsen/snakemake that referenced this pull request Dec 15, 2025
🤖 I have created a release *beep* *boop*
---


##
[9.9.0](snakemake/snakemake@v9.8.2...v9.9.0)
(2025-07-29)


### Features

* python 3.13 support
([snakemake#3602](snakemake#3602))
([429cff4](snakemake@429cff4))


### Bug Fixes

* dag mermaid-js edges
(bug:[snakemake#3556](snakemake#3556))
([snakemake#3669](snakemake#3669))
([c6e2e71](snakemake@c6e2e71))
* if asset is present and no sha256 provided assume pass
([snakemake#3685](snakemake#3685))
([7731175](snakemake@7731175))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

py3.13 support ?

4 participants