-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
executable file
·42 lines (37 loc) · 1014 Bytes
/
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
#!/usr/bin/env python3
'''
Setup for pyfos
'''
from setuptools import setup, find_packages
import re
exec(open('pyfos/version.py').read())
req_file = 'requirements.txt'
def get_required_packages():
packages = []
with open(req_file) as req:
for line in req:
line = line.strip()
# Skip comment lines
if re.search(r'\s*#', line) is not None:
continue
if not line:
continue
packages.append(line)
req.close()
return packages
with open("README.md", "r") as fh:
long_description = fh.read()
fh.close()
setup(
name='pyfos',
version=__version__,
description='Brocade FOS Library.',
long_description=long_description,
long_description_content_type="text/markdown",
author='Brocade Communications Systems LLC.',
author_email='[email protected]',
url='http://www.brocade.com/',
packages=find_packages(),
install_requires=get_required_packages(),
zip_safe=False,
)