-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
setup.py
52 lines (47 loc) · 1.77 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
import logging
import os
import sys
from setuptools import setup, find_packages
_DIR_OF_THIS_SCRIPT = os.path.split(__file__)[0]
_VERSION_FILE_NAME = "version.txt"
_VERSION_FILE_PATH = os.path.join(_DIR_OF_THIS_SCRIPT, "adbe", _VERSION_FILE_NAME)
_README_FILE_NAME = os.path.join("docs", "README.rst")
_README_FILE_PATH = os.path.join(_DIR_OF_THIS_SCRIPT, _README_FILE_NAME)
with open(_VERSION_FILE_PATH, "r") as fh:
version = fh.read().strip()
if os.path.exists(_README_FILE_NAME):
with open(_README_FILE_PATH, "r") as fh:
long_description = fh.read()
else:
logging.warning("README file missing, final package will lack README: %s", _README_FILE_PATH)
long_description = ""
packages = find_packages(exclude=["ez_setup", "examples", "tests"])
if not packages or packages.index("adbe") == -1:
print("Failed to find adbe package")
sys.exit(1)
setup(name="adb-enhanced",
version=version,
description="Swiss-army knife for Android testing and development",
long_description=long_description,
long_description_content_type="text/x-rst",
classifiers=["Intended Audience :: Developers"],
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords="Android ADB developer",
author="Ashish Bhatia",
author_email="[email protected]",
url="https://github.com/ashishb/adb-enhanced",
license="Apache",
packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
include_package_data=True,
zip_safe=True,
install_requires=[
# -*- Extra requirements: -*-
"docopt",
"psutil",
],
entry_points={
# -*- Entry points: -*-
"console_scripts": ["adbe=adbe.main:main"],
},
python_requires=">=3.8"
)