This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 357
/
setup.py
88 lines (75 loc) · 2.83 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
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from setuptools import setup
# Figure out if the system already has a supported Crypto library
rsa_signer_library = 'cryptography'
try:
import rsa
rsa_signer_library = 'rsa'
except ImportError:
try:
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
from Crypto.Signature import pkcs1_15
rsa_signer_library = 'pycryptodome'
except ImportError:
pass
setup(
name = 'adb',
packages = ['adb'],
version = '1.3.0',
author = 'Fahrzin Hemmati',
author_email = '[email protected]',
maintainer = 'Fahrzin Hemmati',
maintainer_email = '[email protected]',
url = 'https://github.com/google/python-adb',
description = 'A pure python implementation of the Android ADB and Fastboot protocols',
long_description = '''
This repository contains a pure-python implementation of the Android
ADB and Fastboot protocols, using libusb1 for USB communications.
This is a complete replacement and rearchitecture of the Android
project's ADB and fastboot code available at
https://github.com/android/platform_system_core/tree/master/adb
This code is mainly targeted to users that need to communicate with
Android devices in an automated fashion, such as in automated
testing. It does not have a daemon between the client and the device,
and therefore does not support multiple simultaneous commands to the
same device. It does support any number of devices and never
communicates with a device that it wasn't intended to, unlike the
Android project's ADB.
''',
keywords = ['android', 'adb', 'fastboot'],
install_requires = [
'libusb1>=1.0.16',
rsa_signer_library
],
extra_requires = {
'fastboot': 'progressbar>=2.3'
},
## classifier list https://pypi.python.org/pypi?:action=list_classifiers
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Testing'
],
entry_points={
"console_scripts": [
"pyadb = adb.adb_debug:main",
"pyfastboot = adb.fastboot_debug:main",
],
}
)