From d28533a73faa82938582b9e03e6ffb48ce6575aa Mon Sep 17 00:00:00 2001 From: avaish1409 Date: Thu, 3 Jun 2021 21:17:51 +0530 Subject: [PATCH 1/2] restructure repo --- .gitignore | 11 +++--- pyproject.toml | 16 +++++++++ setup.py | 34 ++++++++++++++++++ main.py => src/VideoChatBot/__init__.py | 0 .../VideoChatBot/resources}/boy-talk.gif | Bin .../resources}/samples/sample0.json | 0 tests/test_simple.py | 16 +++++++++ 7 files changed, 70 insertions(+), 7 deletions(-) create mode 100644 pyproject.toml create mode 100644 setup.py rename main.py => src/VideoChatBot/__init__.py (100%) rename {resources => src/VideoChatBot/resources}/boy-talk.gif (100%) rename {resources => src/VideoChatBot/resources}/samples/sample0.json (100%) create mode 100644 tests/test_simple.py diff --git a/.gitignore b/.gitignore index 8d59eb3..96417b4 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,12 @@ 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 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..a5580a5 --- /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 python based command line tool to compare Github Users or Repositories.', + 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 +) \ No newline at end of file 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 From 9421b3a05af8ac8391fe068a17cffe620d22f591 Mon Sep 17 00:00:00 2001 From: avaish1409 Date: Thu, 3 Jun 2021 21:22:49 +0530 Subject: [PATCH 2/2] fix typo --- .gitignore | 1 + setup.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 96417b4..0cd622c 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ db.sqlite3-wal .vscode/ *.pyc *.egg-info +.tool-versions diff --git a/setup.py b/setup.py index a5580a5..4ca2d8e 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ author='Anirudh Vaish', author_email='anirudhvaish147@gmail.com', url='https://github.com/avaish1409/VideoChatBot', - description='A python based command line tool to compare Github Users or Repositories.', + 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)', @@ -31,4 +31,4 @@ install_requires=requirements, python_requires=">=3.6", zip_safe=False -) \ No newline at end of file +)