This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from sundy-li/uv
package to uv
- Loading branch information
Showing
28 changed files
with
1,036 additions
and
364 deletions.
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 |
---|---|---|
|
@@ -14,19 +14,14 @@ jobs: | |
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.9 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Set up Python | ||
run: uv python install | ||
|
||
- name: Determine Version Change | ||
run: | | ||
export VERSION=$(cat databend_py/VERSION) | ||
- name: Install the project | ||
run: uv sync --all-extras --dev | ||
|
||
- name: Release Package and Tag | ||
env: | ||
|
@@ -38,7 +33,7 @@ jobs: | |
git config user.email "[email protected]" | ||
git tag -a "v$VERSION" -m "Release Version $VERSION" | ||
git push origin "v$VERSION" | ||
python setup.py sdist bdist_wheel | ||
uv publish | ||
echo "show user name:" | ||
echo ${{ secrets.TWINE_USERNAME }} | ||
twine upload -u ${{ secrets.TWINE_USERNAME }} -p ${{ secrets.TWINE_PASSWORD }} dist/* |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
upload.csv | ||
.envrc | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
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 |
---|---|---|
@@ -1,12 +1,18 @@ | ||
prepare: | ||
mkdir -p data/databend | ||
|
||
up: prepare | ||
docker compose -f docker-compose.yaml up --quiet-pull -d databend --wait | ||
curl -u root: -XPOST "http://localhost:8000/v1/query" -H 'Content-Type: application/json' -d '{"sql": "select version()", "pagination": { "wait_time_secs": 10}}' | ||
|
||
start: up | ||
|
||
test: | ||
python tests/test_client.py | ||
uv run pytest . | ||
|
||
ci: | ||
python tests/test_client.py | ||
uv run pytest . | ||
|
||
lint: | ||
pyflakes . | ||
uv run ruff check | ||
|
||
install: | ||
pip install -r requirements.txt | ||
pip install -e . |
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.