1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

ADD travis-configuration-file and comments in setup.py

This commit is contained in:
Patrick Kanzler
2016-01-05 10:39:28 +01:00
parent 029549aaae
commit 8b8ab80e5f
2 changed files with 14 additions and 0 deletions

View File

@@ -10,18 +10,22 @@ def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
class Tox(TestCommand):
"""proxy class that enables tox to be run with setup.py test"""
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def initialize_options(self):
"""initialize the user-options"""
TestCommand.initialize_options(self)
self.tox_args = None
def finalize_options(self):
"""finalize user-options"""
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
"""run tox and pass on user-options"""
#import here, cause outside the eggs aren't loaded
import tox
import shlex