forked from tazjel/declaracad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (57 loc) · 1.49 KB
/
setup.py
File metadata and controls
65 lines (57 loc) · 1.49 KB
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
#!/usr/bin/env python
"""
Copyright (c) 2017-2020, Jairus Martin.
Distributed under the terms of the GPL v3 License.
The full license is in the file COPYING.txt, distributed with this software.
Created on Dec 13, 2017
"""
import re
import sys
from setuptools import setup, find_packages
requirements = [
#'twisted',
'enaml>=0.10.4',
'jsonpickle',
'qtconsole',
'QScintilla',
'numpydoc',
'markdown',
'enamlx',
'asyncqt', # asyncio + qt
'pyserial',
'lxml',
'PyQt5',
'PyQtWebEngine',
'service_identity',
'ezdxf',
]
if sys.platform == 'win32':
requirements.extend([
'pywin32',
])
def find_version():
with open('declaracad/__init__.py') as f:
for line in f:
m = re.search(r'version = [\'"](.+)["\']', line)
if m:
return m.group(1)
raise Exception("Could not find version in declaracad/__init__.py")
setup(
name='declaracad',
version=find_version(),
description='Parametric 3D modeling with enaml and OpenCascade',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='CodeLV',
author_email='frmdstryr@gmail.com',
license='GPL3',
url='https://github.com/codelv/declaracad',
entry_points={'console_scripts': [
'declaracad = declaracad:main',
]},
packages=find_packages(),
package_data={
'declaracad': ['*/*.enaml', '*/*.png', '*/*.svg'],
},
install_requires=requirements,
)