Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 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
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Install uv
Comment thread
juliette0704 marked this conversation as resolved.
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
16 changes: 6 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
install:
@echo "Installing local package..."
pip install .
install-dev:
@echo "Installing local package in developper mode..."
pip install -e .
pip install -r requirements-dev.txt
pre-commit install
@echo "Installing local package..."
uv sync
uv run pre-commit install
test:
@echo "Running tests..."
pre-commit run --all-files
mypy .
uv run pre-commit run --all-files
uv run mypy .
# Follow the test practices recommanded by LangChain (v0.3)
# See https://python.langchain.com/docs/contributing/how_to/integrations/standard_tests/
pytest --cov=linkup/ --cov-report term-missing --disable-socket --allow-unix-socket tests/unit_tests
uv run pytest --cov=src/linkup/ --cov-report term-missing --disable-socket --allow-unix-socket tests/unit_tests
# TODO: uncomment the following line when integration tests are ready
# pytest tests/integration_tests
50 changes: 50 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,49 @@
[project]
name = "linkup-sdk"
version = "0.2.8"
Comment thread
juliette0704 marked this conversation as resolved.
description = "A Python Client SDK for the Linkup API"
readme = "README.md"
requires-python = ">=3.9"
authors = [
{ name = "LINKUP TECHNOLOGIES", email = "contact@linkup.so" }
]
keywords = ["linkup", "api", "sdk", "client", "search"]
license = "MIT"

classifiers = [
"Intended Audience :: Developers",
Comment thread
juliette0704 marked this conversation as resolved.
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent"
]

dependencies = [
"httpx",
"pydantic"
]

Comment thread
juliette0704 marked this conversation as resolved.
[project.urls]
Homepage = "https://github.com/LinkupPlatform/linkup-python-sdk"
Documentation = "https://github.com/LinkupPlatform/linkup-python-sdk#readme"
Source = "https://github.com/LinkupPlatform/linkup-python-sdk"
Tracker = "https://github.com/LinkupPlatform/linkup-python-sdk/issues"

[dependency-groups]
dev = [
"mypy>=1.16.1",
"pre-commit>=4.2.0",
"pytest>=8.4.1",
"pytest-asyncio>=1.0.0",
"pytest-cov>=6.2.1",
"pytest-mock>=3.14.1",
"pytest-socket>=0.7.0"
]

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.package-data]
linkup = ["py.typed"]
Comment thread
cjumel marked this conversation as resolved.
Outdated

[tool.mypy]
exclude = ['^tests/', 'venv/', '.venv/']
strict = true
Expand All @@ -22,3 +68,7 @@ select = [

[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*_test.py" = ["S101"] # Use of assert detected

[build-system]
requires = ["setuptools >= 77.0.3"]
build-backend = "setuptools.build_meta"
9 changes: 0 additions & 9 deletions requirements-dev.txt

This file was deleted.

52 changes: 0 additions & 52 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading