-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (22 loc) · 795 Bytes
/
setup.py
File metadata and controls
29 lines (22 loc) · 795 Bytes
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
# coding=utf-8
import os
from setuptools import setup, find_packages
def parse_requirements(filename='requirements.txt'):
""" load requirements from a pip requirements file. (replacing from pip.req import parse_requirements)"""
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]
project_name = find_packages()[0]
if '.' in project_name:
project_name = project_name.split('.', 1)[0]
if os.path.exists('requirements.txt'):
reqs = parse_requirements()
else:
reqs = []
setup(
name='testflow_' + project_name,
version='1.0.2',
description='A test automation project using poco and pocounit.',
packages=find_packages(),
include_package_data=True,
install_requires=reqs,
)