diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-06-15 15:57:44 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-06-15 15:57:44 -0400 |
commit | 412d5d34c424da0f5c291e9f9e706098c541017c (patch) | |
tree | c8612cba956a3ac9c11059b5b3293119375d2042 /setup.py | |
parent | 632d56a23a947a23e18fa234d675e34a1a119593 (diff) | |
parent | b77f11b35bf0978247fc88d0f4239c5bd4f65d66 (diff) | |
download | vyos-cloud-init-412d5d34c424da0f5c291e9f9e706098c541017c.tar.gz vyos-cloud-init-412d5d34c424da0f5c291e9f9e706098c541017c.zip |
move 'main' into cloudinit/cmd/ for easier testing
This moves bin/cloud-init's content into cloudinit/cmd/main.py,
and then fixes the pep8/flake8 issues with that.
The end result is easier testing of main.
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -204,10 +204,14 @@ setuptools.setup( author_email='scott.moser@canonical.com', url='http://launchpad.net/cloud-init/', packages=setuptools.find_packages(exclude=['tests']), - scripts=['bin/cloud-init', - 'tools/cloud-init-per'], + scripts=['tools/cloud-init-per'], license='GPLv3', data_files=data_files, install_requires=requirements, cmdclass=cmdclass, + entry_points={ + 'console_scripts': [ + 'cloud-init = cloudinit.cmd.main:main' + ], + } ) |