Merge pull request #114 from rafaelrdealmeida/patch-1

Update setup.py

See also <https://github.com/akamhy/waybackpy/issues/111#issuecomment-1020673814>
This commit is contained in:
Akash Mahanty 2022-01-25 10:30:34 +05:30 committed by GitHub
commit 552967487e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,16 @@
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__"])