Skip to content

Commit 9cef706

Browse files
committed
chore: add uv for python sdk
1 parent c1d1f9f commit 9cef706

File tree

12 files changed

+798
-71
lines changed

12 files changed

+798
-71
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ jobs:
3030
- name: Run tests
3131
run: |
3232
make test
33+
34+
-name: Install uv
35+
uses: astral-sh/setup-uv@v5
36+
with:
37+
python-version: ${{ matrix.python-version }}

Makefile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
install:
2-
@echo "Installing local package..."
3-
pip install .
41
install-dev:
5-
@echo "Installing local package in developper mode..."
6-
pip install -e .
7-
pip install -r requirements-dev.txt
8-
pre-commit install
2+
@echo "Installing local package..."
3+
uv sync
4+
uv run pre-commit install
95
test:
106
@echo "Running tests..."
11-
pre-commit run --all-files
12-
mypy .
7+
uv run pre-commit run --all-files
8+
uv run mypy .
139
# Follow the test practices recommanded by LangChain (v0.3)
1410
# See https://python.langchain.com/docs/contributing/how_to/integrations/standard_tests/
15-
pytest --cov=linkup/ --cov-report term-missing --disable-socket --allow-unix-socket tests/unit_tests
11+
uv run pytest --cov=src/linkup/ --cov-report term-missing --disable-socket --allow-unix-socket tests/unit_tests
1612
# TODO: uncomment the following line when integration tests are ready
1713
# pytest tests/integration_tests

pyproject.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
[project]
2+
authors = []
3+
dependencies = [
4+
"httpx",
5+
"pydantic"
6+
]
7+
8+
description = ""
9+
name = "linkup-python-sdk"
10+
readme = "README.md"
11+
requires-python = ">=3.9"
12+
version = "0.1.0"
13+
14+
[dependency-groups]
15+
dev = [
16+
"mypy>=1.16.1",
17+
"pre-commit>=4.2.0",
18+
"pytest>=8.4.1",
19+
"pytest-asyncio>=1.0.0",
20+
"pytest-cov>=6.2.1",
21+
"pytest-mock>=3.14.1",
22+
"pytest-socket>=0.7.0",
23+
"ruff>=0.8.0",
24+
"types-setuptools>=80.9.0"
25+
]
26+
127
[tool.mypy]
228
exclude = ['^tests/', 'venv/', '.venv/']
329
strict = true
@@ -22,3 +48,10 @@ select = [
2248

2349
[tool.ruff.lint.extend-per-file-ignores]
2450
"tests/**/*_test.py" = ["S101"] # Use of assert detected
51+
52+
# [tool.setuptools.packages.find]
53+
# where = ["src"]
54+
55+
# [build-system]
56+
# requires = ["setuptools >= 77.0.3"]
57+
# build-backend = "setuptools.build_meta"

requirements-dev.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 52 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)