Skip to content
Snippets Groups Projects
Unverified Commit 436dc042 authored by Max Adamo's avatar Max Adamo
Browse files

fix: add UTF-8 encoding to file reads in setup.py for better compatibility

parent abe4de8e
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ DESC = """ this tool is used in conjunction with certbot to leverage ...@@ -12,7 +12,7 @@ DESC = """ this tool is used in conjunction with certbot to leverage
the lifecycle of the certificates on the key store""" the lifecycle of the certificates on the key store"""
requirements = [ requirements = [
x.strip() for x in x.strip() for x in
open("requirements.txt").readlines() if not x.startswith('#') and x != '\n'] open("requirements.txt", encoding='utf-8').readlines() if not x.startswith('#') and x != '\n']
rmtree('dist', ignore_errors=True) rmtree('dist', ignore_errors=True)
rmtree('deb_dist', ignore_errors=True) rmtree('deb_dist', ignore_errors=True)
...@@ -20,7 +20,7 @@ rmtree('deb_dist', ignore_errors=True) ...@@ -20,7 +20,7 @@ rmtree('deb_dist', ignore_errors=True)
def read(fname): def read(fname):
""" get file name """ """ get file name """
return open(os.path.join(os.path.dirname(__file__), fname)).read() return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read()
setup( setup(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment