Commit 48e08cb4 authored by Tres Seaver's avatar Tres Seaver

Avoid resource warnings under Py3k.

Also, work around edge case on Travis where files aren't found.
parent 58af89ba
......@@ -17,9 +17,15 @@ import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = (open(os.path.join(here, 'README.rst')).read()
+ '\n\n' +
open(os.path.join(here, 'CHANGES.rst')).read())
def _read_file(filename):
try:
with open(os.path.join(here, filename)) as f:
return f.read()
except IOError: # Travis???
return ''
README = _read_file('README.rst') + '\n\n' + _read_file('CHANGES.rst')
setup(name='transaction',
version='1.4.4dev',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment