Skip to content

Commit

Permalink
Build a python3 wheel with sonic_psu (sonic-net#162)
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Luo <[email protected]>
  • Loading branch information
qiluo-msft authored Dec 7, 2017
1 parent 0c0a2f0 commit ea108f3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import glob
import sys
from setuptools import setup
import unittest

# For python3 wheel, we currently don't need test
# TODO: build python3 wheel of all the dependencies, and remove conditional test
def get_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('sonic-utilities-tests', pattern='*.py')
return test_suite
if sys.version_info >= (3, 0):
return unittest.TestSuite()
else:
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('sonic-utilities-tests', pattern='*.py')
return test_suite

setup(
name='sonic-utilities',
Expand Down Expand Up @@ -85,6 +91,7 @@ def get_test_suite():
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Topic :: Utilities',
],
keywords='sonic SONiC utilities command line cli CLI',
Expand Down

0 comments on commit ea108f3

Please sign in to comment.