Skip to content

Commit

Permalink
Add setuptools support
Browse files Browse the repository at this point in the history
  • Loading branch information
dolohow committed Apr 28, 2020
1 parent 88741e1 commit 0ac9552
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 2 deletions.
39 changes: 39 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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="[email protected]",
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',
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added tdpt/handlers/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tdpt.py → tdpt/tdpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 0ac9552

Please sign in to comment.