Skip to content

Commit

Permalink
Merge pull request psf#1708 from alex/patch-2
Browse files Browse the repository at this point in the history
close files in setup.py
  • Loading branch information
kennethreitz committed Oct 28, 2013
2 parents 25f86f1 + 3488f3a commit c4a7760
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@

requires = []

with open('README.rst') as f:
readme = f.read()
with open('HISTORY.rst') as f:
history = f.read()
with open('LICENSE') as f:
license = f.read()

setup(
name='requests',
version=requests.__version__,
description='Python HTTP for Humans.',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
long_description=readme + '\n\n' + history,
author='Kenneth Reitz',
author_email='[email protected]',
url='http://python-requests.org',
Expand All @@ -40,7 +46,7 @@
package_dir={'requests': 'requests'},
include_package_data=True,
install_requires=requires,
license=open('LICENSE').read(),
license=license,
zip_safe=False,
classifiers=(
'Development Status :: 5 - Production/Stable',
Expand Down

0 comments on commit c4a7760

Please sign in to comment.