Skip to content

Commit fc680f5

Browse files
whippiiileiserfg
authored andcommitted
Use optional dependencies instead of dependency groups
1 parent beb05cd commit fc680f5

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Install all development dependencies using:
2020

2121
```bash
2222
# Creates .venv and install dependencies
23-
uv sync
23+
uv sync --all-extras
2424
# Setups pre-commit
2525
uv tool install pre-commit --with pre-commit-uv --force-reinstall
2626
```

pyproject.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,20 @@ classifiers = [
4040
requires-python = '>=3.10'
4141
dependencies = ['requests>=2.18.0', 'six>=1.13.0', 'uritemplate>=3.0.0']
4242

43+
[project.optional-dependencies]
44+
marshmallow = ['marshmallow>=2.15.0']
45+
pydantic = ['pydantic>=2.0.0']
46+
aiohttp = ['aiohttp>=3.8.1']
47+
twisted = ['twisted>=21.7.0']
48+
4349
[dependency-groups]
44-
test = [
50+
dev = [
4551
'pytest',
4652
'pytest-mock',
4753
'pytest-cov',
4854
'pytest-twisted',
4955
'pytest-asyncio',
5056
]
51-
marshmallow = ['marshmallow>=2.15.0']
52-
pydantic = ['pydantic>=2.0.0']
53-
aiohttp = ['aiohttp>=3.8.1']
54-
twisted = ['twisted>=21.7.0']
5557

5658
[build-system]
5759
requires = ['hatchling']

uv.lock

Lines changed: 13 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)