-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
45 lines (36 loc) · 1.52 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
import os
from setuptools import setup, find_packages
version_data = {}
with open(os.path.join("src", "WhiteLibrary", "version.py")) as f:
exec(f.read(), version_data)
requirements = []
with open("requirements.txt", "r") as f:
requirements = list(filter(lambda s: s != "", f.read().split("\n")))
def getpath(filename):
return os.path.join(os.path.dirname(__file__),
filename)
build = 0
if os.path.exists(getpath("build.info")):
build = open(getpath("build.info")).read().strip()
if version_data["STABLE"]:
version = "{}".format(version_data["VERSION"])
else:
version = "{}.{}.pre".format(version_data["VERSION"], build)
setup(name="robotframework-whitelibrary",
version=version,
description="Windows GUI testing library for Robot Framework",
author="SALabs",
author_email="to.be.added@noexist89a887.org",
license="APACHE",
url="https://github.com/Omenia/robotframework-whitelibrary",
install_requires=requirements,
packages=find_packages("src", exclude=["tests"]),
package_dir={"WhiteLibrary": "src/WhiteLibrary"},
package_data={"WhiteLibrary": ["bin/*.dll"]},
classifiers=["License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"],
)