Skip to content

Allow opting in to limited API builds with EXTENSION_HELPERS_PY_LIMITED_API#110

Merged
astrofrog merged 3 commits into
astropy:mainfrom
astrofrog:limited-api-env
Jun 9, 2025
Merged

Allow opting in to limited API builds with EXTENSION_HELPERS_PY_LIMITED_API#110
astrofrog merged 3 commits into
astropy:mainfrom
astrofrog:limited-api-env

Conversation

@astrofrog
Copy link
Copy Markdown
Member

@neutrinoceros - just FYI, since you suggested this! :)

Also cc @lpsinger

@astrofrog astrofrog requested a review from Cadair June 9, 2025 11:11
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 9, 2025

Codecov Report

❌ Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 58.31%. Comparing base (132e5fb) to head (41fedc8).
⚠️ Report is 43 commits behind head on main.

Files with missing lines Patch % Lines
extension_helpers/_utils.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #110      +/-   ##
==========================================
+ Coverage   57.45%   58.31%   +0.85%     
==========================================
  Files           4        4              
  Lines         369      379      +10     
==========================================
+ Hits          212      221       +9     
- Misses        157      158       +1     

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

Copy link
Copy Markdown
Member

@Cadair Cadair left a comment

Choose a reason for hiding this comment

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

Looks sensible from a phone review.

@astrofrog astrofrog merged commit 4e5b4b9 into astropy:main Jun 9, 2025
19 checks passed
@astrofrog astrofrog added the enhancement New feature or request label Jun 9, 2025
Copy link
Copy Markdown
Contributor

@neutrinoceros neutrinoceros left a comment

Choose a reason for hiding this comment

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

post mortem, nit (feel free to ignore)

Comment on lines +477 to +480
if sys.version_info < (3, 11):
pytest.skip(
"This test requires setuptools>=65.4 which is only available for Python 3.11 and later"
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: could be a @pytest.mark.skipif

Copy link
Copy Markdown
Contributor

@neutrinoceros neutrinoceros Jul 11, 2025

Choose a reason for hiding this comment

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

Coming back to see I'm not sure this comment is correct actually; setuptools 80.9 appears to still support Python 3.9, so how would 65.4 require 3.11 ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Strange, when I tried running this on Python 3.10 older versions of setuptools would get installed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

fixed in #117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants