Skip to content

Commit f7d265a

Browse files
use [dependency-groups] as PEP 735 defined
* update * use [dependency-groups] as PEP 735 defined
1 parent 794b7e1 commit f7d265a

File tree

5 files changed

+28
-30
lines changed

5 files changed

+28
-30
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,12 @@ jobs:
4040
with:
4141
python-version: '3.x'
4242

43-
- name: Install Poetry
44-
run: |
45-
pip install poetry
43+
- name: Install uv
44+
uses: astral-sh/setup-uv@v6
4645

4746
- name: Install dependencies
4847
run: |
49-
poetry install
48+
uv sync --dev
5049
5150
- name: Start OceanBase container
5251
uses: oceanbase/setup-oceanbase-ce@v1
@@ -61,4 +60,4 @@ jobs:
6160

6261
- name: Run tests
6362
run: |
64-
poetry run pytest --log-cli-level=INFO ${{ matrix.test_filter }}
63+
uv run pytest --log-cli-level=INFO ${{ matrix.test_filter }}

.github/workflows/python-publish.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,13 @@ jobs:
2727
uses: actions/setup-python@v3
2828
with:
2929
python-version: '3.x'
30-
31-
- name: Install Poetry
32-
run: |
33-
pip install poetry
34-
35-
- name: Install dependencies
36-
run: |
37-
poetry install
38-
30+
31+
- name: Install uv
32+
uses: astral-sh/setup-uv@v6
33+
3934
- name: Build package
4035
run: |
41-
poetry build
36+
uv build
4237
4338
- name: upload windows dists
4439
uses: actions/upload-artifact@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
poetry.lock
2+
uv.lock
23
tests/.env
34
__pycache__/
45
build/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A python SDK for OceanBase Multimodal Store (Vector Store / Full Text Search / J
99
- git clone this repo, then install with:
1010

1111
```shell
12-
poetry install
12+
uv sync
1313
```
1414

1515
- install with pip:

pyproject.toml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,30 @@ authors = [{name="shanhaikang.shk",email="shanhaikang.shk@oceanbase.com"}]
66
readme = "README.md"
77
license = "Apache-2.0"
88
keywords = ["oceanbase", "vector store", "obvector"]
9+
requires-python = ">=3.9"
10+
11+
dependencies = [
12+
"numpy>=1.17.0",
13+
"sqlalchemy>=1.4,<=3",
14+
"pymysql>=1.1.1",
15+
"aiomysql>=0.3.2",
16+
"sqlglot>=26.0.1",
17+
"pydantic>=2.7.0,<3"
18+
]
919

1020
[project.urls]
1121
Homepage = "https://github.com/oceanbase/pyobvector"
1222
Repository = "https://github.com/oceanbase/pyobvector.git"
1323

14-
[tool.poetry.dependencies]
15-
python = ">=3.9,<4.0"
16-
numpy = ">=1.17.0"
17-
sqlalchemy = ">=1.4,<=3"
18-
pymysql = "^1.1.1"
19-
aiomysql = "^0.3.2"
20-
sqlglot = ">=26.0.1"
21-
pydantic = ">=2.7.0,<3"
22-
23-
[tool.poetry.group.dev.dependencies]
24-
pytest = "^8.2.2"
25-
pylint = "^3.2.7"
24+
[dependency-groups]
25+
dev = [
26+
"pytest>=8.2.2",
27+
"pylint>=3.2.7"
28+
]
2629

2730
[tool.pytest.ini_options]
2831
log_level = "INFO"
2932

3033
[build-system]
31-
requires = ["poetry-core"]
32-
build-backend = "poetry.core.masonry.api"
34+
requires = ["hatchling"]
35+
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)