From 109439022f471bef7d727803e650238b70465f26 Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Fri, 14 Aug 2015 16:30:30 -0300 Subject: [PATCH] Minor fixes and cfg for setuptools --- docs-requirements.txt | 1 + setup.cfg | 7 ++++++- telegram/bot.py | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs-requirements.txt b/docs-requirements.txt index 82133027c..3151e8296 100644 --- a/docs-requirements.txt +++ b/docs-requirements.txt @@ -1,2 +1,3 @@ sphinx sphinx_rtd_theme +sphinx-pypi-upload diff --git a/setup.cfg b/setup.cfg index 389e7194e..0df889971 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,10 @@ [wheel] universal = 1 -[upload_docs] +[build_sphinx] +source-dir = docs/source +build-dir = docs/build +all_files = 1 + +[upload_sphinx] upload-dir = docs/build/html diff --git a/telegram/bot.py b/telegram/bot.py index fa8e19d18..4d5b86d3b 100644 --- a/telegram/bot.py +++ b/telegram/bot.py @@ -141,6 +141,7 @@ class Bot(TelegramObject): data = self._parseAndCheckTelegram(json_data) self.bot = User.de_json(data) + return self.bot @log