Skip to content

Commit 0e85ff0

Browse files
committed
packaging(poetry): Fix dependency groups
Dependency groups, other than the implicit main group, must only contain dependencies you need in your development process. Installing them is only possible by using Poetry. See also: https://python-poetry.org/docs/master/managing-dependencies/
1 parent 7b64767 commit 0e85ff0

File tree

4 files changed

+7
-38
lines changed

4 files changed

+7
-38
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Install dependencies [w/ docs]
4848
if: env.PUBLISH == 'true'
49-
run: poetry install --extras "docs lint"
49+
run: poetry install --with=docs,lint
5050

5151
- name: Print python versions
5252
if: env.PUBLISH == 'true'

.github/workflows/tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ jobs:
5353
tmux -V
5454
5555
- name: Install python dependencies
56-
run: |
57-
poetry install -E "test coverage lint"
56+
run: poetry install --with=test,coverage,lint
5857

5958
- name: Lint with ruff .
6059
run: poetry run ruff .

poetry.lock

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ libtmux = "~0.23.2"
5050
colorama = ">=0.3.9"
5151
PyYAML = "^6.0"
5252

53-
[tool.poetry.group.dev.dependencies]
53+
[tool.poetry.group.docs.dependencies]
5454
### Docs ###
5555
sphinx = "*"
5656
aafigure = ">=0.6"
@@ -67,51 +67,27 @@ sphinxext-rediraffe = "*"
6767
myst_parser = ">=0.18.1"
6868
docutils = "*"
6969

70+
[tool.poetry.group.test.dependencies]
7071
### Testing ###
7172
pytest = "*"
7273
pytest-rerunfailures = "*"
7374
pytest-mock = "*"
7475
pytest-cov = "*"
7576
pytest-watcher = "*"
7677

78+
[tool.poetry.group.coverage.dependencies]
7779
### Coverage ###
7880
codecov = "*"
7981
coverage = "*"
8082

83+
[tool.poetry.group.lint.dependencies]
8184
### Lint ###
8285
ruff = "*"
8386
mypy = "*"
8487
types-colorama = "*"
8588
types-docutils = "*"
8689
types-PyYAML = "*"
8790

88-
[tool.poetry.extras]
89-
docs = [
90-
"docutils",
91-
"sphinx",
92-
"sphinx-argparse",
93-
"sphinx-autodoc-typehints",
94-
"sphinx-autobuild",
95-
"sphinx-copybutton",
96-
"sphinxext-opengraph",
97-
"sphinx-inline-tabs",
98-
"sphinxext-rediraffe",
99-
"myst_parser",
100-
"furo",
101-
"gp-libs",
102-
"aafigure",
103-
"pillow",
104-
]
105-
test = ["pytest", "pytest-rerunfailures", "pytest-mock", "pytest-watcher"]
106-
coverage = ["codecov", "coverage", "pytest-cov"]
107-
lint = [
108-
"ruff",
109-
"mypy",
110-
"types-colorama",
111-
"types-docutils",
112-
"types-PyYAML",
113-
]
114-
11591
[tool.coverage.run]
11692
branch = true
11793
source = [

0 commit comments

Comments
 (0)