Pull requests

#23 Merged
Repository
magopian
Branch
test-suite-in-setup-py
Repository
tarek
Branch
default

adds test_suite and tests_require in setup.py

Author
  1. Mathieu Agopian
Reviewers
Description

Added the test_suite and tests_require parameters to the setup.py file, to allow contributors to run the test suite easily with a simple python setup.py test

  • Learn about pull requests

Comments (4)

      1. Tarek Ziadé repo owner

        in the top there's a

        try: 
           import setuptools 
        except ImportError: 
           ...
        

        add a flag to know if sertuptools is loaded then:

        if SETUPTOOLS:
           kwargs = {test_suite': ...}
        else:
           kwargs = {}
        

        and:

        setup(..., **kwargs)