add setup file

This commit is contained in:
2021-04-03 21:43:43 +02:00
parent ae0a8aa4f0
commit d5789b5e6c
3 changed files with 21 additions and 1 deletions

8
README Normal file
View File

@@ -0,0 +1,8 @@
Install
pip install --user -e .
Uninstall
pip uninstall controldeck

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys
from os import path, sep, makedirs from os import path, sep, makedirs
from subprocess import Popen, PIPE, STDOUT from subprocess import Popen, PIPE, STDOUT
from configparser import ConfigParser, DuplicateSectionError from configparser import ConfigParser, DuplicateSectionError
@@ -129,5 +130,8 @@ def application():
return wp return wp
if __name__ == '__main__': def main():
justpy() justpy()
if __name__ == '__main__':
sys.exit(main())

8
setup.py Normal file
View File

@@ -0,0 +1,8 @@
from setuptools import setup
setup(
name='ControlDeck',
py_modules=['controldeck'],
entry_points={
'console_scripts': ['controldeck = controldeck:main', ],},
)