make setup.py smarter, now no need to update the URL again and also added more keywords. And in __version__.py updated the __author__

This commit is contained in:
Akash Mahanty 2022-01-21 23:01:09 +05:30
parent fd5e85420c
commit d3bb8337a1
2 changed files with 13 additions and 3 deletions

View File

@ -8,10 +8,14 @@ about = {}
with open(os.path.join(os.path.dirname(__file__), "waybackpy", "__version__.py")) as f:
exec(f.read(), about)
version = str(about["__version__"])
download_url = f"https://github.com/akamhy/waybackpy/archive/{version}.tar.gz"
setup(
name=about["__title__"],
packages=["waybackpy"],
version=about["__version__"],
version=version,
description=about["__description__"],
long_description=long_description,
long_description_content_type="text/markdown",
@ -19,11 +23,17 @@ setup(
author=about["__author__"],
author_email=about["__author_email__"],
url=about["__url__"],
download_url="https://github.com/akamhy/waybackpy/archive/3.0.0.tar.gz",
download_url=download_url,
keywords=[
"Archive Website",
"Wayback Machine",
"Internet Archive",
"Wayback Machine CLI",
"Wayback Machine Python",
"Internet Archiving",
"Availability API",
"CDX API",
"savepagenow",
],
install_requires=["requests", "click"],
python_requires=">=3.4",

View File

@ -5,7 +5,7 @@ __description__ = (
)
__url__ = "https://akamhy.github.io/waybackpy/"
__version__ = "3.0.0"
__author__ = "akamhy"
__author__ = "Akash Mahanty"
__author_email__ = "akamhy@yahoo.com"
__license__ = "MIT"
__copyright__ = "Copyright 2020-2022 Akash Mahanty et al."