Skip to content

Commit 3672d24

Browse files
committed
update build config
1 parent 9a51786 commit 3672d24

File tree

4 files changed

+11
-30
lines changed

4 files changed

+11
-30
lines changed

.github/workflows/checkpr.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ jobs:
1717
with:
1818
python-version: ${{ matrix.python-version }}
1919
- name: Install deploy dependencies
20-
run: pip install .[deploy]
21-
- name: Install test dependencies
22-
run: pip install .[test]
20+
run: pip install --group deploy
2321
- name: Install code dependencies
2422
run: pip install .
2523
- name: Lint with pylint

.github/workflows/main.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,12 @@ jobs:
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install deploy dependencies
22-
run: |
23-
pip install .[deploy]
24-
- name: Install test dependencies
25-
run: |
26-
pip install .[test]
22+
run: pip install --group deploy
2723
- name: Install code dependencies
28-
run: |
29-
pip install .
24+
run: pip install .
3025
- name: Lint with pylint
31-
run: |
32-
pylint -E src
26+
run: pylint -E src
3327
- name: Security vulnerability analysis with bandit
34-
run: |
35-
bandit -c pyproject.toml -r -lll .
28+
run: bandit -c pyproject.toml -r -lll .
3629
- name: Test with pytest
37-
run: |
38-
pytest
30+
run: pytest

.vscode/tasks.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,8 @@
1414
"-m",
1515
"pip",
1616
"install",
17-
"--upgrade",
18-
"setuptools",
19-
"build",
20-
"wheel",
21-
"black",
22-
"pylint",
23-
"pytest",
24-
"pytest-cov",
25-
"isort",
26-
"bandit",
27-
"Sphinx",
28-
"sphinx-rtd-theme"
17+
"--group",
18+
"deploy",
2919
],
3020
"problemMatcher": []
3121
},

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ documentation = "https://www.semuconsulting.com/pygpsclient/"
5959
repository = "https://github.com/semuconsulting/PyGPSClient"
6060
changelog = "https://github.com/semuconsulting/PyGPSClient/blob/master/RELEASE_NOTES.md"
6161

62-
[project.optional-dependencies]
63-
deploy = [
62+
[dependency-groups]
63+
build = [
6464
"build",
6565
"packaging>=24.2",
6666
"pip",
@@ -79,6 +79,7 @@ test = [
7979
"Sphinx",
8080
"sphinx-rtd-theme",
8181
]
82+
deploy = [{ include-group = "build" }, { include-group = "test" }]
8283

8384
[tool.setuptools.dynamic]
8485
version = { attr = "pygpsclient._version.__version__" }

0 commit comments

Comments
 (0)