Skip to content

Conversation

@feanil
Copy link
Contributor

@feanil feanil commented Dec 26, 2025

This replaces everything in setup.py with the equivalent pyproject.toml tooling. It still uses setuptools under the hood.

  • build: Add a basic pyproject.toml file.
  • build: Move all the static data to pyproject.toml
  • build: Move dynamic settings to pyproject.toml
  • build: Correct some config urls and add some missing comments.

Along with CI, I also tested this by installing the package and comparing the list of files that were packaged in the built package.

This is the minimal amount needed to start using this file in the
project.
Moving the necessary dynamic settings from setup.py to pyproject.toml

A few settings were not migrated because their values are the default
when a pyproject.toml file is used and a few were not moved because they
were deprecated.

Full list that I used for reference is here: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#setuptools-specific-configuration

The constraint.txt reference is not PEP508 compliant so is not supported
for the files that are read in by setuptools.  So I moved the constraint
into the makefile call for base.in so it could still serve as the source
of truth for dependencies for this project.
Replace with pyproject.toml references as appropriate.
@codecov
Copy link

codecov bot commented Dec 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.20%. Comparing base (2aebbad) to head (8a032ec).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #15   +/-   ##
=======================================
  Coverage   88.20%   88.20%           
=======================================
  Files          13       13           
  Lines         407      407           
  Branches       16       16           
=======================================
  Hits          359      359           
  Misses         40       40           
  Partials        8        8           
Flag Coverage Δ
unittests 88.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@feanil feanil merged commit 6035bdf into main Dec 26, 2025
8 checks passed
@feanil feanil deleted the feanil/add_pyproject_file branch December 26, 2025 19:49
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.

2 participants