-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
57 lines (47 loc) · 1.65 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
import io
import os
import re
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
with io.open('webdriver_manager/__init__.py', 'rt', encoding='utf8') as f:
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)
here = os.path.abspath(os.path.dirname(__file__))
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['tests']
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(
name='py-webdriver-manager',
version=version,
description='Webdriver executable manager utility',
url='https://github.com/lucianopuccio/webdriver-manager',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Natural Language :: English',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
],
keywords='test selenium webdriver webdriver-manager',
packages=find_packages(),
install_requires=['requests', 'tqdm==4.23.1'],
tests_require=['pytest'],
include_package_data=True,
entry_points={
'console_scripts': [
'webdriver-manager=webdriver_manager.main:main',
],
},
cmdclass={'test': PyTest}
)