Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit 3db4ca7

Browse files
Felix BauerJack28
authored andcommitted
pyproject: Fix optional dependencies install variants
pip install wartungsplan[otrs] pip install wartungsplan[otrs,exchange] to install optional dependencies as dependencies.
1 parent 50dcdf1 commit 3db4ca7

5 files changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/testsuite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: |
3030
python -m pip install --upgrade pip
3131
pip install .
32-
pip install -r dev-requirements.txt
32+
pip install ".[otrs,exchange]"
3333
3434
- name: Run the testsuite
3535
run: test/test.py

DEVELOPMENT.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
```
66
source venv/bin/activate
77
# install optional dependencies
8-
pip install pyotrs
9-
pip install exchangelib
8+
pip install ".[otrs,exchange]"
109
test/test.py
1110
```
1211

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ For documentation on how to set up the OTRS side please refer to pyotrs
221221
documentation: <https://pypi.org/project/PyOTRS/>
222222

223223
Install optional depenency:
224-
pip install pyotrs
224+
pip install wartungsplan[otrs]
225225

226226
The config file:
227227

dev-requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ build==1.2.1
33
twine==5.1.1
44

55
# optional dependencies
6-
pyotrs==1.4.0
7-
exchangelib==5.4.2

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ dependencies = [
2626
]
2727

2828
[project.optional-dependencies]
29-
otrs = [
30-
"pyotrs==1.4.0",
31-
"exchangelib==5.4.1"
32-
]
29+
otrs = [ "pyotrs==1.4.0" ]
30+
exchange = [ "exchangelib==5.4.2" ]
3331

3432
[project.urls]
3533
repository = "https://github.com/science-computing/wartungsplan"

0 commit comments

Comments
 (0)