Improved setup.py

This commit is contained in:
Sven Heidemann 2020-12-15 20:11:41 +01:00
parent aa90adfd48
commit d76bf45645
3 changed files with 6 additions and 7 deletions

View File

@ -0,0 +1,2 @@
python setup.py install # for install
python setup.py sdist bdist # for build

View File

@ -19,7 +19,7 @@ setuptools.setup(
],
entry_points={
'console_scripts': [
'cpl = sh_edraft.cli.cpl_cli:main'
'cpl = sh_edraft.cli.cpl_cli:CPLCli.main'
]
}
)

View File

@ -1,8 +1,5 @@
class CPLCli:
def main(self):
print('Hello world')
@staticmethod
def main():
cli = CPLCli()
cli.main()
print('Hello world')