From 6baedd2914612dfdddd14a0e7626298218e301a2 Mon Sep 17 00:00:00 2001 From: Corey Goldberg Date: Fri, 20 Feb 2015 18:37:01 -0500 Subject: [PATCH] fixed up setup.py --- setup.py | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/setup.py b/setup.py index 5e79dd2a..92530197 100644 --- a/setup.py +++ b/setup.py @@ -1,26 +1,18 @@ -import os +#!/usr/bin/env python from setuptools import setup, find_packages +from auth_backends._version import __version__ -exec(open('auth_backends/_version.py').read()) - - -def read(*paths): - """Build a file path from `paths` and return the contents.""" - with open(os.path.join(*paths), 'r') as f: - return f.read() +with open('README.rst') as a, open('HISTORY.rst') as b, open('AUTHORS') as c: + long_description = '{}\n\n{}\n\n{}'.format(a.read(), b.read(), c.read()) setup( name='edx-auth-backends', version=__version__, description='Custom edX authentication backends and pipeline steps', - long_description=( - read('README.rst') + '\n\n' + - read('HISTORY.rst') + '\n\n' + - read('AUTHORS') - ), + long_description=long_description, classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: GNU Affero General Public License v3',