Skip to content

Commit f8551cf

Browse files
authored
Merge pull request #31 from MrClock8163/feature-dependency-groups
Move dependency management to dependency groups
2 parents bb7784d + 6f5b4d9 commit f8551cf

File tree

6 files changed

+32
-20
lines changed

6 files changed

+32
-20
lines changed

.github/workflows/python-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020

2121
- name: Build release distributions
2222
run: |
23-
python -m pip install -r requirements.txt
23+
python -m pip install --upgrade pip
24+
python -m pip install --group development
2425
python -m pip install build
2526
python -m build
2627

.github/workflows/run-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727

2828
- name: Test with pytest
2929
run: |
30-
python -m pip install -r requirements.txt
30+
python -m pip install --upgrade pip
31+
python -m pip install --group testing
3132
python -m pytest
3233
3334
linting:
@@ -50,6 +51,7 @@ jobs:
5051

5152
- name: Running ${{ matrix.tool }}
5253
run: |
53-
python -m pip install -r requirements.txt
54+
python -m pip install --upgrade pip
55+
python -m pip install --group linting
5456
python -c "print('=========== ${{ matrix.tool }} ===========')"
5557
python -m ${{ matrix.tool }} src/ tests/ examples/

.readthedocs.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ build:
66
python: "3.12"
77
jobs:
88
pre_build:
9+
- python -m pip install --upgrade pip
10+
- python -m pip install --group documentation
911
- python -m pip install .
1012

1113
sphinx:
@@ -14,8 +16,3 @@ sphinx:
1416

1517
formats:
1618
- pdf
17-
18-
python:
19-
install:
20-
- requirements: docs/requirements.txt
21-

docs/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

pyproject.toml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ description = "Python package for controlling Leica instruments through serial c
1212
readme = "README.md"
1313
requires-python = ">=3.11"
1414
dependencies = [
15-
"pyserial"
15+
"pyserial",
16+
"typing-extensions"
1617
]
1718
classifiers = [
1819
"Development Status :: 2 - Pre-Alpha",
@@ -32,6 +33,28 @@ keywords = ["GeoCom", "surveying", "tps1200", "viva"]
3233
Homepage = "https://github.com/MrClock8163/geocompy"
3334
Issues = "https://github.com/MrClock8163/geocompy/issues"
3435

36+
[dependency-groups]
37+
testing = [
38+
"pytest",
39+
"pytest-mock",
40+
]
41+
linting = [
42+
{include-group = "testing"},
43+
"types-pyserial",
44+
"mypy",
45+
"flake8"
46+
]
47+
development = [
48+
"pyserial",
49+
{include-group = "linting"}
50+
]
51+
documentation = [
52+
"sphinx==8.2.3",
53+
"sphinx-notfound-page==1.1.0",
54+
"sphinx-last-updated-by-git==0.3.8",
55+
"sphinx-immaterial==0.13.5",
56+
]
57+
3558
[tool.hatch.version]
3659
source = "vcs"
3760

requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)