Skip to content

Commit

Permalink
Merge pull request jupyterhub#472 from nokome/master
Browse files Browse the repository at this point in the history
Ensure Python3 before reading README with encoding arg
  • Loading branch information
betatim authored Nov 16, 2018
2 parents 2d96f54 + 44b23f9 commit 31c4bd3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
from setuptools import setup, find_packages
import sys
import versioneer


with open('README.md', encoding="utf8") as f:
readme = f.read()
if sys.version_info[0] < 3:
readme = None
else:
with open('README.md', encoding="utf8") as f:
readme = f.read()

setup(
name='jupyter-repo2docker',
Expand Down

0 comments on commit 31c4bd3

Please sign in to comment.