diff --git a/.gitignore b/.gitignore index 8d59eb3..0cd622c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,6 @@ -# Extra rules from https://github.com/github/gitignore/ -# Python rules -# Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class - -# Environments .env .venv env/ @@ -13,10 +8,13 @@ venv/ ENV/ env.bak/ venv.bak/ - -# Django stuff: *.log local_settings.py db.sqlite3 db.sqlite3-shm db.sqlite3-wal +.idea/ +.vscode/ +*.pyc +*.egg-info +.tool-versions diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2934db9 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,16 @@ +[build-system] +requires = [ + "autopep8==1.5.6", + "ChatterBot==1.1.0", + "opencv-python==4.5.1.48", + "SpeechRecognition==3.8.1", + "matplotlib==3.3.4", + "imageio==2.9.0", + "pyttsx3==2.90", + "text2emotion==0.0.5", + "tensorflow==2.4.1", + "fer==20.1.1", + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4ca2d8e --- /dev/null +++ b/setup.py @@ -0,0 +1,34 @@ +from setuptools import setup, find_packages + +with open('requirements.txt') as f: + requirements = f.readlines() + +with open("README.md", "r", encoding="utf-8") as fh: + long_description = fh.read() + +setup( + name='VideoChatBot', + version='0.0.2', + author='Anirudh Vaish', + author_email='anirudhvaish147@gmail.com', + url='https://github.com/avaish1409/VideoChatBot', + description='A library that gives python users an interaction utility that works as a videocall to a bot.', + long_description=long_description, + long_description_content_type="text/markdown", + license='GNU General Public License v3 (GPLv3)', + package_dir={"": "src"}, + packages=find_packages(where="src"), + project_urls={ + "Bug Tracker": "https://github.com/avaish1409/VideoChatBot/issues", + 'Source': 'https://github.com/avaish1409/VideoChatBot' + }, + classifiers=[ + 'Programming Language :: Python :: 3.6', + 'Operating System :: OS Independent', + 'license :: GNU General Public License v3 (GPLv3)' + ], + keywords='bot videochatbot videobot chatbot python package git github', + install_requires=requirements, + python_requires=">=3.6", + zip_safe=False +) diff --git a/main.py b/src/VideoChatBot/__init__.py similarity index 100% rename from main.py rename to src/VideoChatBot/__init__.py diff --git a/resources/boy-talk.gif b/src/VideoChatBot/resources/boy-talk.gif similarity index 100% rename from resources/boy-talk.gif rename to src/VideoChatBot/resources/boy-talk.gif diff --git a/resources/samples/sample0.json b/src/VideoChatBot/resources/samples/sample0.json similarity index 100% rename from resources/samples/sample0.json rename to src/VideoChatBot/resources/samples/sample0.json diff --git a/tests/test_simple.py b/tests/test_simple.py new file mode 100644 index 0000000..8ebd48b --- /dev/null +++ b/tests/test_simple.py @@ -0,0 +1,16 @@ +import sys +import os + +#PACKAGE_PARENT = '..' +#SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__)))) +#sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT))) + +from VideoChatBot import vcbot + + +import pytest +# from ..VideoChatBot import vcbot + +def test_main(): + temp = vcbot() + assert True \ No newline at end of file