From b4d3393ef16f1ac8eec892eca9ebab850c7e0711 Mon Sep 17 00:00:00 2001 From: eggplants Date: Wed, 9 Feb 2022 20:50:23 +0900 Subject: [PATCH] fix: move metadata from __init__.py into setup.cfg (#153) --- setup.cfg | 12 ++++++------ waybackpy/__init__.py | 19 ------------------- 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/setup.cfg b/setup.cfg index 0678e33..e885a01 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,14 +1,14 @@ [metadata] name = waybackpy version = attr: waybackpy.__version__ -description = attr: waybackpy.__description__ +description = Python package that interfaces with the Internet Archive's Wayback Machine APIs. Archive pages and retrieve archived pages easily. long_description = file: README.md long_description_content_type = text/markdown -license = attr: waybackpy.__license__ -author = attr: waybackpy.__author__ -author_email = attr: waybackpy.__author_email__ -url = attr: waybackpy.__url__ -download_url = attr: waybackpy.__download_url__ +license = MIT +author = Akash Mahanty +author_email = akamhy@yahoo.com +url = https://akamhy.github.io/waybackpy/ +download_url = https://github.com/akamhy/waybackpy/releases project_urls = Documentation = https://github.com/akamhy/waybackpy/wiki Source = https://github.com/akamhy/waybackpy diff --git a/waybackpy/__init__.py b/waybackpy/__init__.py index bf80948..98cba3d 100644 --- a/waybackpy/__init__.py +++ b/waybackpy/__init__.py @@ -1,17 +1,6 @@ """Module initializer and provider of static information.""" -__title__ = "waybackpy" -__description__ = ( - "Python package that interfaces with the Internet Archive's Wayback Machine APIs. " - "Archive pages and retrieve archived pages easily." -) -__url__ = "https://akamhy.github.io/waybackpy/" __version__ = "3.0.3" -__download_url__ = f"https://github.com/akamhy/waybackpy/archive/{__version__}.tar.gz" -__author__ = "Akash Mahanty" -__author_email__ = "akamhy@yahoo.com" -__license__ = "MIT" -__copyright__ = "Copyright 2020-2022 Akash Mahanty et al." from .availability_api import WaybackMachineAvailabilityAPI from .cdx_api import WaybackMachineCDXServerAPI @@ -19,14 +8,6 @@ from .save_api import WaybackMachineSaveAPI from .wrapper import Url __all__ = [ - "__author__", - "__author_email__", - "__copyright__", - "__description__", - "__license__", - "__title__", - "__url__", - "__download_url__", "__version__", "WaybackMachineAvailabilityAPI", "WaybackMachineCDXServerAPI",