-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
66 lines (59 loc) · 1.93 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
#!/usr/bin/env python
# Copyright (c) 2017-2019 Martin Olejar
#
# SPDX-License-Identifier: BSD-3-Clause
# The BSD-3-Clause license for this file can be found in the LICENSE file included with this distribution
# or at https://spdx.org/licenses/BSD-3-Clause.html#licenseText
from os import path
from setuptools import setup, find_packages
from imx import __version__, __license__, __author__, __contact__
def long_description():
try:
import pypandoc
readme_path = path.join(path.dirname(__file__), 'README.md')
return pypandoc.convert(readme_path, 'rst').replace('\r', '')
except (IOError, ImportError):
return (
"More on: https://github.com/molejar/pyIMX"
)
setup(
name='imx',
version=__version__,
license=__license__,
author=__author__,
author_email=__contact__,
url='https://github.com/molejar/pyIMX',
description='Open Source library for easy development with i.MX platform',
long_description=long_description(),
platforms="Windows, Linux",
python_requires=">=3.5",
setup_requires=[
'setuptools>=40.0'
],
install_requires=[
'click==7.0',
'PyYAML==5.4',
'bincopy==16.0.0',
'easy_enum==0.2.0',
'cryptography==3.2',
'pyusb==1.0.0;platform_system!="Windows"',
'pywinusb==0.4.2;platform_system=="Windows"'
],
classifiers=[
'Programming Language :: Python :: 3',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'License :: OSI Approved :: BSD License',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Embedded Systems',
'Topic :: System :: Hardware',
'Topic :: Utilities'
],
packages=find_packages('.'),
entry_points={
'console_scripts': [
'imxim = imx.img.__main__:main',
'imxsd = imx.sdp.__main__:main',
],
}
)