Skip to content

Commit 4805fc8

Browse files
author
Saurabh Kumar
committed
Handle unicode exception in setup.py
Related to theskumar#45 Closes theskumar#46, theskumar#47
1 parent cf9d4f0 commit 4805fc8

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ Executing the tests:
245245
Changelog
246246
=========
247247

248+
0.6.2
249+
----
250+
- Handle unicode exception in setup.py (`#46 <https://github.com/theskumar/python-dotenv/issues/45>`__)
248251
0.6.2
249252
----
250253
- Fix `dotenv list` command (`@ticosax`_)

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# -*- coding: utf-8 -*-
22
from setuptools import setup
33

4-
with open('README.rst') as readme_file:
5-
readme = readme_file.read()
4+
# https://github.com/theskumar/python-dotenv/issues/45#issuecomment-277135416
5+
try:
6+
with open('README.rst') as readme_file:
7+
readme = readme_file.read()
8+
except:
9+
readme = 'Checkout http://github.com/theskumar/python-dotenv for more details.'
610

711
setup(
812
name="python-dotenv",

0 commit comments

Comments
 (0)