-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (42 loc) · 1.53 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
import setuptools
from os.path import dirname, join
current_path = dirname(__file__)
with open(join(current_path, "README.md"), "r", encoding="utf-8") as fh:
long_description = fh.read()
with open(join(current_path, "requirements.txt"), "r", encoding="utf=8") as fh:
requires = fh.readlines()
def get_version(rel_path):
with open(rel_path) as fh:
for line in fh.readlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
setuptools.setup(
name="autoinsight",
version=get_version("src/autoinsight/__init__.py"),
author="Erxin(Edwin) Shang",
author_email="[email protected]",
description="A Simplified UI automation package",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/shangerxin/autoinsight",
project_urls={
"Bug Tracker": "https://github.com/shangerxin/autoinsight/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: Microsoft :: Windows",
],
install_requires=requires,
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
python_requires=">=3.6",
include_package_data=True,
package_data={
"": ["*.txt", "*.yml", "*.json", "*.pt"]
},
data_files=["requirements.txt"]
)