Skip to content

Commit

Permalink
Merge pull request #361 from jelmer/pyproject
Browse files Browse the repository at this point in the history
Install dependencies from pyproject.toml, rather than listing in work…
  • Loading branch information
jelmer authored Oct 20, 2024
2 parents 1b8760f + 965f521 commit 4baf98f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/litmus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install -U pip pycalendar vobject requests six tzlocal attrs aiohttp aiohttp-wsgi prometheus-client multidict pytest
pip install -U pip pycalendar vobject requests attrs aiohttp aiohttp-wsgi prometheus-client multidict pytest
python setup.py develop
- name: Run litmus tests
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pycaldav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
fail-fast: false

steps:
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U pip pycalendar vobject requests six tzlocal pytz attrs aiohttp aiohttp-wsgi prometheus-client multidict pytest "recurring-ical-events>=1.1.0b" typing-extensions defusedxml
pip install -U pip pycalendar vobject requests pytz attrs aiohttp aiohttp-wsgi prometheus-client multidict pytest "recurring-ical-events>=1.1.0b" typing-extensions defusedxml
python -m pip install -e .
- name: Run pycaldav tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U pip coverage codecov ruff pycalendar vobject requests six tzlocal attrs multidict pytest
pip install ".[dev,prometheus]"
- name: Install dependencies (linux)
run: |
sudo apt -y update
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ dynamic = ["version"]
[project.optional-dependencies]
prometheus = ["aiohttp_openmetrics"]
systemd = ["systemd_python"]
dev = [
"ruff==0.7.0",
"pytest",
]

[project.scripts]
xandikos = "xandikos.__main__:main"
Expand Down

0 comments on commit 4baf98f

Please sign in to comment.