-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
58 lines (51 loc) · 1.74 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
# -*- coding: utf-8 -*-
import io
from setuptools import setup
def parse_requirements(file):
required = []
with open(file) as f:
for req in f.read().splitlines():
if not req.strip().startswith("#"):
required.append(req)
return required
def read(*args, **kwargs):
encoding = kwargs.get("encoding", "utf-8")
sep = kwargs.get("sep", "\n")
buf = []
for filename in args:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
requires = parse_requirements("requirements.txt")
long_description = read("README.rst", "CHANGES.rst")
LGPLv3 = (
"License :: OSI Approved :: GNU Lesser General Public License v3 or"
" later (LGPLv3+)"
)
setup(
name="selenium-configurator",
version="0.1.2",
description="Helper API to define multiple webdrivers in config files.",
long_description=long_description,
author="Pierre Verkest",
author_email="[email protected]",
url="https://github.com/anybox/selenium-configurator",
packages=["selenium_configurator", "selenium_configurator.drivers"],
install_requires=requires,
tests_require=requires + ["nose"],
license="LGPL-3.0",
keywords="nose selenium CI",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
LGPLv3,
"Operating System :: OS Independent",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.7",
],
)