Add packaging infrastructure

Split up single script into a package with multiple modules.
Also add a setuptools control file. With this, stcgal can be
installed like any other program. It's still possible to launch
from the sources directly. stcgal.py has been converted into a
simple launcher.

v2: fix imports
This commit is contained in:
Grigori Goronzy
2015-11-23 19:12:03 +01:00
parent 797dcbccda
commit bc242390e7
7 changed files with 3086 additions and 2965 deletions

16
setup.py Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env python3
import stcgal
from setuptools import setup, find_packages
setup(
name = "stcgal",
version = "1.0",
packages = find_packages(exclude=["doc"]),
install_requires = ["pyserial"],
entry_points = {
"console_scripts": [
"stcgal = stcgal.frontend:cli",
],
}
)