Skip to content

⬆️ update Python support to include version 3.13 and remove 3.8 #94

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

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

techouse
Copy link
Owner

This pull request includes several updates to the project configuration files to drop support for Python 3.8 and add support for Python 3.13. The changes affect multiple files, including the GitHub workflows, project metadata, and testing configurations.

Key changes include:

GitHub Workflows:

Documentation:

  • Updated CONTRIBUTING.md to reflect the supported Python versions, removing Python 3.8 and adding Python 3.13.

Licensing:

  • Updated the LICENSE file to change the copyright year from 2024 to 2025.

Project Metadata:

  • Updated pyproject.toml to change the required Python version to 3.9 or higher and added Python 3.13 to classifiers and target versions. [1] [2] [3] [4]

Testing Configuration:

  • Updated tox.ini to remove Python 3.8 and add Python 3.13 to the testing environments.

@techouse techouse added the dependencies Pull requests that update a dependency file label Mar 12, 2025
@techouse techouse self-assigned this Mar 12, 2025
Copy link

coderabbitai bot commented Mar 12, 2025

Walkthrough

This pull request updates several configuration files to replace Python 3.8 with Python 3.13. The changes affect the GitHub Actions workflow used for testing, the project’s Python version requirements in both the pyproject and tox configuration files, and the supported Python versions listed in the CONTRIBUTING document. Additionally, adjustments to database configuration flags were made in the workflow, and the LICENSE file has been updated with the new copyright year.

Changes

File(s) Change Summary
.github/workflows/test.yml, CONTRIBUTING.md, pyproject.toml, tox.ini Removed all Python 3.8 configurations and related database settings; added Python 3.13 versions and adjusted environment mappings, classifiers, target versions, and documentation to reflect the new support.
LICENSE Updated the copyright year from 2024 to 2025.

Sequence Diagram(s)

sequenceDiagram
    participant Dev as Developer
    participant Repo as GitHub Repository
    participant CI as CI Workflow
    participant Env as Testing Environment

    Dev->>Repo: Push commit with updated configurations
    Repo->>CI: Trigger workflow
    CI->>Env: Execute tests using Python 3.13 & updated DB settings
    Env-->>CI: Return test results
    CI-->>Repo: Update build status
Loading

Poem

I’m a jolly rabbit with a skip in my stride,
Hopping through configs with joy I can’t hide.
Python 3.8 is gone, 3.13 now leads the way,
My databases prance in a fresh, new ballet.
With carrots and code, I celebrate this bright day!


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between f496b5a and 4d869f9.

📒 Files selected for processing (5)
  • .github/workflows/test.yml (15 hunks)
  • CONTRIBUTING.md (1 hunks)
  • LICENSE (1 hunks)
  • pyproject.toml (4 hunks)
  • tox.ini (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (21)
  • GitHub Check: Test (python3.13, mariadb:11.4, 0, false, 3.13)
  • GitHub Check: Test (python3.11, mariadb:10.4, 0, false, 3.11)
  • GitHub Check: Test (python3.12, mariadb:10.6, 0, false, 3.12)
  • GitHub Check: Test (python3.13, mariadb:10.2, 0, false, 3.13)
  • GitHub Check: Test (python3.9, mariadb:10.6, 0, false, 3.9)
  • GitHub Check: Test (python3.13, mariadb:10.3, 0, false, 3.13)
  • GitHub Check: Test (python3.10, mariadb:10.5, 0, false, 3.10)
  • GitHub Check: Test (python3.9, mariadb:10.3, 0, false, 3.9)
  • GitHub Check: Test (python3.11, mariadb:10.2, 0, false, 3.11)
  • GitHub Check: Test (python3.11, mariadb:10.1, 1, false, 3.11)
  • GitHub Check: Test (python3.9, mariadb:10.2, 0, false, 3.9)
  • GitHub Check: Test (python3.13, mariadb:10.1, 1, false, 3.13)
  • GitHub Check: Test (python3.10, mariadb:10.1, 1, false, 3.10)
  • GitHub Check: Test (python3.12, mariadb:10.1, 1, false, 3.12)
  • GitHub Check: Test (python3.12, mariadb:10.0, 1, false, 3.12)
  • GitHub Check: Test (python3.11, mariadb:10.0, 1, false, 3.11)
  • GitHub Check: Test (python3.10, mariadb:10.0, 1, false, 3.10)
  • GitHub Check: Test (python3.12, mariadb:5.5, 1, false, 3.12)
  • GitHub Check: Test (python3.9, mariadb:10.0, 1, false, 3.9)
  • GitHub Check: Test (python3.10, mariadb:5.5, 1, false, 3.10)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (9)
CONTRIBUTING.md (1)

16-16: Python Version Support Update in Documentation
The supported Python versions have been revised to list 3.9, 3.10, 3.11, 3.12, and 3.13. This change correctly removes the outdated Python 3.8 reference. Please ensure that any related documentation or links elsewhere in the project are updated accordingly.

LICENSE (1)

3-3: Updated Copyright Year
The copyright year has been updated to 2025, matching the current release cycle.

tox.ini (2)

8-8: Addition of Python 3.13 in envlist
Python 3.13 has been successfully added to the testing environment list. Confirm that all obsolete references to Python 3.8 have been fully removed from this file.


20-20: Mapping for Python 3.13 in [gh-actions] Section
The Python 3.13 mapping now replaces the previous configuration for Python 3.8. Ensure that these changes are consistent with the updates in other configuration files.

.github/workflows/test.yml (1)

63-68: Comprehensive Update for Python 3.13 in Workflow Matrix
All new Python 3.13 entries across the workflow matrix for various database configurations have been integrated correctly. Please verify that the parameters such as legacy_db, experimental, and py are set as intended for each environment, and that there are no lingering references to Python 3.8.

Also applies to: 93-98, 123-128, 153-158, 183-188, 243-248, 273-278, 303-308, 333-338, 363-368, 393-398, 423-428, 453-458, 483-488

pyproject.toml (4)

10-10: Update Minimum Python Requirement
The requires-python field has been updated from ">=3.8" to ">=3.9", which aligns with the new support policy.


36-36: Updated Classifiers for Python Versions
The classifiers now exclude Python 3.8 and include Python 3.13. This update ensures that the project metadata accurately reflects the supported versions.


80-81: Adjusting Black's Target Version
The target-version for Black has been updated to include "py313" and remove "py38". This ensures code formatting aligns with the new Python versions.


125-125: Mypy Python Version Update
The mypy configuration now targets Python version "3.9", which is in line with the updated minimum requirement.


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.
    • 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.
  • @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

codecov bot commented Mar 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.85%. Comparing base (f496b5a) to head (4d869f9).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #94   +/-   ##
=======================================
  Coverage   85.85%   85.85%           
=======================================
  Files           8        8           
  Lines         629      629           
=======================================
  Hits          540      540           
  Misses         89       89           

☔ View full report in Codecov by Sentry.
📢 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.

@techouse techouse merged commit df40a21 into master Mar 13, 2025
82 checks passed
@techouse techouse deleted the chore/drop-python-3.8-support branch March 13, 2025 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant