Make pyproject.toml + hatch the sole build source of truth (PEP 517/518)#455
Merged
tnixon merged 4 commits intov0.2-integrationfrom Mar 3, 2026
Merged
Make pyproject.toml + hatch the sole build source of truth (PEP 517/518)#455tnixon merged 4 commits intov0.2-integrationfrom
tnixon merged 4 commits intov0.2-integrationfrom
Conversation
- Fix package name from "Tempo" to "dbl-tempo" to match PyPI - Add [tool.hatch.build.targets.wheel] with packages = ["tempo"] so all sub-packages (intervals, joins, etc.) are included in wheel builds - Add [tool.hatch.build.targets.sdist] with explicit include/exclude - Replace setup.py-based build (python setup.py clean bdist_wheel) with hatch build in both pyproject.toml and tox.ini - Remove setup.py entirely — hatchling handles all packaging per PEP 517 - Remove semver validation from version.py (was silently swallowed anyway) - Add [tool.black] config and formatBlack lint script from master Fixes #453 (sub-packages missing from built distributions) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
virtualenv 21.0.0 (released 2026-02-25) removed the `propose_interpreters` attribute that hatch relies on, breaking environment creation. Pin virtualenv<21 in CI install steps. See: pypa/hatch#2193 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Mar 3, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v0.2-integration #455 +/- ##
====================================================
- Coverage 85.46% 77.76% -7.71%
====================================================
Files 6 30 +24
Lines 757 2802 +2045
Branches 156 468 +312
====================================================
+ Hits 647 2179 +1532
- Misses 92 461 +369
- Partials 18 162 +144 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #453 (sub-packages missing from built distributions)
Changes
Linked issues
Resolves #..
Functionality
...............Tests