Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project: relocate development dependencies into 'pyproject.toml' #1337

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading