Skip to content

Make pyproject.toml + hatch the sole build source of truth (PEP 517/518)#455

Merged
tnixon merged 4 commits intov0.2-integrationfrom
fix/build-pep-compliance
Mar 3, 2026
Merged

Make pyproject.toml + hatch the sole build source of truth (PEP 517/518)#455
tnixon merged 4 commits intov0.2-integrationfrom
fix/build-pep-compliance

Conversation

@R7L208
Copy link
Collaborator

@R7L208 R7L208 commented Mar 2, 2026

  • 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)

Changes

Linked issues

Resolves #..

Functionality

  • added relevant user documentation
  • added a new Class method
  • modified existing Class method: ...
  • added a new function
  • modified existing function: ...
  • added a new test
  • modified existing test: ...
  • added a new example
  • modified existing example: ...
  • added a new utility
  • modified existing utility: ...

Tests

  • manually tested
  • added unit tests
  • added integration tests
  • verified on staging environment (screenshot attached)

R7L208 and others added 4 commits March 2, 2026 15:57
- 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>
@codecov
Copy link

codecov bot commented Mar 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.76%. Comparing base (f022563) to head (e83738c).
⚠️ Report is 151 commits behind head on v0.2-integration.

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.
📢 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
Collaborator

@tnixon tnixon left a comment

Choose a reason for hiding this comment

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

LGTM

@tnixon tnixon merged commit 39ce957 into v0.2-integration Mar 3, 2026
8 of 9 checks passed
@tnixon tnixon deleted the fix/build-pep-compliance branch March 3, 2026 18:30
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.

2 participants