Embed presentation
Download to read offline

![setup.py
tests_require = ["nose", "coverage", "webtest"]
setup(
tests_require=tests_require,
extras_require={
"testing": tests_require,
"docs": ["sphinx"],
},
)](https://image.slidesharecdn.com/setup-pysetup-cfg-120412045403-phpapp01/85/Setup-pysetup-cfg-2-320.jpg)

![setup.cfg
[aliases]
dev = develop easy_install hoge[testing] hoge
[docs]](https://image.slidesharecdn.com/setup-pysetup-cfg-120412045403-phpapp01/85/Setup-pysetup-cfg-4-320.jpg)



The document discusses using setup.py and setup.cfg files to define test and documentation requirements and install them. It shows how to define test requirements in setup.py and install them with pip. It also shows how to define an "alias" in setup.cfg to install additional requirements for development and documentation tasks.

![setup.py
tests_require = ["nose", "coverage", "webtest"]
setup(
tests_require=tests_require,
extras_require={
"testing": tests_require,
"docs": ["sphinx"],
},
)](https://image.slidesharecdn.com/setup-pysetup-cfg-120412045403-phpapp01/85/Setup-pysetup-cfg-2-320.jpg)

![setup.cfg
[aliases]
dev = develop easy_install hoge[testing] hoge
[docs]](https://image.slidesharecdn.com/setup-pysetup-cfg-120412045403-phpapp01/85/Setup-pysetup-cfg-4-320.jpg)

