forked from jinxo13/HuaweiB525Router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (43 loc) · 1.38 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
import os
import re
from setuptools import find_packages, setup
READMEFILE = "README.md"
VERSIONFILE = os.path.join("huawei_lte", "_version.py")
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
def get_version():
verstrline = open(VERSIONFILE, "rt").read()
mo = re.search(VSRE, verstrline, re.M)
if mo:
return mo.group(1)
else:
raise RuntimeError(
"Unable to find version string in %s." % VERSIONFILE)
setup(
name='huawei_lte',
version=get_version(),
description='Huawei LTE API',
long_description=open(READMEFILE).read(),
url='https://github.com/jinxo13/HuaweiB525Router',
author='Hamish McNeish',
license='BSD',
packages=find_packages(),
install_requires=[
'huawei_lte>=2.0.0',
'pycrypto>=2.6.1',
'IPy>=1.0.0'
],
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Libraries :: Python Modules',
'Natural Language :: English',
],
)