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: I80451731999a5b538203bf2cea1972afe21d30dc
This commit is contained in:
Levi Blackstone 2015-01-05 07:51:20 -06:00
parent d3f83ab369
commit 1547a5b4a3
2 changed files with 8 additions and 12 deletions

View File

@ -1,5 +1 @@
enum34>=1.0
iso8601>=0.1.10
jsonpath-rw>=1.2.0,<2.0
PyYAML>=3.1.0
six>=1.5.2
-e .

View File

@ -1,16 +1,10 @@
import os
from pip.req import parse_requirements
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
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='stackdistiller',
version='0.11',
@ -31,7 +25,13 @@ setup(
url='https://github.com/stackforge/stacktach-stackdistiller',
scripts=['bin/test-distiller.py'],
long_description=read('README.md'),
install_requires=install_reqs,
install_requires=[
"enum34 >= 1.0",
"iso8601 >= 0.1.10",
"jsonpath-rw >= 1.2.0, < 2.0",
"PyYAML >= 3.1.0",
"six >= 1.5.2",
],
zip_safe=False
)