Skip to content

Commit

Permalink
Merge pull request #91 from andresdelfino/dev_requirements
Browse files Browse the repository at this point in the history
Handle dev dependencies via pyproject.toml
  • Loading branch information
WinnaZ authored Oct 12, 2024
2 parents fe46882 + 9c17df9 commit 9f35ce0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install '.[dev]'
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
pytest
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@ Despues instala el paquete en modo desarrollo en un virtualenv
~~~bash
virtualenv -p python3 venv
source venv/bin/activate
pip install -e .
pip install -e '.[dev]'
~~~

y estas listo para trabajar.

`pip install freezegun` para correr los tests.

### Python 3.12

`pip install setuptools`
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ authors = [
]
description = "Bot de telegram para organizar pycamp"
readme = "README.md"

[project.optional-dependencies]
dev = [
"flake8==7.1.0",
"freezegun==1.5.1",
"pytest==8.2.2",
]

0 comments on commit 9f35ce0

Please sign in to comment.