-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathsetup.py
More file actions
110 lines (98 loc) · 3.59 KB
/
setup.py
File metadata and controls
110 lines (98 loc) · 3.59 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# -*- coding: utf-8 -*-
"""
Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
This file is part of Toolium.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from setuptools import setup
def read_file(filepath):
with open(filepath) as f:
return f.read()
def get_long_description():
"""Get README content and update rst urls
:returns: long description
"""
# Get readme content
readme = read_file('README.rst')
# Change rst urls to ReadTheDocs html urls
docs_url = 'http://toolium.readthedocs.org/en/latest'
description = readme.replace('/CHANGELOG.rst', '{}/changelog.html'.format(docs_url))
for doc in ['driver_configuration', 'page_objects', 'bdd_integration', 'visual_testing', 'tests_result_analysis']:
description = description.replace('/docs/{}.rst'.format(doc), '{}/{}.html'.format(docs_url, doc))
return description
setup(
name='toolium',
version=read_file('VERSION').strip(),
packages=[
'toolium',
'toolium.pageobjects',
'toolium.pageelements',
'toolium.pageelements.playwright',
'toolium.behave',
'toolium.utils',
'toolium.utils.ai_utils',
],
package_data={
'': [
'resources/VisualTestsTemplate.html',
'resources/VisualTests.js',
'resources/VisualTests.css',
]
},
install_requires=read_file('requirements.txt').splitlines(),
setup_requires=['pytest-runner'],
tests_require=read_file('requirements_dev.txt').splitlines(),
extras_require={
"playwright": ["playwright~=1.43"],
"ai": [
"spacy~=3.8.7",
"sentence-transformers~=5.1",
"transformers==4.56.2; python_version < '3.10'",
"openai~=1.108"
]
},
test_suite='toolium.test',
author='Rubén González Alonso, Telefónica I+D',
author_email='ruben.gonzalezalonso@telefonica.com',
url='https://github.com/telefonica/toolium',
description='Wrapper tool of Selenium and Appium libraries to test web and mobile applications in a single project',
long_description_content_type='text/x-rst',
long_description=get_long_description(),
keywords=[
'selenium',
'appium',
'webdriver',
'web_automation',
'mobile_automation',
'page_object',
'visual_testing',
'ai',
'bdd',
'behave',
'pytest'
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Other Audience',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
],
license='Apache 2.0',
)