Skip to content

Commit

Permalink
Fix setup.py issue when using pip 10. (napalm-automation#692)
Browse files Browse the repository at this point in the history
Fixes napalm-automation#689 pip10 compatibility issue
  • Loading branch information
ogenstad authored and ExaneServerTeam committed Mar 4, 2020
1 parent d8d83c9 commit f4420d8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
"""setup.py file."""
import uuid

from setuptools import setup, find_packages

from pip.req import parse_requirements

with open("requirements.txt", "r") as fs:
reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))]

install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
reqs = [str(ir.req) for ir in install_reqs]

__author__ = 'David Barroso <[email protected]>'

Expand Down

0 comments on commit f4420d8

Please sign in to comment.