Skip to content

Commit

Permalink
Using a consistent open at setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
castelao committed Dec 17, 2016
1 parent 8cfda71 commit 6d181ea
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
from setuptools import setup
except ImportError:
from distutils.core import setup
from codecs import open


with open('README.rst') as readme_file:
readme = readme_file.read()
with open('README.rst', encoding='utf-8') as f:
readme = f.read()

with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
with open('HISTORY.rst', encoding='utf-8') as f:
history = f.read().replace('.. :changelog:', '')

with open('requirements.txt') as requirements_file:
requirements = requirements_file.read()
with open('requirements.txt', encoding='utf-8') as f:
requirements = f.read()

setup(
name='seabird',
Expand Down

0 comments on commit 6d181ea

Please sign in to comment.