Install-time dependencies in requirements.txt

前端 未结 3 1100
灰色年华
灰色年华 2021-01-21 04:14

I\'m using tox to prepare venv and run unit tests and my application needs openopt library which in turn imports numpy.distutils.core in its setup.py.

No ma

3条回答
  •  粉色の甜心
    2021-01-21 04:39

    It's documented in https://testrun.org/tox/latest/example/basic.html#depending-on-requirements-txt

    deps = -rrequirements.txt
    

    According to common practice on github, common trick is:

    deps =
        setuptools
        -r{toxinidir}/requirements.txt
    

提交回复
热议问题