Skip to content
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

Update toolchain #249

Merged
merged 5 commits into from
Oct 6, 2024
Merged

Update toolchain #249

merged 5 commits into from
Oct 6, 2024

Conversation

nickstenning
Copy link
Owner

This PR modernises Honcho's packaging and CI toolchain. Specifically:

  • Use pyproject.toml with setuptools_scm for version generation.
  • Build the wheel + sdist in CI and test against the installed wheel.
  • Drop support for CPython 3.7
  • Drop support for PyPy 3.7, 3.8
  • Test against CPython 3.11, 3.12, 3.13
  • Test against PyPy 3.9, 3.10
  • Use importlib to find entrypoints, not pkg_resources (fixes 3.12 compat #247)

@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.41%. Comparing base (9eeb9b4) to head (118b0bb).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #249      +/-   ##
==========================================
- Coverage   67.71%   67.41%   -0.30%     
==========================================
  Files          12       14       +2     
  Lines         607      626      +19     
  Branches       88       87       -1     
==========================================
+ Hits          411      422      +11     
- Misses        187      193       +6     
- Partials        9       11       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This switches to using a pyproject.toml with setuptools_scm to package
Honcho. With this configuration, MANIFEST.in is no longer needed, as
setuptools_scm automatically finds SCM-tracked package data files.
- Use build-and-inspect-python-package to build the wheel/sdist
- Run tox against packaged code
- Drop support for CPython 3.7
- Drop support for PyPy 3.7, 3.8
- Test against CPython 3.11, 3.12, 3.13
- Test against PyPy 3.9, 3.10
pkg_resources requires setuptools and importlib has been available since
Python 3.8.

Affects #236, #247, #248.
@nickstenning nickstenning merged commit 1958036 into main Oct 6, 2024
10 of 11 checks passed
@nickstenning nickstenning deleted the update-toolchain branch October 6, 2024 12: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.

3.12 compat
2 participants