Skip to content

Commit 2c2dcf8

Browse files
committed
Migrate from Poetry to uv and fix docs workflow
1 parent ecde7fa commit 2c2dcf8

3 files changed

Lines changed: 2340 additions & 48 deletions

File tree

.github/workflows/sphinx.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
name: publish-docs
2-
2+
33
on:
44
push:
55
branches:
66
- main
7-
7+
88
jobs:
99
deploy-docs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
13+
1414
- name: Set up Python 3.10
1515
uses: actions/setup-python@v4
1616
with:
1717
python-version: 3.10.14
18-
18+
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v5
21+
1922
- name: Install dependencies
2023
run: |
2124
sudo apt-get update
2225
sudo apt-get install -y libegl1 libgl1
23-
python -m pip install --upgrade pip
24-
python -m pip install poetry
25-
poetry install --with docs
26-
26+
uv sync --group docs
27+
2728
- name: Build the docs
2829
run: |
29-
source .venv/bin/activate
30-
cd docs
31-
make html
30+
cd docs
31+
uv run make html
3232
cd ..
33-
33+
3434
- name: Deploy
3535
uses: peaceiris/actions-gh-pages@v3
3636
with:
3737
github_token: ${{ secrets.GITHUB_TOKEN }}
38-
publish_dir: docs/build/html
38+
publish_dir: docs/build/html

pyproject.toml

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,38 @@
1-
[tool.poetry]
1+
[project]
22
name = "biosignal-device-interface"
33
version = "0.2.4"
44
description = "Python communication interface to many biosignal devices manufactured by several companies to easy integration in custom PySide6 applications."
5-
authors = ["Dominik I. Braun <dome.braun@fau.de>", "Raul C. Sîmpetru <raul.simpetru@fau.de>"]
6-
license = "GPL-3.0"
5+
authors = [
6+
{name = "Dominik I. Braun", email = "dome.braun@fau.de"},
7+
{name = "Raul C. Sîmpetru", email = "raul.simpetru@fau.de"},
8+
]
9+
license = {text = "GPL-3.0"}
710
readme = "README.md"
11+
requires-python = ">=3.10,<3.13"
12+
dependencies = [
13+
"pyside6>=6.7.0",
14+
"numpy>=1.26.4",
15+
"psutil>=5.9.8",
16+
"aenum>=3.1.15",
17+
"vispy>=0.14.3",
18+
"scipy>=1.14.0",
19+
"matplotlib>=3.9.0",
20+
"tornado>=6.4.2",
21+
]
822

9-
[tool.poetry.dependencies]
10-
python = ">=3.10,<3.13"
11-
pyside6 = "^6.7.0"
12-
numpy = "^1.26.4"
13-
psutil = "^5.9.8"
14-
aenum = "^3.1.15"
15-
vispy = "^0.14.3"
16-
scipy = "^1.14.0"
17-
matplotlib = "^3.9.0"
18-
tornado = "^6.4.2"
19-
20-
21-
[tool.poetry.group.dev]
22-
optional = true
23-
[tool.poetry.group.dev.dependencies]
24-
ipykernel = "^6.29.5"
25-
26-
[tool.poetry.group.docs]
27-
optional = true
28-
[tool.poetry.group.docs.dependencies]
29-
sphinx = "^7.4.6"
30-
rinohtype = "^0.5.5"
31-
furo = "^2024.7.18"
32-
sphinx-gallery = "^0.16.0"
33-
toml = "^0.10.2"
34-
memory-profiler = "^0.61.0"
35-
enum-tools = {extras = ["sphinx"], version = "^0.12.0"}
36-
sphinx-autodoc-typehints = "^2.2.3"
37-
23+
[dependency-groups]
24+
dev = ["ipykernel>=6.29.5"]
25+
docs = [
26+
"sphinx>=7.4.6",
27+
"rinohtype>=0.5.5",
28+
"furo>=2024.7.18",
29+
"sphinx-gallery>=0.16.0",
30+
"toml>=0.10.2",
31+
"memory-profiler>=0.61.0",
32+
"enum-tools[sphinx]>=0.12.0",
33+
"sphinx-autodoc-typehints>=2.2.3",
34+
]
3835

3936
[build-system]
40-
requires = ["poetry-core"]
41-
build-backend = "poetry.core.masonry.api"
37+
requires = ["hatchling"]
38+
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)