Skip to content
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

chore(bindings/python): switch to uv #546

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions bindings/python/Pipfile

This file was deleted.

103 changes: 0 additions & 103 deletions bindings/python/Pipfile.lock

This file was deleted.

7 changes: 4 additions & 3 deletions bindings/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ make up

```shell
cd bindings/python
pipenv install --dev
pipenv run maturin develop
pipenv run behave tests/*
uv sync
source .venv/bin/activate
maturin develop --uv
behave tests/*
```
12 changes: 7 additions & 5 deletions bindings/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ name = "databend-driver"
readme = "README.md"
requires-python = ">=3.7, < 3.14"

[project.optional-dependencies]
docs = ["pdoc"]
test = ["behave"]
lint = ["ruff"]

[project.urls]
Repository = "https://github.com/databendlabs/bendsql"

[tool.maturin]
features = ["pyo3/extension-module"]
module-name = "databend_driver._databend_driver"
python-source = "package"

[dependency-groups]
dev = [
"behave>=1.2.6",
"maturin>=1.7.8",
"ruff>=0.8.4",
]
125 changes: 125 additions & 0 deletions bindings/python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test-bendsql: up
cd .. && ./cli/test.sh flight

test-bindings-python: up
cd ../bindings/python && pipenv run behave tests/*
cd ../bindings/python && behave tests/*

test-bindings-nodejs: up
cd ../bindings/nodejs && pnpm run test
Expand Down
Loading