From 759874cdc61122be61a18502cc6deda7973a68f3 Mon Sep 17 00:00:00 2001 From: Rafael de Almeida Date: Mon, 24 Jan 2022 21:23:31 -0300 Subject: [PATCH 1/2] Update setup.py see: https://github.com/akamhy/waybackpy/issues/111#issuecomment-1020673814 --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index e77bfc2..2fd9b11 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,11 @@ import os.path from setuptools import setup -with open(os.path.join(os.path.dirname(__file__), "README.md")) as f: +with open(os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf-8") as f: long_description = f.read() about = {} -with open(os.path.join(os.path.dirname(__file__), "waybackpy", "__version__.py")) as f: +with open(os.path.join(os.path.dirname(__file__), "waybackpy", "__version__.py"), encoding="utf-8") as f: exec(f.read(), about) version = str(about["__version__"]) From 86a90a384085c61546212d23869a21871aff75e9 Mon Sep 17 00:00:00 2001 From: Rafael de Almeida Date: Mon, 24 Jan 2022 22:03:28 -0300 Subject: [PATCH 2/2] Update setup.py pep8 --- setup.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 2fd9b11..68046cc 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,16 @@ import os.path from setuptools import setup -with open(os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf-8") as f: +with open( + os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf-8"), +as f: long_description = f.read() about = {} -with open(os.path.join(os.path.dirname(__file__), "waybackpy", "__version__.py"), encoding="utf-8") as f: +with open( + os.path.join(os.path.dirname(__file__), "waybackpy", "__version__.py"), + encoding="utf-8") +as f: exec(f.read(), about) version = str(about["__version__"])