mirror of
https://github.com/Telecominfraproject/ols-nos.git
synced 2025-12-24 16:57:22 +00:00
[cfggen] Conform With Python 3 Syntax (#5154)
Preparing sonic-cfggen for migration to Python 3. signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
This commit is contained in:
@@ -6,29 +6,53 @@ import unittest
|
||||
import glob
|
||||
|
||||
def get_test_suite():
|
||||
test_loader = unittest.TestLoader()
|
||||
test_suite = test_loader.discover('tests', pattern='*.py')
|
||||
return test_suite
|
||||
test_loader = unittest.TestLoader()
|
||||
test_suite = test_loader.discover('tests', pattern='*.py')
|
||||
return test_suite
|
||||
|
||||
setup(name='sonic-config-engine',
|
||||
version='1.0',
|
||||
description='Utilities for generating SONiC configuration files',
|
||||
author='Taoyu Li',
|
||||
author_email='taoyl@microsoft.com',
|
||||
url='https://github.com/Azure/sonic-buildimage',
|
||||
py_modules=['portconfig', 'minigraph', 'openconfig_acl', 'config_samples', 'redis_bcc', 'lazy_re'],
|
||||
scripts=['sonic-cfggen'],
|
||||
install_requires=[
|
||||
'ipaddr',
|
||||
'jinja2>=2.10',
|
||||
'lxml',
|
||||
'netaddr',
|
||||
'pyyaml',
|
||||
'pyangbind==0.6.0',
|
||||
'sonic-py-common'
|
||||
],
|
||||
test_suite='setup.get_test_suite',
|
||||
data_files=[
|
||||
setup(
|
||||
name = 'sonic-config-engine',
|
||||
version = '1.0',
|
||||
description = 'Utilities for generating SONiC configuration files',
|
||||
author='Taoyu Li',
|
||||
author_email='taoyl@microsoft.com',
|
||||
url = 'https://github.com/Azure/sonic-buildimage',
|
||||
py_modules = [
|
||||
'portconfig',
|
||||
'minigraph',
|
||||
'openconfig_acl',
|
||||
'config_samples',
|
||||
'redis_bcc',
|
||||
'lazy_re',
|
||||
],
|
||||
scripts = [
|
||||
'sonic-cfggen',
|
||||
],
|
||||
install_requires = [
|
||||
'future',
|
||||
'ipaddr',
|
||||
'jinja2>=2.10',
|
||||
'lxml',
|
||||
'netaddr',
|
||||
'pyyaml',
|
||||
'pyangbind==0.6.0',
|
||||
'sonic-py-common',
|
||||
],
|
||||
test_suite = 'setup.get_test_suite',
|
||||
data_files = [
|
||||
('/usr/share/sonic/templates', glob.glob('data/*')),
|
||||
],
|
||||
)
|
||||
],
|
||||
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
|
||||
classifiers=[
|
||||
'Intended Audience :: Developers',
|
||||
'Natural Language :: English',
|
||||
"Programming Language :: Python :: 2",
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
'Programming Language :: Python :: 3.8',
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user