Update CircleCI for pyproject.toml-based install#3225
Merged
MMathisLab merged 6 commits intomainfrom Mar 5, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the project’s packaging/CI configuration to work with the uv-based packaging changes (per #3184), removing reliance on requirements.txt and updating CircleCI to a newer Python orb.
Changes:
- Migrate packaging metadata/dependencies into
pyproject.tomland simplifysetup.pyto a shim. - Remove
requirements.txtand update GitHub Actions to install the package from source instead. - Update CircleCI to
circleci/[email protected]and install/run via uv with caching.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
setup.py |
Replaced setuptools configuration with a minimal setup() shim to rely on pyproject.toml. |
requirements.txt |
Removed legacy requirements file. |
pyproject.toml |
Added PEP 621 project metadata/dependencies and setuptools/uv tooling config. |
.pre-commit-config.yaml |
Added TOML/pyproject formatting & validation hooks. |
.github/workflows/python-package.yml |
Switch dependency install from requirements.txt to editable install of the project. |
.circleci/config.yml |
Update to newer Python orb + uv-based install/run with caching. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Bump CircleCI python orb to v4.0.0 and migrate the job to the orb-provided executor (python/default:3.10) instead of a custom docker image. Replace legacy cache/install steps with the orb's python/install-packages (pkg-manager: uv), changing the command to run via `uv run python testscript_cli.py`. No workflow changes otherwise, checks remain the same.
Enhance CircleCI build to use the Python orb with uv for dependency installs and to keep uv's cache. Adds restore_cache (using uv.lock and pyproject.toml checksums), python/install-packages with pkg-manager: uv (optional --locked commented), a cache prune step for CI, and save_cache for ~/.cache/uv. Also adds a comment allowing Python tag '3.12' and relies on uv to handle installing deps before running tests to speed up and stabilize CI installs.
Co-authored-by: Copilot <[email protected]>
8ea3213 to
3dd8aee
Compare
CircleCi requires auth/permissions to rerun jobs, using this as workaround
MMathisLab
approved these changes
Mar 5, 2026
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.
Motivation
Following #3184, the removal of requirements.txt will affect CircleCI jobs, as they currently run an old python Orb version that can only use requirements.txt.
Intended Procedure
Changes
The following introduces :