From c824df3e432efc41d7a03db45798cd0bfff735b9 Mon Sep 17 00:00:00 2001 From: JungDev Date: Thu, 1 Jun 2017 09:22:23 +0000 Subject: [PATCH] Fix requirements in setup.py --- README.rst | 11 +++++------ django_telegrambot/__init__.py | 2 +- docs/usage.rst | 4 ---- setup.py | 12 ++++++++---- 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/README.rst b/README.rst index 8ec0ef2..a99b938 100644 --- a/README.rst +++ b/README.rst @@ -7,7 +7,7 @@ django-telegrambot .. image:: https://travis-ci.org/JungDev/django-telegrambot.png?branch=master :target: https://travis-ci.org/JungDev/django-telegrambot - + A simple app to develop Telegram bots with Django @@ -59,7 +59,7 @@ And set your bots:: #'WEBHOOK_CERTIFICATE' : 'cert.pem', # If your site use self-signed #certificate, must be set with location of your public key #certificate.(More info at https://core.telegram.org/bots/self-signed ) - + 'BOTS' : [ { 'TOKEN': '123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11', #Your bot token. @@ -164,9 +164,6 @@ Then use it in a project creating a module ``telegrambot.py`` in your app :: # log all errors dp.add_error_handler(error) - # log all errors - dp.addErrorHandler(error) - Features @@ -176,6 +173,8 @@ Features * Admin dashboard available at ``/admin/django-telegrambot`` * Polling mode by management command (an easy to way to run bot in local machine, not recommended in production!) + ``(myenv) $ python manage.py botpolling --username=`` + Contributing ------------ @@ -212,7 +211,7 @@ There a sample application in `sampleproject` directory. Here is installation in python manage.py runserver 5. If **WEBHOOK** Mode setted go to 8 -6. If **POLLING** Mode setted, open in your browser http://localhost/ +6. If **POLLING** Mode setted, open in your browser http://localhost/ 7. Open Django-Telegram Dashboard http://localhost/admin/django-telegrambot and follow instruction to run worker by management command `botpolling`. Then go to 10 diff --git a/django_telegrambot/__init__.py b/django_telegrambot/__init__.py index ac36e53..e99fea1 100644 --- a/django_telegrambot/__init__.py +++ b/django_telegrambot/__init__.py @@ -1,2 +1,2 @@ -__version__ = '1.0.0' +__version__ = '1.0.1' default_app_config = 'django_telegrambot.apps.DjangoTelegramBot' diff --git a/docs/usage.rst b/docs/usage.rst index 9d80bf4..db14830 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -48,7 +48,3 @@ To use django-telegrambot in a app, create a telegrambot.py module in your app a # log all errors dp.add_error_handler(error) - - # log all errors - dp.addErrorHandler(error) - diff --git a/setup.py b/setup.py index a38df24..44918d6 100755 --- a/setup.py +++ b/setup.py @@ -45,24 +45,28 @@ ], include_package_data=True, install_requires=[ - 'python-telegram-bot', + 'django>=1.8.18', + 'python-telegram-bot>=6.0.1', ], license="BSD", zip_safe=False, keywords='django-telegrambot', classifiers=[ - 'Development Status :: 4 - Beta', + 'Development Status :: 5 - Production/Stable', 'Framework :: Django', 'Framework :: Django :: 1.7', 'Framework :: Django :: 1.8', + 'Framework :: Django :: 1.9', + 'Framework :: Django :: 1.10', + 'Framework :: Django :: 1.11', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', ], )