Skip to content

feat(build): Add Python 3.13 support and resolve build warnings#5

Merged
munlicode merged 6 commits intomainfrom
python3.13
Oct 4, 2025
Merged

feat(build): Add Python 3.13 support and resolve build warnings#5
munlicode merged 6 commits intomainfrom
python3.13

Conversation

@munlicode
Copy link
Copy Markdown
Owner

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-compare C++ 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 in pyproject.toml to their latest versions.

Related Issue

Closes #3 , Closes #4

How to Test

  1. Review the changes in ci.yml and the C++ source files.
  2. Observe that all checks for this PR pass successfully, especially the new Python 3.13 job.

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.
@munlicode munlicode merged commit 807e747 into main Oct 4, 2025
4 checks passed
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.

Build Failure on Python 3.13+ due to missing std:: namespace for C++ types Fix signed/unsigned warnings

1 participant