Skip to content

Commit

Permalink
refactor: restructure package and fix module import
Browse files Browse the repository at this point in the history
- Move `github.py` from `src/` to `github_desktop_notifier/`
- Move `github_desktop_notifier.py` from `src/` to `github_desktop_notifier/`
- Update import in `github_desktop_notifier.py` to use relative import
- Delete `src/__main__.py` and ensure `__init__.py` is present in `github_desktop_notifier/`
  • Loading branch information
bytexenon committed Nov 15, 2024
1 parent f71d394 commit 610db20
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 20 deletions.
Empty file.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import shutil
import threading

from github import Github
from .github import Github

# Constants #

Expand Down
35 changes: 35 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Imports #
from setuptools import setup, find_packages

# Setup #
setup(
name="github-desktop-notifier",
version="1.0.0",
description="Receive instant GitHub notifications on your Linux desktop",
url="https://github.com/bytexenon/Github-Desktop-Notifier",
author="bytexenon",
author_email="ddavi142@asu.edu",
license="MIT",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
keywords="github desktop notifier linux notifications dunstify gh",
packages=find_packages(exclude=["tests", "docs"]),
install_requires=["requests"],
entry_points={
"console_scripts": [
"github-notifier=github_desktop_notifier.github_desktop_notifier:main",
],
},
)
19 changes: 0 additions & 19 deletions src/__main__.py

This file was deleted.

0 comments on commit 610db20

Please sign in to comment.