Skip to content

Commit 9f35ce0

Browse files
authored
Merge pull request #91 from andresdelfino/dev_requirements
Handle dev dependencies via pyproject.toml
2 parents fe46882 + 9c17df9 commit 9f35ce0

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/pythonapp.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
pip install .
29+
pip install '.[dev]'
3030
- name: Lint with flake8
3131
run: |
32-
pip install flake8
3332
# stop the build if there are Python syntax errors or undefined names
3433
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3534
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3635
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3736
- name: Test with pytest
3837
run: |
39-
pip install pytest
4038
pytest

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@ Despues instala el paquete en modo desarrollo en un virtualenv
2525
~~~bash
2626
virtualenv -p python3 venv
2727
source venv/bin/activate
28-
pip install -e .
28+
pip install -e '.[dev]'
2929
~~~
3030

3131
y estas listo para trabajar.
3232

33-
`pip install freezegun` para correr los tests.
34-
3533
### Python 3.12
3634

3735
`pip install setuptools`

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,10 @@ authors = [
1717
]
1818
description = "Bot de telegram para organizar pycamp"
1919
readme = "README.md"
20+
21+
[project.optional-dependencies]
22+
dev = [
23+
"flake8==7.1.0",
24+
"freezegun==1.5.1",
25+
"pytest==8.2.2",
26+
]

0 commit comments

Comments
 (0)