1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/usr/bin/env python import setuptools try: import testtools cmd_class = {} if getattr(testtools, 'TestCommand', None) is not None: cmd_class['test'] = testtools.TestCommand except: cmd_class = None setuptools.setup( python_requires='>=3.6', cmdclass=cmd_class, setup_requires=['pbr'], pbr=True)