Skip to content

Commit 93f38d3

Browse files
committed
dev: switch from poetry to uv
1 parent ad69a82 commit 93f38d3

File tree

5 files changed

+1388
-1455
lines changed

5 files changed

+1388
-1455
lines changed

.github/workflows/pythonapp.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ jobs:
2525
- name: List nox envs
2626
run: nox -l
2727
- run: nox --pythons '${{ matrix.python }}'
28-
- run: uvx poetry build
29-
- run: uvx poetry check --strict
28+
- run: uv build
29+
- name: Check that the lockfile is consistent with pyproject.toml
30+
run: uv lock --check
3031
- name: Publish Unit Test Results
3132
uses: EnricoMi/publish-unit-test-result-action@v2
3233
if: always()

noxfile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def nightly(session: nox.Session) -> None:
3838

3939
def tests_core(session: nox.Session, duckdb: str, sqlalchemy: str) -> None:
4040
with group(f"{session.name} - Install"):
41-
poetry(session)
41+
uv(session)
4242
operator = "==" if sqlalchemy.count(".") == 2 else "~="
4343
session.install(f"sqlalchemy{operator}{sqlalchemy}")
4444
if duckdb == "master":
@@ -61,12 +61,12 @@ def tests_core(session: nox.Session, duckdb: str, sqlalchemy: str) -> None:
6161
)
6262

6363

64-
def poetry(session: nox.Session) -> None:
65-
session.install("poetry")
66-
session.run("poetry", "install", "--with", "dev", "--verbose", silent=False)
64+
def uv(session: nox.Session) -> None:
65+
session.install("uv")
66+
session.run("uv", "sync", "--verbose", silent=False)
6767

6868

6969
@nox.session(py=["3.8"])
7070
def mypy(session: nox.Session) -> None:
71-
poetry(session)
71+
uv(session)
7272
session.run("mypy", "duckdb_engine/")

0 commit comments

Comments
 (0)