From 9dd379c20bd5761f7c78e44890321625f0edb0c6 Mon Sep 17 00:00:00 2001 From: Ken Celenza Date: Tue, 15 May 2018 11:36:54 -0400 Subject: [PATCH] pip 10 changes --- setup.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 0ea227e..9b1d1c1 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,11 @@ """setup.py file.""" -import uuid - from setuptools import setup, find_packages -from pip.req import parse_requirements __author__ = 'Gabriele Gerbino ' -install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) -reqs = [str(ir.req) for ir in install_reqs] +with open("requirements.txt", "r") as fs: + reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))] setup( name="napalm-panos",