This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
/
setup.py
72 lines (68 loc) · 2.17 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
# Copyright 2014-2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0
# See LICENSE file for details.
import os
from setuptools import setup, find_packages
# Utility function to cat in a file (used for the PyPI readme)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# we need 'ntfsutils' in Windows
if os.name == 'nt':
platform_deps = ['ntfsutils>=0.1.3,<0.2']
entry_points={
"console_scripts": [
"yotta=yotta:main",
"yt=yotta:main",
],
}
scripts = []
else:
platform_deps = []
# entry points are nice, but add ~100ms to startup time with all the
# pkg_resources infrastructure, so we use scripts= instead on unix-y
# platforms:
scripts = ['bin/yotta', 'bin/yt']
entry_points = {}
setup(
name = "yotta",
version = read("yotta/version.txt").strip(),
author = "James Crosby",
author_email = "[email protected]",
description = ("Re-usable components for embedded software."),
license = "Apache-2.0",
keywords = "embedded package module dependency management",
url = "https://github.com/ARMmbed/yotta",
packages=find_packages(),
package_data={
'yotta': ['version.txt', 'lib/schema/*.json', 'lib/templates/*.txt', 'lib/templates/*.cmake']
},
long_description=read('pypi_readme.rst'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: Apache Software License",
"Environment :: Console",
],
entry_points=entry_points,
scripts=scripts,
test_suite = 'yotta.test',
install_requires=[
'semantic_version>=2.3.1,<3',
'requests[security]>=2.4.3,<3',
'certifi>=2016.2.28',
'PyGithub>=1.25,<2',
'colorama>=0.3,<0.4',
'hgapi>=1.7,<2',
'Jinja2>=2.7.0,<3',
'cryptography>=2.8,<3',
'PyJWT>=1.0,<2.0',
'pathlib>=1.0.1,<1.1',
'jsonschema>=2.4.0,<3.0',
'argcomplete>=0.8.0,<2.0',
'mbed_test_wrapper>=0.0.3,<2.0.0',
'valinor>=1.1.4,<2.0',
'intelhex>=2.0,<3.0',
'jsonpointer>=1.9,<2.0'
] + platform_deps
)