diff --git a/README.rst b/README.rst index b2d034f04..fe6eb7af9 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/docs/how-to-develop-scraper.md b/docs/how-to-develop-scraper.md index ea6ffeb20..1398703ca 100644 --- a/docs/how-to-develop-scraper.md +++ b/docs/how-to-develop-scraper.md @@ -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 ``` diff --git a/pyproject.toml b/pyproject.toml index 0457523a5..d10fec647 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", ] diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index f395db404..000000000 --- a/requirements-dev.txt +++ /dev/null @@ -1,4 +0,0 @@ --e . -coverage>=7.4.4 -types-beautifulsoup4>=4.12.0 -importlib-metadata>=4.6 ; python_version < "3.10" diff --git a/tox.ini b/tox.ini index fdd0af7a0..9f8d381a4 100644 --- a/tox.ini +++ b/tox.ini @@ -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