Skip to content

Commit dc1461a

Browse files
committed
pyproject: add extra for each CLI command
Add extras for CLI commands and move some dependencies that are only used by them into those extras. This allows to install only a subset of dependencies for only the command one needs (in CI for example). To make testing easier there also exists a "all" extra which installs everything.
1 parent 0ae9817 commit dc1461a

File tree

4 files changed

+116
-110
lines changed

4 files changed

+116
-110
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
pipx install poetry
25-
poetry install
25+
poetry install -Eall
2626
2727
- name: Run tests
2828
run: |

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,11 @@ CI commands:
1111
* `msys2-srcinfo-cache`: Maintains srcinfo data for all packages in a git repo
1212
* `msys2-pypi-cache`: Maintains a pypi metadata cache for all packages
1313
* `msys2-sbom`: Generate a SBOM file for all packages
14+
15+
Installation:
16+
17+
For every CLI command there exists a Python package extra with the same name:
18+
19+
* `pip install msys2-devtools[sbom]`
20+
21+
In addition there exists an `all` extra that installs all dependencies.

0 commit comments

Comments
 (0)