finish setup

This commit is contained in:
fluzzi 2022-03-29 12:45:17 -03:00
parent b199ddc8ac
commit 9f3cb6f6d9
3 changed files with 15 additions and 6 deletions

View File

@ -1,9 +1,8 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import sys import sys
# from connapp import connapp from connapp import connapp
# from configfile import configfile from configfile import configfile
# from core import node from core import node
from conn import *
def main(): def main():
conf = configfile() conf = configfile()

10
conn/app.py Normal file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env python3
import sys
from conn import *
def main():
conf = configfile()
connapp(conf, node)
if __name__ == '__main__':
sys.exit(main())

View File

@ -1,7 +1,7 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
import pathlib import pathlib
VERSION = '2.0.3' VERSION = '2.0.5'
DESCRIPTION = 'Conn is a SSH/Telnet connection manager and automation module' DESCRIPTION = 'Conn is a SSH/Telnet connection manager and automation module'
here = pathlib.Path(__file__).parent.resolve() here = pathlib.Path(__file__).parent.resolve()
@ -32,7 +32,7 @@ setup(
], ],
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'conn=conn.__main__:main', 'conn=conn.app:main',
] ]
} }
) )