0

I want to specify development only requirements. Specifying them with all other requirements seems suboptimal, normal users will not need it.

I see (1 2) that one of options is to have file in requirements.txt format and to instruct people to install it with command like pip install -r requirements-dev.txt -r requirements-docs.txt

Is this a preferred solution?

reducing activity
  • 1,985
  • 2
  • 36
  • 64
  • 1
    Have you seen [Setuptools development requirements](https://stackoverflow.com/questions/28509965/setuptools-development-requirements)? – MatsLindh Mar 28 '21 at 09:26
  • @MatsLindh No, and searching failed to find it. I guess that I produced duplicate, thanks for locating it. – reducing activity Mar 28 '21 at 09:28
  • Somewhat of a duplicate question indeed. Note that some tooling help with that. A pattern I often see (and that I use) is to combine [_tox_](https://pypi.org/project/tox/) with an extra: specify a _development_ tox environment that is set to be populated with the `dev` extra. But you could also use [_poetry_ and its `dev-dependencies`](https://pypi.org/project/poetry/), there is alo [_pdm_](https://pypi.org/project/pdm/), and more... – sinoroc Mar 28 '21 at 10:02

0 Answers0