Skip to content

Use hatch-native for validation and library resolution - #97

Merged
timkpaine merged 2 commits into
mainfrom
use-hatch-native
Nov 13, 2026
Merged

timkpaine merged 2 commits into
mainfrom
use-hatch-native

Conversation

@timkpaine

@timkpaine timkpaine commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Description

Moves header and export validation, external library resolution, the artifact manifest writer, and the shared config fields (expected-symbols, expected-headers, header-symbol-prefix, expected-abi-strings, validate, validation-commands, pkg-config, library-root, python-package) into hatch-native, so hatch-cpp can validate C ABI libraries with the same code and the same pyproject keys.

Error messages and configuration are unchanged. hatch_rs.symbols re-exports exported_symbols. The three symbol tests moved to hatch-native, and two monkeypatch targets in test_structs.py point at hatch_native.validation.

CI can only install this branch once hatch-native 0.1.0 is on PyPI. Locally, 175 tests pass, and fsspec-kafka's extension-on-libfsspec branch builds against it and passes its 25 tests.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup
  • CI / build configuration
  • Other (describe below)

Checklist

  • Linting passes (make lint)
  • Tests pass (make test)
  • New tests added for new functionality
  • Documentation updated (if applicable)
  • Changelog / version bump (if applicable)

Header and export validation, external library resolution, the artifact
manifest, and the shared config fields come from hatch-native so
hatch-cpp can use the same code. Error messages and pyproject keys are
unchanged. hatch_rs.symbols re-exports exported_symbols, and its tests
moved to hatch-native.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 93.93%. Comparing base (b92b7ab) to head (062709b).

Files with missing lines Patch % Lines
hatch_rs/structs.py 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #97      +/-   ##
==========================================
+ Coverage   92.34%   93.93%   +1.59%     
==========================================
  Files          15       14       -1     
  Lines        2665     2359     -306     
==========================================
- Hits         2461     2216     -245     
+ Misses        204      143      -61     

☔ View full report in Codecov by Harness.
📢 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.

@timkpaine
timkpaine merged commit a528bc6 into main Nov 13, 2026
6 checks passed
@timkpaine
timkpaine deleted the use-hatch-native branch November 13, 2026 05:21
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.

1 participant