Distribution: Fix broken setup_requires

The `pyyaml` dependency is needed in `install_requires` but also in
`setup_requires`, because running `setup.py` requires importing
`yamllint`, which itself imports `yaml`.
This commit is contained in:
Adrien Vergé 2016-01-24 14:52:18 +01:00
parent 7983c66093
commit e3ebea6033

View File

@ -45,6 +45,8 @@ setup(
scripts=['bin/yamllint'],
package_data={'yamllint': ['conf/*.yml']},
install_requires=['pyyaml'],
setup_requires=['pyyaml'], # importing `yamllint` (for APP_NAME etc.)
# requires importing `yaml`
tests_require=['nose'],
test_suite='nose.collector',
)