Skip to content

Commit

Permalink
Fix utf8 bug that hindered windows installs
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrrock2 authored Aug 21, 2024
1 parent 974f07a commit 5ef1329
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_requirements():
# TODO: The gh-action to upload to PyPI doesn't include the requirements.txt
# so we're just copying them here as a backup. This is super brittle!
try:
with codecs.open(REQUIREMENTS_FILE) as buff:
with codecs.open(REQUIREMENTS_FILE, "r", encoding="utf-8") as buff:
return buff.read().splitlines()
except:
return """pymc >= 5.10.0
Expand All @@ -37,12 +37,12 @@ def get_requirements():


def get_long_description():
with codecs.open(README_FILE, "rt") as buff:
with codecs.open(README_FILE, "r", encoding="utf-8") as buff:
return buff.read()


def get_version():
lines = open(VERSION_FILE, "rt").readlines()
lines = open(VERSION_FILE, "r", encoding="utf-8").readlines()
version_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
for line in lines:
mo = re.search(version_regex, line, re.M)
Expand Down

0 comments on commit 5ef1329

Please sign in to comment.