Skip to content

[SCSB-237] build Stable ABI3 wheels with Py_LIMITED_API#555

Draft
zacharyburnett wants to merge 7 commits into
spacetelescope:mainfrom
zacharyburnett:py_limited_api
Draft

[SCSB-237] build Stable ABI3 wheels with Py_LIMITED_API#555
zacharyburnett wants to merge 7 commits into
spacetelescope:mainfrom
zacharyburnett:py_limited_api

Conversation

@zacharyburnett

@zacharyburnett zacharyburnett commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Resolves SCSB-237

building against the Limited API means we can build just ONE wheel (in this case for Python 3.11) and it should work on all future Python versions: https://docs.python.org/3/c-api/stable.html#limited-c-api

Tasks

  • update or add relevant tests
  • update relevant docstrings and / or docs/ page
  • Does this PR change any API used downstream? (if not, label with no-changelog-entry-needed)
    • write news fragment(s) in changes/: echo "changed something" > changes/<PR#>.<changetype>.rst (see changelog readme for instructions)
    • if your change breaks existing functionality, also add a changes/<PR#>.breaking.rst news fragment
  • run regression tests with this branch installed ("git+https://github.com/<fork>/stcal@<branch>")

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.82%. Comparing base (f84085b) to head (95b2bff).
⚠️ Report is 15 commits behind head on main.

Files with missing lines Patch % Lines
setup.py 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #555      +/-   ##
==========================================
- Coverage   91.88%   91.82%   -0.07%     
==========================================
  Files          63       63              
  Lines        8913     8933      +20     
==========================================
+ Hits         8190     8203      +13     
- Misses        723      730       +7     

☔ View full report in Codecov by Harness.
📢 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.

@zacharyburnett zacharyburnett changed the title py_limited_api build against Py_LIMITED_API Jun 30, 2026
@zacharyburnett zacharyburnett changed the title build against Py_LIMITED_API build Stable ABI3 wheels with Py_LIMITED_API Jul 1, 2026
@zacharyburnett zacharyburnett changed the title build Stable ABI3 wheels with Py_LIMITED_API [SCSB-237] build Stable ABI3 wheels with Py_LIMITED_API Jul 6, 2026
@zacharyburnett
zacharyburnett force-pushed the py_limited_api branch 2 times, most recently from 9ff3392 to 09f09b5 Compare July 7, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant