How to specify version ranges in install_requires (setuptools, distribute)

前端 未结 4 1824
余生分开走
余生分开走 2020-12-14 05:58

I want to make a package to depend the particular version range e.g. >= 0.5.0, < 0.7.0. Is it possible in install_requires option, and if so

4条回答
  •  我在风中等你
    2020-12-14 06:07

    Another way to it is to use wildcards.

    This does not apply to >= 0.5.0, < 0.7.0, but in case you decide that all maintenance releases should be supported (e.g. 0.5.0 to 0.5.x), you can use

    == 0.5.*

    e.g. docutils == 0.3.*

提交回复
热议问题