Skip to content

Commit ae90fbd

Browse files
dahliaampcode-com
andcommitted
Configure uv dependency management
Add uv sync and uv run commands to AGENTS.md for dependency management. Conditionally install Sphinx versions in pyproject.toml based on Python version. Generate uv.lock for dependency locking. Amp-Thread-ID: https://ampcode.com/threads/T-e768c93a-a427-4fcd-ad41-333b48997cca Co-authored-by: Amp <amp@ampcode.com>
1 parent 8aafcee commit ae90fbd

File tree

3 files changed

+1878
-5
lines changed

3 files changed

+1878
-5
lines changed

AGENTS.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Wikidata Python Client Library
22

33
## Build/Test Commands
4+
- `uv sync`: Sync dependencies and create virtual environment
45
- `tox`: Run tests across all Python versions (3.8+, PyPy)
56
- `tox -e py311`: Run tests on specific Python version
6-
- `pytest tests/client_test.py::test_client_get -v`: Run single test
7-
- `mypy -p wikidata`: Type check main package
8-
- `flake8`: Lint code style
9-
- `sphinx-build docs/ docs/_build/html`: Build documentation
7+
- `uv run pytest tests/client_test.py::test_client_get -v`: Run single test
8+
- `uv run mypy -p wikidata`: Type check main package
9+
- `uv run flake8`: Lint code style
10+
- `uv run sphinx-build docs/ docs/_build/html`: Build documentation
1011

1112
## Architecture
1213
Python client library for Wikidata API. Core modules:

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ tests = [
5151
docs = [
5252
"furo",
5353
"rstcheck",
54-
"Sphinx ~= 6.1.3"
54+
"Sphinx ~= 8.2.3 ; python_version >= '3.11'",
55+
"Sphinx ~= 6.1.3 ; python_version < '3.11'"
5556
]
5657

5758
[tool.setuptools]

0 commit comments

Comments
 (0)