-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
107 lines (95 loc) · 3.3 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
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2015 Telefonica Investigación y Desarrollo, S.A.U
This file is part of telefonica-iotqatools
iotqatools is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
iotqatools is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public
License along with iotqatools.
If not, seehttp://www.gnu.org/licenses/.
For those usages not covered by the GNU Affero General Public License
please contact with::[[email protected]]
"""
import re
from setuptools import setup
def parse_requirements(file_name):
requirements = []
for line in open(file_name, 'r').read().split('\n'):
if re.match(r'(\s*#)|(\s*$)', line):
continue
if re.match(r'\s*-e\s+', line):
# TODO support version numbers
requirements.append(re.sub(r'\s*-e\s+.*#egg=(.*)$', r'\1', line))
elif re.match(r'\s*-f\s+', line):
pass
elif re.match(r'\s*-r\s+', line):
pass
else:
requirements.append(line)
return requirements
def parse_dependency_links(file_name):
dependency_links = []
for line in open(file_name, 'r').read().split('\n'):
if re.match(r'\s*-[ef]\s+', line):
dependency_links.append(re.sub(r'\s*-[ef]\s+', '', line))
return dependency_links
def get_requirements(filename):
return open(filename).read().splitlines()
readme = []
with open('README.md', 'r') as fh:
readme = fh.readlines()
req = get_requirements('requirements.txt')
req_dev = get_requirements('requirements.txt')
setup(
name='iotqatools',
version='0.6.1',
description='Iot QA Tools',
url='https://github.com/telefonicaid/iotqatools',
author='Telefonica I+D',
zip_safe=False,
long_description='\n'.join(readme),
install_requires=req,
include_package_data=True,
classifiers=[
'Development Status :: 2 - Development',
'Framework :: Behave',
'Intended Audience :: Developers',
'Intended Audience :: Quality Assurance',
'Operating System :: OS Independent',
'Topic :: Software Development',
'Programming Language :: Python :: 2.7'
],
py_modules=[
'iotqatools.ac_utils',
'iotqatools.cb_utils',
'iotqatools.cb_ngsiv2_utils',
'iotqatools.cb_v2_utils',
'iotqatools.cep_utils',
'iotqatools.ckan_utils',
'iotqatools.fabric_utils',
'iotqatools.helpers_utils',
'iotqatools.iot_logger',
'iotqatools.iot_tools',
'iotqatools.iota_utils',
'iotqatools.ks_utils',
'iotqatools.iota_measures',
'iotqatools.mongo_utils',
'iotqatools.mysql_utils',
'iotqatools.orchestator_utils',
'iotqatools.pep_utils',
'iotqatools.remote_log_utils',
'iotqatools.sth_utils'
],
packages=[
'iotqatools',
'iotqatools.templates',
'iotqatools.simulators'
],
)