Skip to content

Commit

Permalink
Use absolute path for reading description from file (thanks @hodgestar)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudi Giesler committed Aug 4, 2015
1 parent d9426d4 commit e0bbd05
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
import os
from setuptools import setup, find_packages


def listify(filename):
return filter(None, open(filename, 'r').readlines())


def read_file(filename):
filepath = os.path.join(os.path.dirname(__file__), filename)
return open(filepath, 'r').read()

setup(
name="python-smpp",
version="0.1.6a",
url='http://github.com/praekelt/python-smpp',
license='BSD',
description="Python SMPP Library",
long_description=open('README.rst', 'r').read(),
long_description=read_file('README.rst'),
author='Praekelt Foundation',
author_email='dev@praekeltfoundation.org',
packages=find_packages(),
Expand Down

0 comments on commit e0bbd05

Please sign in to comment.