From d3bb8337a1b83c36756024838219d18356c3dc96 Mon Sep 17 00:00:00 2001 From: Akash Mahanty Date: Fri, 21 Jan 2022 23:01:09 +0530 Subject: [PATCH] make setup.py smarter, now no need to update the URL again and also added more keywords. And in __version__.py updated the __author__ --- setup.py | 14 ++++++++++++-- waybackpy/__version__.py | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 0c7b875..ef242c2 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/waybackpy/__version__.py b/waybackpy/__version__.py index f6094ee..7bd41bf 100644 --- a/waybackpy/__version__.py +++ b/waybackpy/__version__.py @@ -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."