-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
85 lines (74 loc) · 1.99 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
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env python
import os
import io
import re
import glob
import sys
from setuptools import setup, find_packages
with io.open('./ancilla/__init__.py', encoding='utf8') as version_file:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file.read(), re.M)
if version_match:
version = version_match.group(1)
else:
raise RuntimeError("Unable to find version string.")
with io.open('README.md', encoding='utf8') as readme:
long_description = readme.read()
data_files = []
# start_point = os.path.join('ancilla', 'ui')
for root, dirs, files in os.walk('ancilla'):
root_files = [os.path.join(root, i) for i in files]
data_files.append((root, root_files))
data_files.append("requirements.txt")
setup(
name='ancilla',
version=version,
description='3D printer utilities',
long_description=long_description,
long_description_content_type="text/markdown",
author='LayerKeep',
author_email='[email protected]',
license='Other',
packages=find_packages(
exclude=[
'docs',
'tests',
'tests.*',
'windows',
'macOS',
'linux',
'iOS',
'android',
'django',
'share',
'collector',
'publisher'
]
),
data_files=data_files,
classifiers=[
'Development Status :: 1 - Planning',
'License :: OSI Approved :: Other',
],
install_requires= [r for r in map(str.strip, open("requirements.txt").readlines())],
python_requires='>=3.7',
options={
'app': {
'formal_name': 'Ancilla',
'bundle': 'com.layerkeep'
},
# Desktop/laptop deployments
'macos': {
'icon': 'tmp_ico',
'app_requires': [
]
},
'linux': {
'app_requires': [
]
},
'windows': {
'app_requires': [
]
},
}
)