Skip to content

Commit

Permalink
Project: relocate development dependencies into pyproject.toml (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison authored Oct 24, 2024
1 parent 4f86ebe commit 9b9e958
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ Assuming you have ``>=python3.9`` installed, navigate to the directory where you
python -m venv .venv &&
source .venv/bin/activate &&
python -m pip install --upgrade pip &&
pip install -r requirements-dev.txt &&
pip install -e .[dev] &&
pip install pre-commit &&
pre-commit install &&
python -m unittest
Expand Down
2 changes: 1 addition & 1 deletion docs/how-to-develop-scraper.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $ cd recipe-scrapers
```shell
$ python -m venv .venv --upgrade-deps
$ source .venv/bin/activate
$ pip install -r requirements-dev.txt
$ pip install -e .[dev]
$ pip install pre-commit
$ pre-commit install
```
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ dependencies = [
]

[project.optional-dependencies]
dev = [
"coverage >=7.4.4",
"types-beautifulsoup4>=4.12.0",
"importlib-metadata>=4.6 ; python_version < '3.10'",
]
online = [
"requests >= 2.31.0",
]
Expand Down
4 changes: 0 additions & 4 deletions requirements-dev.txt

This file was deleted.

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
isolated_build = true

[testenv]
deps = -r{toxinidir}/requirements-dev.txt
extras = dev
commands = coverage run -m unittest {posargs}

# The system-provided libxml2 on MacOS is typically outdated and this can lead to lxml parsing issues
Expand Down

0 comments on commit 9b9e958

Please sign in to comment.