forked from Etiqa/bromine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
79 lines (66 loc) · 2.11 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
"""
https://packaging.python.org/tutorials/distributing-packages/
"""
import io
import os
import re
from setuptools import setup, find_packages
# pylint: disable=missing-docstring
PKG_NAME = 'bromine'
SRC_DIR = 'src'
BASEDIR = os.path.dirname(__file__)
def read(file_path):
with io.open(file_path, 'r', encoding='utf-8') as fin:
return fin.read()
def version():
version_file_content = read(os.path.join(BASEDIR, SRC_DIR, PKG_NAME, '_version.py'))
version_match = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]',
version_file_content, re.M)
if not version_match:
raise RuntimeError('Unable to find version string.')
return version_match.group(1)
def long_description():
return read(os.path.join(BASEDIR, 'README.md'))
setup(
name=PKG_NAME,
version=version(),
description='A high-level web testing library based on Selenium and PageObject Pattern',
long_description=long_description(),
long_description_content_type='text/markdown',
url='https://github.com/Etiqa/bromine',
author='Etiqa s.r.l.',
author_email='',
license='2-clause BSD License',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
keywords='',
project_urls={},
# http://setuptools.readthedocs.io/en/latest/setuptools.html#using-find-packages
package_dir={'': SRC_DIR},
packages=find_packages(SRC_DIR),
package_data={},
data_files=[],
install_requires=[
'Pillow',
'PyHamcrest',
'requests',
'selenium',
'six',
],
extras_require={},
python_requires=', '.join([
'>=3.6',
'<4',
]),
entry_points={}
)