Skip to content

Commit

Permalink
Use io to fix dependency in setup.py (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung authored and jarrodmcc committed Mar 29, 2018
1 parent bf52298 commit cb08df7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from builtins import open

import io
import os

from setuptools import setup, find_packages
Expand All @@ -20,7 +19,7 @@
exec(open('src/openfermion/_version.py').read())

# Readme file as long_description:
long_description = open('README.rst', encoding='utf-8').read()
long_description = io.open('README.rst', encoding='utf-8').read()

# Read in requirements.txt
requirements = open('requirements.txt').readlines()
Expand Down

0 comments on commit cb08df7

Please sign in to comment.