feat(build): Add Python 3.13 support and resolve build warnings#5
Merged
feat(build): Add Python 3.13 support and resolve build warnings#5
Conversation
This commit resolves numerous C++ compiler warnings (-Wsign-compare) by ensuring that loop counters and comparison variables use consistent types (size_t). This modernizes the codebase, improves safety, and is necessary for building with modern compilers (e.g., for Python 3.13+). Fixes #3
This commit refactors the monolithic `.github/workflows/release.yml` into three distinct, single-purpose workflows. This separation of concerns makes the development and release process safer, clearer, and easier to manage by aligning with modern CI/CD best practices. The new workflow is as follows: ### 1. `ci.yml` (Continuous Integration) - **Trigger:** Runs on every push and pull request to the `main` branch. - **Purpose:** Provides fast feedback by running `pytest` against the source code. This acts as a quality gate to ensure the `main` branch is always stable and tests are passing. ### 2. `publish-test.yml` (Test Deployment) - **Trigger:** Manual (`workflow_dispatch`) via the GitHub Actions UI. - **Purpose:** Serves as a "dress rehearsal" for a release. It builds all package distributables (wheels and sdist) and uploads them to **TestPyPI** for final verification before an official release. ### 3. `release.yml` (Official Release) - **Trigger:** Pushing a new version tag (e.g., `v0.11.0`). - **Purpose:** Automates the entire release process. It builds all packages, publishes them to the **real PyPI**, and creates a corresponding GitHub Release with all the assets attached.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request prepares the package for Python 3.13 and improves the overall build process.
The main changes include:
fix(build): Resolved all-Wsign-compareC++ warnings to ensure compatibility with modern compilers.feat(ci): Added Python 3.13 to the CI matrix to officially support and test against it.chore(deps): Updated project dependencies inpyproject.tomlto their latest versions.Related Issue
Closes #3 , Closes #4
How to Test
ci.ymland the C++ source files.