build: add poetry.lock to sdist #2405
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.
Rationale for this change
This PR explicitly add
poetry.lockto the source distribution artifact so that we can build and test RCs with pinned dependencies.We want to pin dependencies because we verify a release candidate (RC) by re-building the project from source distribution. We unzip the artifact, install the dependencies with
make install, and then run tests.Since
poetry.lockis not automatically added to the source distribution,make installwill install packages only based onpyproject.toml. The resolver will pull in the latest version by default, which can lead to compatibility issues.For example, in 0.10 RC2, we see that this pulled in the latest datafusion which caused an compatibility issue with pyiceberg-core. This is due to the breaking change in the FFI boundary, see apache/datafusion-python#1217
Alternatively, we can restrict the upperbound of the dependencies, but that since these are optional dependencies, we want to give users the freedom to choose.
Are these changes tested?
Are there any user-facing changes?