2012-07-17 23 views

Trả lời

1

Khi liên kết http chết trong liên kết hpk42 ở đây là một câu trả lời:

Bạn có thể ghi đè lên các lệnh kiểm tra để chạy thử nghiệm tox thay vì như vậy

class ToxTest(TestCommand): 
    user_options = [] 

    def initialize_options(self): 
     TestCommand.initialize_options(self) 

    def run_tests(self): 
     import tox 
     tox.cmdline() 


setuptools.setup(
    name='package', 
    version=0.1, 
    author='Author', 
    author_email='[email protected]', 
    description='', 
    license='GPLv3', 
    keywords='', 
    url='', 
    install_requires=['numpy'], 
    packages=[], 
    cmdclass = {'test': ToxTest}, 
) 
Các vấn đề liên quan