build and upload seekdb python wheels#71
Draft
hnwyllmm wants to merge 27 commits intooceanbase:mainfrom
Draft
Conversation
support seekdb-python package
Member
Author
|
@chris-sun-star PTAL |
There was a problem hiding this comment.
Pull request overview
This PR adds GitHub Actions workflow and Python packaging infrastructure to build and publish seekdb Python wheels to PyPI. When a tag matching seekdb-python-{seekdb-version}-{package-version} is pushed, the workflow automatically builds wheels for multiple Python versions (3.8-3.14) on Linux x86_64 and ARM64 architectures, then publishes them to PyPI.
Key changes:
- Adds GitHub Actions workflow for automated wheel building and PyPI publishing
- Implements custom setup.py with CMake-based build process for native library compilation
- Provides CLI tool for interactive SQL client and test script for validation
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 18 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/release-seekdb-python.yml | GitHub Actions workflow that extracts version from tag, builds wheels using cibuildwheel on multiple platforms, and publishes to PyPI |
| seekdb-python/setup.py | Build script that clones seekdb repository, compiles native library, and packages as Python wheel with custom build commands |
| seekdb-python/init.py | Package initialization that dynamically loads the compiled native library and exports its symbols |
| seekdb-python/README.md | Documentation explaining features, installation instructions, and usage examples for the seekdb Python package |
| seekdb-python/cli.py | Interactive SQL command-line client with readline support, special commands, and table formatting |
| seekdb-python/seekdb_test.py | Test script demonstrating vector and full-text search capabilities with hybrid queries |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
support building seekdb embedded packages and uploading python wheels to pypi
Solution Description
When create a tag with name
seekdb-python-{tag}-{package-version}, github action will executerelease seekdb-pyhton.Note:
tagcan be one of github branch, commit id and tag;package-versionis the version of python package, for example, 1.0.0.post1, 0.0.1.dev2, 1.0.0.b1What
seekdb-pythonCI do?