Skip to content

Commit

Permalink
Fix Travis build.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Dec 7, 2016
1 parent 28286fe commit a64dcae
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
import os
from setuptools import setup, find_packages

testing_extras = ['nose', 'coverage']
Expand All @@ -20,14 +21,19 @@
'zope.interface>=3.6.0',
'transaction']

with open('README.rst') as f:
README = f.read()
here = os.path.abspath(os.path.dirname(__file__))
def _read_file(filename):
try:
with open(os.path.join(here, filename)) as f:
return f.read()
except IOError: # Travis???
return ''

with open('CHANGES.rst') as f:
CHANGES = f.read()
README = _read_file('README.rst')
CHANGES = _read_file('CHANGES.rst')

setup(name='repoze.sendmail',
version = '4.2',
version = '4.3dev0',
url='http://www.repoze.org',
license='ZPL 2.1',
description='Repoze Sendmail',
Expand Down

0 comments on commit a64dcae

Please sign in to comment.