Skip to content

Commit 2b9e3ec

Browse files
authored
chore: move deps from requirements-dev.txt to pyproject.toml (#120)
1 parent 0529202 commit 2b9e3ec

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.github/workflows/python-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install dependencies
3838
run: |
3939
python3 -m pip install --upgrade pip
40-
python3 -m pip install . -r requirements-dev.txt
40+
python3 -m pip install .[dev]
4141
4242
- name: Collect Coverage
4343
run: coverage run -m pytest -vv

.gitpod.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44

55
tasks:
66
- name: Setup & Install
7-
before: pip install -r requirements-dev.txt
7+
before: pip install -e .[dev]
88
init: pre-commit install
9-
command: pip install -e .

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ clang-tools = "clang_tools.main:main"
3838
source = "https://github.com/cpp-linter/clang-tools-pip"
3939
tracker = "https://github.com/cpp-linter/clang-tools-pip/issues"
4040

41-
# ... other project metadata fields as specified in:
42-
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
41+
[project.optional-dependencies]
42+
dev = [
43+
"coverage[toml]",
44+
"pre-commit",
45+
"pytest",
46+
]
4347

4448
[tool.setuptools]
4549
zip-safe = false

requirements-dev.txt

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

0 commit comments

Comments
 (0)