diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3411da7 --- /dev/null +++ b/setup.py @@ -0,0 +1,39 @@ +import setuptools + + +def get_requirements(): + """Build the requirements list for this project""" + requirements_list = [] + + with open('requirements.txt') as requirements: + for install in requirements: + requirements_list.append(install.strip()) + + return requirements_list + + +with open("README.md", "r") as fh: + long_description = fh.read() + +setuptools.setup( + name="tdpt", + version="1.2", + author="dolohow", + author_email="lukasz@zarnowiecki.pl", + description="Torrent downloading progress on Telegram", + entry_points={ + 'console_scripts': ['tdpt = tdpt:tdpt.main'], + }, + install_requires=get_requirements(), + keywords="telegram bot transmission liveupdates torrents rtorrent torrent", + long_description_content_type="text/markdown", + long_description=long_description, + url="https://github.com/dolohow/tdpt", + packages=setuptools.find_packages(), + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Operating System :: OS Independent", + ], + python_requires='>=3.6', +) diff --git a/backends/__init__.py b/tdpt/__init__.py similarity index 100% rename from backends/__init__.py rename to tdpt/__init__.py diff --git a/backends/README.md b/tdpt/backends/README.md similarity index 100% rename from backends/README.md rename to tdpt/backends/README.md diff --git a/handlers/__init__.py b/tdpt/backends/__init__.py similarity index 100% rename from handlers/__init__.py rename to tdpt/backends/__init__.py diff --git a/backends/rtorrent.py b/tdpt/backends/rtorrent.py similarity index 100% rename from backends/rtorrent.py rename to tdpt/backends/rtorrent.py diff --git a/backends/transmission.py b/tdpt/backends/transmission.py similarity index 100% rename from backends/transmission.py rename to tdpt/backends/transmission.py diff --git a/tdpt/handlers/__init__.py b/tdpt/handlers/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/handlers/message_handlers.py b/tdpt/handlers/message_handlers.py similarity index 100% rename from handlers/message_handlers.py rename to tdpt/handlers/message_handlers.py diff --git a/helpers.py b/tdpt/helpers.py similarity index 100% rename from helpers.py rename to tdpt/helpers.py diff --git a/tdpt.ini.template b/tdpt/tdpt.ini.template similarity index 100% rename from tdpt.ini.template rename to tdpt/tdpt.ini.template diff --git a/tdpt.py b/tdpt/tdpt.py similarity index 98% rename from tdpt.py rename to tdpt/tdpt.py index cb2d7a8..970cc03 100644 --- a/tdpt.py +++ b/tdpt/tdpt.py @@ -10,8 +10,8 @@ from telegram.ext import Updater from telegram.utils.helpers import escape_markdown -from handlers.message_handlers import UploadNewTorrent -from helpers import format_speed +from tdpt.handlers.message_handlers import UploadNewTorrent +from tdpt.helpers import format_speed CONFIG = configparser.ConfigParser() CONFIG.read('tdpt.ini')