Skip to content

Commit

Permalink
Merge pull request #4 from edx/cgoldberg/fix-setup
Browse files Browse the repository at this point in the history
fixed up setup.py
  • Loading branch information
cgoldberg committed Feb 23, 2015
2 parents 53b43e5 + 6baedd2 commit cde1f00
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit cde1f00

Please sign in to comment.