fix: move metadata from __init__.py into setup.cfg (#153)

This commit is contained in:
eggplants 2022-02-09 20:50:23 +09:00 committed by GitHub
parent cd5c3c61a5
commit b4d3393ef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 25 deletions

View File

@ -1,14 +1,14 @@
[metadata] [metadata]
name = waybackpy name = waybackpy
version = attr: waybackpy.__version__ 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 = file: README.md
long_description_content_type = text/markdown long_description_content_type = text/markdown
license = attr: waybackpy.__license__ license = MIT
author = attr: waybackpy.__author__ author = Akash Mahanty
author_email = attr: waybackpy.__author_email__ author_email = akamhy@yahoo.com
url = attr: waybackpy.__url__ url = https://akamhy.github.io/waybackpy/
download_url = attr: waybackpy.__download_url__ download_url = https://github.com/akamhy/waybackpy/releases
project_urls = project_urls =
Documentation = https://github.com/akamhy/waybackpy/wiki Documentation = https://github.com/akamhy/waybackpy/wiki
Source = https://github.com/akamhy/waybackpy Source = https://github.com/akamhy/waybackpy

View File

@ -1,17 +1,6 @@
"""Module initializer and provider of static information.""" """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" __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 .availability_api import WaybackMachineAvailabilityAPI
from .cdx_api import WaybackMachineCDXServerAPI from .cdx_api import WaybackMachineCDXServerAPI
@ -19,14 +8,6 @@ from .save_api import WaybackMachineSaveAPI
from .wrapper import Url from .wrapper import Url
__all__ = [ __all__ = [
"__author__",
"__author_email__",
"__copyright__",
"__description__",
"__license__",
"__title__",
"__url__",
"__download_url__",
"__version__", "__version__",
"WaybackMachineAvailabilityAPI", "WaybackMachineAvailabilityAPI",
"WaybackMachineCDXServerAPI", "WaybackMachineCDXServerAPI",