Skip to content

Commit

Permalink
Fix requirements in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JungDev committed Jun 1, 2017
1 parent d8102a5 commit c824df3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
11 changes: 5 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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=<username_bot>``

Contributing
------------

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion django_telegrambot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '1.0.0'
__version__ = '1.0.1'
default_app_config = 'django_telegrambot.apps.DjangoTelegramBot'
4 changes: 0 additions & 4 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)

12 changes: 8 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
)

0 comments on commit c824df3

Please sign in to comment.