-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
executable file
·34 lines (27 loc) · 978 Bytes
/
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
#!/usr/bin/env python3
import sys
from os import path
from setuptools import setup
if not sys.version_info[0] == 3:
sys.exit("Python 2.x is not supported; Python 3.x is required.")
########################################
version_py = path.join(path.dirname(__file__), '__version__.py')
d = {}
with open(version_py, 'r') as fh:
exec(fh.read(), d)
version_pep = d['__version__']
########################################
setup(
name="motoflash2sh",
version=version_pep,
description=("Convert Motorola flashfile.xml to fastboot shell script"),
long_description=open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
author="Daniel Lenski",
author_email="[email protected]",
license='GPL v3 or later',
url="https://github.com/dlenski/motoflash2sh",
py_modules=[ 'motoflash2sh' ],
entry_points={ 'console_scripts': [ 'motoflash2sh=motoflash2sh:main' ] },
python_requires=">=3",
)