-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add python release script #533
Merged
linzhou-db
merged 18 commits into
delta-io:python-branch-1.1
from
linzhou-db:py-release-1.1.0
Jul 23, 2024
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
dbb5642
add python_release.sh
linzhou-db 6df4ee0
Update Python connector version to v1.1.0
linzhou-db 4cb2db0
update scripts
linzhou-db 1bf2c51
update kernel version to 0.2.0
linzhou-db 7c50df7
Update Python connector version to 1.1.0
linzhou-db 8c7b535
Update Python connector version to 1.1.0
linzhou-db 354f3d6
Update Python connector version to 1.1.0
linzhou-db f93aef8
Update Python connector version to 1.1.0
linzhou-db ab6af68
Update Python connector version to 1.1.0
linzhou-db 070987b
try delta_kernel_python
linzhou-db 0b03463
Update Python connector version to 1.1.0
linzhou-db 2d37500
Update Python connector version to 1.0.6
linzhou-db d468471
remove delta_kernel_python
linzhou-db 27516f3
Update Python connector version to 1.0.7
linzhou-db a38ae7e
rename delta_kernel_python to delta_kernel_rust_sharing_wrapper
linzhou-db 108780b
Setup virtual env in release script
linzhou-db 0052e46
rename
linzhou-db 6aad6ca
resolve PR comments
linzhou-db File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash -e -pipe | ||
|
||
# Switch to the project root directory | ||
cd $( dirname $0 ) | ||
cd .. | ||
|
||
# Clean up uncommitted files | ||
#git clean -fdx | ||
|
||
cd python | ||
cd delta-kernel-rust-sharing-wrapper | ||
rm -Rf .venv | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip install maturin | ||
maturin build | ||
|
||
|
||
cd python | ||
python3 setup.py clean --all | ||
rm -rf delta_sharing.egg-info dist | ||
cd .. | ||
|
||
printf "Please type the python release version: " | ||
read VERSION | ||
echo $VERSION | ||
|
||
# Update the Python connector version | ||
sed -i '' "s/__version__ = \".*\"/__version__ = \"$VERSION\"/g" python/delta_sharing/version.py | ||
git add python/delta_sharing/version.py | ||
# Use --allow-empty so that we can re-run this script even if the Python connector version has been updated | ||
git commit -m "Update Python connector version to $VERSION" --allow-empty | ||
|
||
# Switch to the release commit | ||
git checkout v$VERSION | ||
|
||
# Generate Python artifacts | ||
cd python/ | ||
python3 setup.py sdist bdist_wheel | ||
cd .. | ||
|
||
echo "=== Generated all release artifacts ===" |
6 changes: 3 additions & 3 deletions
6
python/delta-kernel-python/Cargo.toml → ...ta-kernel-rust-sharing-wrapper/Cargo.toml
This file contains 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
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ | |
# limitations under the License. | ||
# | ||
|
||
__version__ = "1.1.0" | ||
__version__ = "1.0.7" |
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to add 3.10 and 3.11 here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added