From b679e82aa292d3ce083e3a93fddee6bd8404ba2f Mon Sep 17 00:00:00 2001 From: zakary Date: Sun, 19 Nov 2023 07:00:42 -0600 Subject: [PATCH] fix(setup.py): adds wheel support --- config/__init__.py | 0 config.py => config/config.py | 0 retraktarr/__init__.py | 0 retraktarr.py => retraktarr/retraktarr.py | 2 +- setup.py | 7 ++++--- 5 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 config/__init__.py rename config.py => config/config.py (100%) create mode 100644 retraktarr/__init__.py rename retraktarr.py => retraktarr/retraktarr.py (99%) diff --git a/config/__init__.py b/config/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/config.py b/config/config.py similarity index 100% rename from config.py rename to config/config.py diff --git a/retraktarr/__init__.py b/retraktarr/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/retraktarr.py b/retraktarr/retraktarr.py similarity index 99% rename from retraktarr.py rename to retraktarr/retraktarr.py index 58b0620..10b6759 100644 --- a/retraktarr.py +++ b/retraktarr/retraktarr.py @@ -6,7 +6,7 @@ from api.arr import ArrAPI from api.trakt import TraktAPI -from config import Configuration +from config.config import Configuration try: with open( diff --git a/setup.py b/setup.py index 3f96799..18f561f 100644 --- a/setup.py +++ b/setup.py @@ -32,6 +32,7 @@ version=VERSION_NO, # Short description of your library description=("a simple Arr -> Trakt.tv list sync script"), + entry_points={"console_scripts": ["retraktarr = retraktarr.retraktarr:main"]}, # Long description of your library install_requires="requests", long_description=LONG_DESCRIPTION, @@ -41,12 +42,12 @@ # Your name author="zakkarry", # Your email - author_email="", + author_email="zak@ary.dev", # Either the link to your github or to your website url="https://github.com/zakkarry", # Link from which the project can be downloaded download_url="https://github.com/zakkarry/retraktarr", - packages=find_packages("."), - package_dir={"": "."}, + packages=find_packages(), + package_data={"": ["retraktarr/*", "api/*", "config/*"]}, include_package_data=True, )