神刀安全网

Python requirements for Humans

Requirements

☛ Python requirements for Humans ™

Python requirements for Humans Python requirements for Humans

Write your adorable requirements.txt once and forget setup.py hassles.

from setuptools import setup from requirements import r  setup(     name='your-package',     version='0.0.1',     **r.requirements)

Features

  • Requirements discovery
  • Manage dependency_links and tests_require
  • Just drop requirements.py in your package directory
  • Works well withpip-tools
  • Configurable for different requirements layout
  • Python 2.7 , 3.3 , 3.4 , 3.5
  • Very light, well tested, no dependencies and more!

Usage

  • Download latest requirements.py release in your package root directory
  • Import it in your setup.py , like in previous example

Some variables are configurable like that:

from requirements import r  r.requirements_path = 'reqs.txt' r.tests_requirements_path = 'reqs-tests.txt'

License is MIT .

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Python requirements for Humans

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮