Ensure wheel distribution includes pydantic shim #243
Merged
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.
Resolves #241
Description
To ensure the pydantic shim was included in the wheel distribution we had to explicitly set what packages we wanted to be included for the wheel in the
pyproject.toml
.Manual Testing
Basic testing
hatch build
in my localdbt_semantic_interfaces
repositorypip uninstall dbt-semantic-interfaces
pip install /Users/quigleymalcolm/Developer/dbt-labs/dbt-semantic-interfaces/dist/dbt_semantic_interfaces-0.5.0a2-py3-none-any.whl
dbt-semantic-interfaces
anddsi_pydantic_shim.py
were present indbt-core/venv/lib/python3.8/site-packages/
Functionally testing
(This requires at least step 1 from the basic testing)
core/setup.py
to use my local dbt-semantic interfaces wheela. update the dependency from
"dbt-semantic-interfaces~=0.5.0a2"
to"dbt-semantic-interfaces"
in theinstall_requires
paramb. added the following param/value
dependency_links=["/Users/quigleymalcolm/Developer/dbt-labs/dbt-semantic-interfaces/dist/dbt_semantic_interfaces-0.5.0a2-py3-none-any.whl"]
to the setup configrm -rf .tox
in dbt-coremake test
dbt-semantic-interfaces
anddsi_pydantic_shim.py
were in the tox cache.tox/py/lib/python3.8/site-packages/
Checklist
changie new
to create a changelog entry