Skip to content

Commit

Permalink
chore(bindings/python): switch to uv (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Dec 24, 2024
1 parent e589e93 commit c3f68e4
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 127 deletions.
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

0 comments on commit c3f68e4

Please sign in to comment.