forked from inkcut/inkcut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (59 loc) · 1.75 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
"""
Copyright (c) 2017, Jairus Martin.
Distributed under the terms of the GPL v3 License.
The full license is in the file LICENSE, distributed with this software.
Created on Dec 15, 2017
@author: jrm
"""
import re
import sys
from setuptools import setup, find_packages
#: Common requirements
install_requires = [
'twisted',
'enamlx>=0.4.2',
'pyqtgraph',
'qtconsole', # now optional
'pyserial>=3.5',
'jsonpickle',
'lxml', # use sudo apt install libxml2-dev libxslt-dev
#'PyQt5', # Let users install whatever Qt they want
'qt-reactor',
# Python 2:
'faulthandler; python_version < \'3.0\'',
'enaml==0.10; python_version < \'3.0\'',
# Python 3
'enaml>=0.10; python_version > \'3.0\'',
# Linux:
'pycups; sys_platform == \'linux2\'',
'pycups; sys_platform == \'linux\'',
# Windows:
'pywin32; sys_platform == \'win32\''
]
# Read version
with open('inkcut/__init__.py') as f:
m = re.search(r'version = ["\'](.+)["\']', f.read(), re.MULTILINE)
assert m is not None, 'Failed to read version'
version = m.group(1)
setup(
name='inkcut',
packages=find_packages(),
include_package_data=True,
version=version,
author="Inkcut team",
author_email="[email protected]",
license='GPLv3',
url='https://github.com/codelv/inkcut/',
description="An application for controlling 2D plotters, cutters, "
"engravers, and CNC machines.",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
entry_points={
'console_scripts': ['inkcut = inkcut.app:main'],
},
install_requires=install_requires,
#extras_require={
# # IPython console plugin
# 'console': ["qtconsole"],
#}
)