-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
executable file
·49 lines (43 loc) · 1.44 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
#!/usr/bin/env python
from setuptools import find_packages, setup
from netengine import get_version
def get_install_requires():
"""
parse requirements.txt, ignore links, exclude comments
"""
requirements = []
for line in open('requirements.txt').readlines():
# skip to next iteration if comment or empty line
if (
line.startswith('#')
or line == ''
or line.startswith('http')
or line.startswith('git')
):
continue
# add line to requirements
requirements.append(line)
return requirements
setup(
name='netengine',
version=get_version(),
description='Abstraction layer for extracting information from network devices.',
long_description=open('README.rst').read(),
author='OpenWISP and Ninux.org Contributors',
author_email='[email protected]',
license='MIT',
url='https://github.com/openwisp/netengine',
packages=find_packages(exclude=['tests', 'tests.*', 'docs', 'docs.*']),
install_requires=get_install_requires(),
zip_safe=False,
classifiers=[
'Development Status :: 1 - Planning',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: System :: Networking',
],
test_suite='nose2.collector.collector',
)