Skip to content

Commit 0e0f2a5

Browse files
committed
Finally figure out how dependency groups are managed in pip?
1 parent bb5f45c commit 0e0f2a5

File tree

5 files changed

+34
-21
lines changed

5 files changed

+34
-21
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
python-version: 3.9
1717
- name: Install dependencies
18-
run: pip install ".[build]"
18+
run: pip install . --group build
1919
- name: Build package
2020
run: python -m build
2121
- name: Publish package to PyPI

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install Python dependencies to venv
26-
run: pip install ".[test]"
26+
run: pip install . --group test
2727
- name: Run test suite
2828
run: python -m tox -e py
2929
# [BJ] I'll obviously uncomment this step after I finish fiddling

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ tests/searchcommands/data/app/app.log
2020
tests/searchcommands/apps/app_with_logging_configuration/*.log
2121
Test Results*.html
2222
splunk_sdk.egg-info/
23+
.splunkrc
2324
dist/
2425
*.observed
2526
venv/

pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ classifiers = [
3030

3131
dependencies = ["deprecation", "python-dotenv"]
3232

33-
[project.optional-dependencies]
33+
[dependency-groups]
3434
test = ["tox"]
3535
lint = ["mypy", "ruff"]
36-
build = ["build", "setuptools", "splunk-sdk[test]"]
37-
all = ["splunk-sdk[test, lint, build]"]
38-
39-
[tool.uv]
40-
# default-groups = ["test", "lint", "build"]
36+
build = ["build", "setuptools", { include-group = "test" }]
37+
dev = [
38+
{ include-group = "test" },
39+
{ include-group = "lint" },
40+
{ include-group = "build" },
41+
]
4142

4243
# https://docs.astral.sh/ruff/configuration/
4344
[tool.ruff]

uv.lock

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

0 commit comments

Comments
 (0)