我想在我的setup.py文件中爲我的項目編寫多個測試命令的別名。Setuptools,在一行中明確地分隔多個命令調用
但是,當我嘗試在一行上運行多個命令時,當在其他命令之前調用「nosetests」命令時,我遇到了問題。
這工作
$ python setup.py lint nosetests
pylint output
nosetests output
但如果我交流的命令,我只得到nosetests
輸出。
我認爲lint
命令被nosetests參數解析器所使用。
$ python setup.py nosetests lint
nosetests output
# No pylint output
所以,我想知道是否有一種方法明確分開命令?
感謝
要保持你的'setup.py'更多的聲明;您可以將命令性任務卸載到['paver'](http://paver.github.io/paver/)和/或['fabric'](http://fabfile.org)「。 – jfs 2013-04-29 16:33:16