From 0ef8696d65eeea2b3bf280988e09447e0488fe97 Mon Sep 17 00:00:00 2001 From: Tanshu Date: Fri, 29 Jan 2016 19:58:36 +0530 Subject: [PATCH] Added a seperate requirements file for PIP and updated setup.py to use with while reading README and CHANGES --- requirements.txt | 5 +++++ setup.py | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..ce7f81b7 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +pyramid +waitress +transaction +zope.sqlalchemy +SQLAlchemy diff --git a/setup.py b/setup.py index d5f70709..1b25967c 100644 --- a/setup.py +++ b/setup.py @@ -3,8 +3,10 @@ import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) -README = open(os.path.join(here, 'README.txt')).read() -CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() +with open(os.path.join(here, 'README.txt')) as f: + README = f.read() +with open(os.path.join(here, 'CHANGES.txt')) as f: + CHANGES = f.read() requires = [ 'pyramid',