Fix install_requires

See https://caremad.io/2013/07/setup-vs-requirement/ for more info
* Move list of requirements to setup.py
* Remove use of parse_requirements() which changed in latest pip release

Change-Id: I79002cc8377ee0d13b3f6a732eea4aeef075dfe1
This commit is contained in:
Levi Blackstone 2014-12-30 13:57:30 -06:00
parent 84e6439952
commit 581dfebba0
2 changed files with 6 additions and 9 deletions

View File

@ -1,2 +1 @@
ply
six>=1.5.2
-e .

View File

@ -1,5 +1,4 @@
import os
from pip.req import parse_requirements
from setuptools import setup, find_packages
@ -20,11 +19,6 @@ and can be safely read from a config file or user input.
Read README.md for syntax and examples.
"""
req_file = os.path.join(os.path.dirname(__file__), "requirements.txt")
install_reqs = [str(r.req) for r in parse_requirements(req_file)]
setup(
name='timex',
version='0.10.0',
@ -45,7 +39,11 @@ setup(
url='https://github.com/StackTach/timex',
scripts=[],
long_description=desc,
install_requires=install_reqs,
install_requires=[
"ply",
"six >= 1.5.2",
],
zip_safe=False
)