-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
201 lines (178 loc) · 4.79 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
#!/usr/bin/env python3
# SPDX-License-Identifier: BSD-3-Clause
from setuptools import setup, find_packages
from pathlib import Path
REPO_ROOT = Path(__file__).parent
README_FILE = (REPO_ROOT / 'README.md')
def vcs_ver():
def scheme(version):
if version.tag and not version.distance:
return version.format_with('')
else:
return version.format_choice('+{node}', '+{node}.dirty')
return {
'relative_to': __file__,
'version_scheme': 'guess-next-dev',
'local_scheme': scheme
}
setup(
name = 'Arcana',
use_scm_version = vcs_ver(),
author = 'Aki \'lethalbit\' Van Ness',
author_email = '[email protected]',
description = 'Advanced multi-platform build system',
license = 'BSD-3-Clause',
python_requires = '~=3.9',
zip_safe = True,
url = 'https://arcana.shmdn.link/',
long_description = README_FILE.read_text(),
long_description_content_type = 'text/markdown',
setup_requires = [
'wheel',
'setuptools',
'setuptools_scm'
],
extras_require = {
'build': [
'ninja>=1.8.2'
]
},
install_requires = [
'requests',
'Jinja2',
'arrow',
'rich>=13.0.0',
],
packages = find_packages(
where = '.',
exclude = (
'tests',
'tests.*',
'contrib',
'contrib.*'
)
),
entry_points = {
'console_scripts': [
'arcana = arcana.main:cli_main',
],
},
package_data = {
'arcana.targets.defs.embedded': [
'atxmega256a3u.json',
'tm4c123gh6pm.json',
],
'arcana.targets.defs.generic': [
],
'arcana.toolchains.defs': [
'components.json',
],
'arcana.toolchains.defs.targets': [
'aarch64-none-elf.json',
'aarch64-unknown-elf.json',
'aarch64-unknown-linux.json',
'alpha-linux-gnu.json',
'arm-none-eabi.json',
'arm-unknown-linux.json',
'avr.json',
'frv-none-elf.json',
'frv-unknown-elf.json',
'frv-unknown-linux.json',
'hppa1.1-hp-hpux10.json',
'hppa1.1-hp-hpux11.json',
'hppa2.0-hp-hpux10.json',
'hppa2.0-hp-hpux11.json',
'hppa64-none-elf.json',
'hppa64-unknown-elf.json',
'hppa-none-elf.json',
'hppa-unknown-elf.json',
'ia64-none-elf.json',
'ia64-unknown-elf.json',
'ia64-unknown-linux.json',
'lm32-none-elf.json',
'lm32-unknown-elf.json',
'm68k-none-elf.json',
'm68k-unknown-elf.json',
'm68k-unknown-linux.json',
'microblaze-none-elf.json',
'microblaze-unknown-elf.json',
'microblaze-unknown-linux.json',
'mips64-none-elf.json',
'mips64-unknown-elf.json',
'mips64-unknown-linux.json',
'mips-none-elf.json',
'mips-unknown-elf.json',
'mips-unknown-linux.json',
'or1k-none-elf.json',
'or1k-unknown-elf.json',
'or1k-unknown-linux.json',
'ppc64le-none-eabi.json',
'ppc64le-none-elf.json',
'ppc64le-unknown-elf.json',
'ppc64le-unknown-linux.json',
'ppc64-none-eabi.json',
'ppc64-none-elf.json',
'ppc64-unknown-elf.json',
'ppc64-unknown-linux.json',
'ppcle-none-eabi.json',
'ppcle-none-elf.json',
'ppcle-unknown-elf.json',
'ppcle-unknown-linux.json',
'ppc-none-eabi.json',
'ppc-none-elf.json',
'ppc-unknown-elf.json',
'ppc-unknown-linux.json',
'riscv32-none-elf.json',
'riscv32-unknown-elf.json',
'riscv32-unknown-linux.json',
'riscv64-none-elf.json',
'riscv64-unknown-elf.json',
'riscv64-unknown-linux.json',
'rx-none-elf.json',
'rx-unknown-elf.json',
'rx-unknown-linux.json',
's390-unknown-linux.json',
's390x-ibm-tpf.json',
's390x-unknown-linux.json',
'sh4-none-elf.json',
'sh4-unknown-elf.json',
'sh4-unknown-linux.json',
'sparc64-none-elf.json',
'sparc64-unknown-elf.json',
'sparc64-unknown-linux.json',
'sparc-none-elf.json',
'sparc-unknown-elf.json',
'sparc-unknown-linux.json',
'vax-linux-gnu.json',
'x86_64-none-elf.json',
'x86_64-unknown-elf.json',
'x86_64-unknown-linux.json',
'xtensa-esp32-elf.json',
'xtensa-lx106-elf.json',
'xtensa-none-elf.json',
]
},
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: AIX',
'Operating System :: POSIX :: BSD',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX :: SunOS/Solaris',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development :: Build Tools',
],
project_urls = {
'Documentation': 'https://arcana.shmdn.link/',
'Source Code' : 'https://github.com/shrine-maiden-heavy-industries/arcana',
'Bug Tracker' : 'https://github.com/shrine-maiden-heavy-industries/arcana/issues',
}
)