Skip to content

Commit aed6bb4

Browse files
committed
Use groups
1 parent d924dca commit aed6bb4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

{{cookiecutter.project_slug}}/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ run: $(VENV)/pyvenv.cfg
5353

5454
$(VENV)/pyvenv.cfg: pyproject.toml
5555
uv venv $(VENV)
56-
uv pip install -e '.[$(INSTALL_EXTRA)]'
56+
uv sync --group '$(INSTALL_EXTRA)'
5757

5858
.PHONY: lint
5959
lint: $(VENV)/pyvenv.cfg

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ requires-python = ">=3.9"
2323
[tool.setuptools.dynamic]
2424
version = { attr = "{{ cookiecutter.__project_import }}.__version__" }
2525

26-
[project.optional-dependencies]
26+
[dependency-groups]
2727
doc = [
2828
{%- if cookiecutter.documentation == "pdoc" -%}
2929
"pdoc"
@@ -42,7 +42,7 @@ lint = [
4242
"interrogate",
4343
{%- endif %}
4444
]
45-
dev = ["{{ cookiecutter.project_slug }}[doc,test,lint]", "twine", "build"]
45+
dev = [{include-group = "doc"}, {include-group = "test"}, {include-group = "lint"}, "twine", "build"]
4646

4747
{% if cookiecutter.entry_point -%}
4848
[project.scripts]

0 commit comments

Comments
 (0)