From 043dcfbbfc0ac05e67ab6ed75ba2ab0bd75dae98 Mon Sep 17 00:00:00 2001 From: ByteXenon <125568681+ByteXenon@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:45:02 -0700 Subject: [PATCH] refactor(setup): enhance setup.py with additional metadata and constants --- setup.py | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 1cbaf5f..6d82e53 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,28 @@ # Imports # +import os + from setuptools import setup, find_packages +# Constants # +DIRNAME = os.path.dirname(__file__) +SHORT_DESCRIPTION = "Receive instant GitHub notifications on your Linux desktop" +LONG_DESCRIPTION = open(os.path.join(DIRNAME, "docs", "README.md")).read() + +__version__ = "1.0.0" + # Setup # setup( name="github-desktop-notifier", - version="1.0.0", - description="Receive instant GitHub notifications on your Linux desktop", + version=__version__, + description=SHORT_DESCRIPTION, + long_description=LONG_DESCRIPTION, + long_description_content_type="text/markdown", url="https://github.com/bytexenon/Github-Desktop-Notifier", author="bytexenon", author_email="ddavi142@asu.edu", license="MIT", + python_requires=">=3.6", + include_package_data=True, classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", @@ -24,6 +37,12 @@ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", ], + project_urls={ + "Documentation": "https://github.com/bytexenon/Github-Desktop-Notifier", + "Source": "https://github.com/bytexenon/Github-Desktop-Notifier", + "Tracker": "https://github.com/bytexenon/Github-Desktop-Notifier/issues", + "Changelog": "https://github.com/bytexenon/Github-Desktop-Notifier/releases", + }, keywords="github desktop notifier linux notifications dunstify gh", packages=find_packages(exclude=["tests", "docs"]), install_requires=["requests"],