Skip to content

Commit

Permalink
parse_requirements from pip was removed. (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
mterzo authored and wooyek committed Jul 23, 2018
1 parent 1a81fd0 commit cc27b71
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
import os
import uuid
from setuptools import setup, find_packages
from pip.req import parse_requirements

ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
SRC_DIR = os.path.join(ROOT_DIR, 'src')
sys.path.append(SRC_DIR)

install_requires = parse_requirements(
os.path.join(os.path.dirname(__file__), "requirements.txt"),
session=uuid.uuid1()
)
install_requires = None
with open('requirements.txt', 'r') as f:
install_requires = [line.rstrip()
for line in f.readlines() if not line.startswith('-')]

with open("README.rst") as readme:
long_description = readme.read()

Expand All @@ -24,7 +24,7 @@
'version': version,
'packages': find_packages("src"),
'package_dir': {'': 'src'},
'install_requires': [str(r.req) for r in install_requires],
'install_requires': install_requires,

# "package_data": {
# '': ['requirements.txt']
Expand Down

0 comments on commit cc27b71

Please sign in to comment.