Repository navigation
Use hatch-native for validation and library resolution - #97
Merged
Merged
Conversation
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 Report❌ Patch coverage is
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. 🚀 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.
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.symbolsre-exportsexported_symbols. The three symbol tests moved to hatch-native, and two monkeypatch targets intest_structs.pypoint athatch_native.validation.CI can only install this branch once
hatch-native0.1.0 is on PyPI. Locally, 175 tests pass, and fsspec-kafka'sextension-on-libfsspecbranch builds against it and passes its 25 tests.Type of Change
Checklist
make lint)make test)