forked from allankp/pytest-testrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (27 loc) · 1.04 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
from setuptools import setup
INSTALL_REQUIREMENTS = 'requirements/base.txt'
def read_file(file, split_lines=False):
with open(file, 'r') as f:
return f.read().splitlines() if split_lines else f.read()
def get_requirements(*files):
requirements = set()
for file in files:
for requirement in read_file(file, split_lines=True):
requirements.add(requirement)
return list(requirements)
setup(
name='pytest-testrail',
description='pytest plugin for creating TestRail runs and adding results + screenshots',
long_description=read_file('README.rst'),
version='2.9.0',
author='Allan Kilpatrick / Ian Muldoon',
author_email='[email protected], [email protected]',
url='http://github.com/ianmuldoon/pytest-testrail/',
packages=[
'pytest_testrail',
],
package_dir={'pytest_testrail': 'pytest_testrail'},
install_requires=get_requirements(INSTALL_REQUIREMENTS),
include_package_data=True,
entry_points={'pytest11': ['pytest-testrail = pytest_testrail.conftest']},
)