Skip to content

Commit

Permalink
Merge pull request #1 from dahlia/master
Browse files Browse the repository at this point in the history
Make readme file to be opened using with context for PyPy's sake
  • Loading branch information
storborg committed Nov 19, 2012
2 parents 7e4a7a8 + c53a3f9 commit e73e0f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion funniest/setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
from setuptools import setup

def readme():
with open('README.rst') as f:
return f.read()

setup(name='funniest',
version='0.1',
description='The funniest joke in the world',
long_description=open('README.rst').read(),
long_description=readme(),
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
Expand Down
6 changes: 5 additions & 1 deletion metadata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,14 @@ Now we can use it in setup.py like::

from setuptools import setup

def readme():
with open('README.rst') as f:
return f.read()

setup(name='funniest',
version='0.1',
description='The funniest joke in the world',
long_description=open('README.rst').read(),
long_description=readme(),
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
Expand Down
2 changes: 1 addition & 1 deletion minimal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ In ``__init__.py``::

from .text import joke

In ``joke.py``::
In ``text.py``::

def joke():
return (u'Wenn ist das Nunst\u00fcck git und Slotermeyer? Ja! ... '
Expand Down

0 comments on commit e73e0f5

Please sign in to comment.