From 5ee2aa77c6aefd312fa68ee346746a1f23e2cf49 Mon Sep 17 00:00:00 2001 From: Andrea Barbagallo Date: Mon, 31 Jan 2022 22:53:31 +0100 Subject: [PATCH 1/3] storage and asyncio_storage were not installed with previews setup function --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 7b62776..1b87cb1 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -from setuptools import setup +from setuptools import setup, find_packages from io import open import re @@ -19,7 +19,7 @@ setup(name='pyTelegramBotAPI', author='eternnoir', author_email='eternnoir@gmail.com', url='https://github.com/eternnoir/pyTelegramBotAPI', - packages=['telebot'], + packages = find_packages(), license='GPL2', keywords='telegram bot api tools', install_requires=['requests'], @@ -33,5 +33,6 @@ setup(name='pyTelegramBotAPI', 'Programming Language :: Python :: 3', 'Environment :: Console', 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)', - ] + ], + ) From d7cb819502fd4cf7df2b113fdee22ce697b5b902 Mon Sep 17 00:00:00 2001 From: Andrea Barbagallo Date: Mon, 31 Jan 2022 22:58:52 +0100 Subject: [PATCH 2/3] Excluding tests and examples from packages to install --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1b87cb1..0ee4384 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup(name='pyTelegramBotAPI', author='eternnoir', author_email='eternnoir@gmail.com', url='https://github.com/eternnoir/pyTelegramBotAPI', - packages = find_packages(), + packages = find_packages(exclude = ['tests', 'examples']), license='GPL2', keywords='telegram bot api tools', install_requires=['requests'], From 7ba021871a0b94dfb13b317304810c9b00fdb248 Mon Sep 17 00:00:00 2001 From: Andrea Barbagallo Date: Mon, 31 Jan 2022 23:09:18 +0100 Subject: [PATCH 3/3] Adding new way to install library --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 20ff4a2..cc6292b 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,10 @@ $ git clone https://github.com/eternnoir/pyTelegramBotAPI.git $ cd pyTelegramBotAPI $ python setup.py install ``` +or: +``` +$ pip install git+https://github.com/eternnoir/pyTelegramBotAPI.git +``` It is generally recommended to use the first option.