forked from axe-selenium-python/axe-selenium-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (37 loc) · 1.38 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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import find_packages, setup
from setuptools.command.build_py import build_py
class NPMInstall(build_py):
def run(self):
self.run_command('npm install')
build_py.run(self)
with open("./README.rst") as f:
readme = f.read()
setup(
name="axe-selenium-python",
use_scm_version=True,
setup_requires=["setuptools_scm"],
version="3.0.1",
description="Python library to integrate axe and selenium for web \
accessibility testing.",
long_description=open("README.rst").read(),
url="https://github.com/asicsdigital/axe-selenium-python",
author="Kimberly Sereduck/Len Khudisman",
author_email="len.khudisman@asics.com",
cmdclass={
'npm_install': NPMInstall
},
packages=find_packages(),
package_data={
"axe_selenium_python": [
"axe_selenium_python/node_modules/axe-core/axe.min.js",
"axe_selenium_python/tests/test_page.html",
]
},
include_package_data=True,
install_requires=["selenium>=3.0.2", "pytest>=3.0"],
license="Mozilla Public License 2.0 (MPL 2.0)",
keywords="axe-core selenium pytest-selenium accessibility automation mozilla",
)