/
setup.py
executable file
·34 lines (30 loc) · 1.11 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
#! /usr/bin/env python3
from setuptools import setup, find_packages
from distutils.util import convert_path
main_ns = {}
try:
ver_path = convert_path("autofocus/version.py")
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)
except FileNotFoundError:
main_ns['__version__'] = "unknown"
install_requires = []
with open("requirements.txt", "r") as req_file:
requirements = req_file.readlines()
for line in requirements:
line = line.split("#")[0].strip()
if not line or line.startswith("#"):
continue
install_requires.append(line)
setup(
name = "autofocus-client-library",
packages = find_packages(exclude=["tests"]),
version = main_ns["__version__"],
description = "AutoFocus Client Lib",
author = "GSRT Tech",
author_email = "gsrt-tech@paloaltonetworks.com",
url = "https://github.com/PaloAltoNetworks-BD/autofocus-client-library/",
classifiers = ["Development Status :: 4 - Beta"],
python_requires = ">=3.6",
install_requires = install_requires,
)