Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly open text files as utf-8 encoded #92

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
from distutils.core import setup


readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
from io import open

install_requires = set(x.strip() for x in open('requirements.txt'))
readme = open('README.rst', encoding='utf-8').read()
history = open('HISTORY.rst', encoding='utf-8').read().replace('.. :changelog:', '')

install_requires = set(x.strip() for x in open('requirements.txt', encoding='utf-8'))
install_requires_replacements = {
}
install_requires = [install_requires_replacements.get(r, r) for r in install_requires]
Expand Down