Skip to content

chore: Update pyproject.toml to use PEP 735 dependency groups #158

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 3 commits into from
Jun 6, 2025

Conversation

adamamer20
Copy link
Member

@adamamer20 adamamer20 commented Jun 6, 2025

This pull request introduces several updates to the build workflow and project configuration, focusing on improving dependency management, streamlining the build process, and ensuring compatibility with updated tools. The most significant changes include enhancements to the GitHub Actions workflow, updates to dependency versions in pyproject.toml, and restructuring of optional dependency groups.

Build Workflow Improvements:

  • Updated the GitHub Actions workflow in .github/workflows/build.yml to use the astral-sh/setup-uv action for installing uv, and restructured installation steps for better clarity and maintainability.
  • Enabled the fail-fast strategy in the matrix configuration and standardized the use of single quotes for Python version strings.

Dependency Updates:

  • Updated dependency versions in pyproject.toml, including polars (from >=1.0.0 to >=1.30.0), pyarrow (to >=20.0.0), and others in the test, docs, and dev groups.
  • Added requires-python = ">=3.11" to ensure compatibility with Python 3.11 and later.

Dependency Group Restructuring:

  • Reorganized optional dependency groups in pyproject.toml (e.g., test, docs, dev) to follow PEP 735 standards, improving clarity and maintainability. Groups now include explicit version constraints and references to other groups where applicable.

Hatch and uv Configuration:

  • Introduced a tool.hatch.envs section in pyproject.toml to define environments for testing, documentation, and development. Added a tool.uv section to configure uv as the default installer for speed and efficiency.

Minor Formatting Changes:

  • Reformatted the keywords array in pyproject.toml for better readability by consolidating entries into a single line.Enhance project metadata in pyproject.toml and uv.lock by updating dependency versions and improving version specifications for better compatibility and performance.

@adamamer20 adamamer20 enabled auto-merge (squash) June 6, 2025 10:03
@adamamer20 adamamer20 self-assigned this Jun 6, 2025
@adamamer20 adamamer20 requested a review from Copilot June 6, 2025 10:09
@adamamer20 adamamer20 added ci Changes to CI configuration files and scripts. dependency Updates or changes to project dependencies. labels Jun 6, 2025
Copy link

codecov bot commented Jun 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.46%. Comparing base (869e471) to head (0bc935c).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #158   +/-   ##
=======================================
  Coverage   91.46%   91.46%           
=======================================
  Files          11       11           
  Lines        1711     1711           
=======================================
  Hits         1565     1565           
  Misses        146      146           

☔ 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.

@adamamer20 adamamer20 added this to the 0.1.0-stable milestone Jun 6, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates dependency versions and enhances project metadata to improve compatibility and performance. Key changes include updated dependency version specifications in pyproject.toml, a refactoring of dependency groups with clear separation for test, docs, and dev, and improvements to the GitHub Actions workflow to leverage the latest uv installation method.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pyproject.toml Updates to dependency versions, dependency groups reorganization, and metadata tweaks
.github/workflows/build.yml Adjustments to workflow configuration including action version updates and step refinements
Comments suppressed due to low confidence (4)

pyproject.toml:33

  • The Python version requirement has been updated to >=3.11; please verify that the project documentation is also updated to reflect this change.
requires-python = ">=3.11"

pyproject.toml:36

  • The updated pyarrow version (>=20.0.0) marks a significant jump; ensure that all usages of its API across the project are compatible with potential breaking changes in this major release.
"pyarrow>=20.0.0"

.github/workflows/build.yml:52

  • [nitpick] While the step name clearly indicates its purpose, consider adding an inline comment explaining the rationale for splitting the installation into two commands for maintainability.
Install mesa-frames + dev dependencies

.github/workflows/build.yml:30

  • The change to lower-case boolean style (false) should be confirmed against the expected YAML schema for GitHub Actions to ensure consistency with other workflows.
fail-fast: false

@adamamer20 adamamer20 changed the title Update dependency versions and improve project metadata chore: Update dependency versions and improve project metadata Jun 6, 2025
@adamamer20 adamamer20 changed the title chore: Update dependency versions and improve project metadata chore: Update pyproject.toml to use PEP 735 dependency groups Jun 6, 2025
@adamamer20 adamamer20 disabled auto-merge June 6, 2025 10:21
@adamamer20 adamamer20 merged commit fe13b1d into main Jun 6, 2025
13 checks passed
@adamamer20 adamamer20 deleted the dependency-groups branch June 6, 2025 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Changes to CI configuration files and scripts. dependency Updates or changes to project dependencies.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant