Skip to content

Commit 30477b5

Browse files
committed
chore: use uv dependency groups
1 parent 686f874 commit 30477b5

5 files changed

Lines changed: 195 additions & 179 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
uses: astral-sh/setup-uv@v3
4242
with:
4343
enable-cache: true
44+
- name: Install dependencies
45+
run: uv sync --group bundle
4446
- run: uv run pyinstaller --name scim2-${{ matrix.os }} --onefile scim2_cli/__init__.py
4547
- run: ./dist/scim2-${{ matrix.os }}
4648
- uses: actions/upload-artifact@v4

.github/workflows/tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,6 @@ jobs:
6262
uses: astral-sh/setup-uv@v3
6363
with:
6464
enable-cache: true
65+
- name: Install dependencies
66+
run: uv sync --group doc
6567
- run: uv run sphinx-build doc build/sphinx/html

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ uv run scim2 --help
4343
Or you can build a single file binary from the sources:
4444

4545
```shell
46+
uv sync --group bundle
4647
uv run pyinstaller --name scim2 --onefile scim2_cli/__init__.py
4748
./dist/scim2 --help
4849
```

pyproject.toml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,25 @@ repository = "https://github.com/yaal-coop/scim2-cli"
3939
changelog = "https://scim2-cli.readthedocs.io/en/latest/changelog.html"
4040
funding = "https://github.com/sponsors/yaal-coop"
4141

42-
[tool.uv]
43-
dev-dependencies = [
44-
# development
45-
"pyinstaller>=6.10.0",
42+
[dependency-groups]
43+
dev = [
4644
"pytest>=8.2.1",
4745
"pytest-coverage>=0.0",
4846
"pytest-httpserver>=1.0.10",
49-
"tox-uv>=1.15.0",
50-
# documentation
47+
"tox-uv>=1.16.0",
48+
]
49+
50+
doc = [
5151
"shibuya>=2024.5.15",
5252
"sphinx>=7.3.7",
5353
"sphinx-click>=6.0.0",
5454
"myst-parser>=3.0.1",
5555
]
5656

57+
bundle = [
58+
"pyinstaller>=6.10.0",
59+
]
60+
5761
[project.scripts]
5862
scim = "scim2_cli:cli"
5963
scim2 = "scim2_cli:cli"
@@ -107,6 +111,7 @@ env_list = [
107111
]
108112

109113
[tool.tox.env_run_base]
114+
runner = "uv-venv-lock-runner"
110115
commands = [
111116
["pytest", "--showlocals", "--full-trace", "{posargs}"],
112117
]

0 commit comments

Comments
 (0)