-
Notifications
You must be signed in to change notification settings - Fork 22
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
build: Use hatchling as build backend #475
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #475 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 22 22
Lines 2093 2093
Branches 346 346
=========================================
Hits 2093 2093 ☔ View full report in Codecov by Sentry. |
Thanks for taking care of this! The CI issues are from a matplotlib update, I'll take care of that separately. edit: see #476 |
5323f88
to
5d42eef
Compare
5cd0096
to
c372840
Compare
@alexander-held This is ready for review again. I think the easiest spot check for you to do on this is if you checkout this branch to then do rm -rf dist && pipx run build --installer uv . && python -m tarfile --list dist/cabinetry-*.tar.gz && python -m zipfile --list dist/cabinetry-*.whl as that will show you the contents of the sdist and wheel getting built. You can compare that to the wheels currently on PyPI $ rm -rf cabinetry*.whl && python -m pip download --no-cache-dir --no-deps cabinetry && python -m zipfile --list cabinetry-*.whl Doing that:rm -rf dist && pipx run build --installer uv . && python -m tarfile --list dist/cabinetry-*.tar.gz && python -m zipfile --list dist/cabinetry-*.whl
$ rm -rf cabinetry*.whl && python -m pip download --no-cache-dir --no-deps cabinetry && python -m zipfile --list cabinetry-*.whl
|
c372840
to
139acac
Compare
@alexander-held bumping this, but we can probably both ignore this until next Friday once we've got most of the IRIS-HEP 2024 retreat finished. :) |
139acac
to
a04d069
Compare
81cd337
to
a04d069
Compare
* Migrate to using hatchling as the build backend. - Include all build metadata in pyproject.toml. - Remove setup.py, setup.cfg, and MANIFEST.in. - Remove package_data as not needed. * Add .flake8 as flake8 won't support pyproject.toml.
* Remove check-manifest install in CI workflow. * Remove MANIFEST check step from CI.
a04d069
to
cd0865e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for taking care of this migration to hatchling! This all looks good.
Migrate to using hatchling as the build backend.
Add .flake8 as flake8 won't support pyproject.toml.
ci: Remove MANIFEST check from CI
(Marked as draft as wrote from Munich airport and need to check some things)