Repository: hand-e-fr/OpenHosta (language: python)

Issue:
[FIX] hotfix



Discussion / hints:

Fix patch:
diff --git a/.gitignore b/.gitignore
index d3730eb..a61ab92 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,4 +12,6 @@ dist/*
 __hostacache__/
 .coverage
 *.html
-.pytest_cache
\ No newline at end of file
+.pytest_cache
+src/OpenHosta.egg-info
+build/
\ No newline at end of file
diff --git a/Makefile b/Makefile
index b5c7c9a..337f217 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,9 @@ upload:
 	python -m twine upload dist/*
 
 tests:
-	pytest tests/test_mandatory.py -v
+	pip install . 
+	pytest .\tests\functionnalTests\test_mandatory.py -v
+	pip uninstall -y OpenHosta
 
 format:
 	black $(SRC_DIR)
@@ -38,4 +40,8 @@ clean:
 fclean: clean
 	rm -rf .pytest_cache .mypy_cache
 
-.PHONY: all help build test format lint clean fclean
+make re:
+	pip uninstall -y OpenHosta
+	pip install ..
+
+.PHONY: all help build tests format lint clean fclean re
diff --git a/doc/requirements.txt b/doc/requirements.txt
new file mode 100644
index 0000000..2dbd403
--- /dev/null
+++ b/doc/requirements.txt
@@ -0,0 +1,5 @@
+Flask==3.0.3
+PyYAML==6.0.2
+pydantic==2.8.2
+Jinja2==3.1.4
+pyreadline3==3.4.1
\ No newline at end of file
diff --git a/src/OpenHosta.egg-info/PKG-INFO b/src/OpenHosta.egg-info/PKG-INFO
deleted file mode 100644
index 33b5f92..0000000
--- a/src/OpenHosta.egg-info/PKG-INFO
+++ /dev/null
@@ -1,193 +0,0 @@
-Metadata-Version: 2.1
-Name: OpenHosta
-Version: 1.1.0rc1
-Summary: Open-Source programming project IA integretion in developement environnement
-Author: Léandre Ramos, Merlin Devillard, William Jolivet, Emmanuel Batt
-License: MIT License
-        
-        Copyright (c) 2024 hand-e
-        
-        Permission is hereby granted, free of charge, to any person obtaining a copy
-        of this software and associated documentation files (the "Software"), to deal
-        in the Software without restriction, including without limitation the rights
-        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-        copies of the Software, and to permit persons to whom the Software is
-        furnished to do so, subject to the following conditions:
-        
-        The above copyright notice and this permission notice shall be included in all
-        copies or substantial portions of the Software.
-        
-        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-        SOFTWARE.
-        
-Project-URL: Homepage, https://github.com/hand-e-fr/OpenHosta
-Project-URL: Issues, https://github.com/hand-e-fr/OpenHosta/issues
-Keywords: AI,GPT,Natural language,Autommatic,Easy
-Classifier: Development Status :: 5 - Production/Stable
-Classifier: Programming Language :: Python :: 3.8
-Classifier: License :: OSI Approved :: MIT License
-Classifier: Operating System :: OS Independent
-Classifier: Intended Audience :: Developers
-Classifier: Natural Language :: French
-Classifier: Topic :: Software Development :: Code Generators
-Requires-Python: >=3.8
-Description-Content-Type: text/markdown
-License-File: LICENSE
-Requires-Dist: requests>=2.32.3
-Requires-Dist: pydantic>=2.8.2
-Requires-Dist: tiktoken>=0.7.0
-Requires-Dist: jsonschema>=4.23.0
-Requires-Dist: typing-extensions>=4.12.2
-
-# OpenHosta 
-v1.0 - Open-Source Project
-
-**- The future of development is human -**
-
-Welcome to the OpenHosta documentation, a powerful tool that facilitates the integration LLM in the development environnement. OpenHosta is used to emulate functions using AI, while respecting Python's native paradygma and syntax.
-
-For this project, we have adopted a [Code of Conduct](CODE_OF_CONDUCT.md) to ensure a respectful and inclusive environment for all contributors. Please take a moment to read it.
-
-## Table of Content
-
-- [OpenHosta](#openhosta)
-  - [Table of Content](#table-of-content)
-  - [How to install OpenHosta ?](#how-to-install-openhosta-)
-    - [Prerequisites](#prerequisites)
-    - [Installation](#installation)
-      - [Via pip](#via-pip)
-      - [Via git (Developper version)](#via-git-developper-version)
-    - [Example](#example)
-  - [Further information](#further-information)
-    - [Contributing](#contributing)
-    - [License](#license)
-    - [Authors \& Contact](#authors--contact)
-
----
-
-## How to install OpenHosta ?
-
-### Prerequisites
-
-1. **Python 3.8+**
-   - Download and install Python from [python.org](https://www.python.org/downloads/).
-
-2. **pip**
-   - pip is generally included with Python. Verify its installation with:
-     ```sh
-     pip --version
-     ```
-
-3. **Git**
-   - Download and install Git from [git-scm.com](https://git-scm.com/downloads).
-
-4. **Virtual Environment (optional)**
-   - Create and activate a virtual environment:
-     ```bash
-     python -m venv env
-     ```
-   - Activate the virtual environement:
-      ```bash
-      .\env\Scripts\activate # Windows
-      source env/bin/activate # macOS/Linux
-      ```
-
-5. **API Key**
-   - **API Key**: Log in to your OpenAI account from [openai.com](https://openai.com/), then create your API key. For further information, you can check this [tuto](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key).
-
-### Installation
-
-#### Via pip
-
-1. Run the following command to install OpenHosta directly:
- 
-```sh
-pip install openhosta
-```
-
-2. After the installation, you can verify that OpenHosta is installed correctly by running:
-
-```sh
-pip show openhosta
-```
-
-#### Via git (Developper version)
-
-1. Clone the **Git repository** to your local machine using the following command:
-
-```bash
-git clone git@github.com:hand-e-fr/OpenHosta-dev.git
-```
-
-2. Navigate to the **directory** of the cloned project:
-
-```bash
-cd OpenHosta-dev
-```
-
-3. Ensure you have installed the necessary **dependencies** before starting.
-
-```bash
-pip install -r requirements.txt
-```
-
-This way you have all the documentation and source code to understand our project
-
-### Example
-
-```python
-from OpenHosta import emulate, config
-
-config.set_default_apiKey("put-your-api-key-here")
-
-def translate(text:str, language:str)->str:
-    """
-    This function translates the text in the “text” parameter into the language specified in the “language” parameter.
-    """
-    return emulate()
-
-result = translate("Hello World!", "French")
-print(result)
-```
-You check OpenHosta's [documentation](doc/Docs.md) for more detailled informations or exemple
-
-## Further information
-
-### Contributing
-
-We warmly welcome contributions from the community. Whether you are an experienced developer or a beginner, your contributions are welcome.
-
-If you wish to contribute to this project, please refer to our [Contribution Guide](CONTRIBUTING.md) and our [Code of Conduct](CODE_OF_CONDUCT.md).
-
-Browse the existing [issues](https://github.com/hand-e-fr/OpenHosta/issues) to see if someone is already working on what you have in mind or to find contribution ideas.
-
-### License
-
-This project is licensed under the MIT License. This means you are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, subject to the following conditions:
-
-  - The text of the license below must be included in all copies or substantial portions of the software.
-
-See the [LICENSE](LICENSE) file for more details.
-
-### Authors & Contact
-
-For further questions or assistance, please refer to partner hand-e or contact us directly via github.
-
-**Authors**:
-   - Emmanuel Batt: Manager and Coordinator, Founder of Hand-e
-   - William Jolivet: DevOps, SysAdmin
-   - Léandre Ramos: MLOps, IA developer
-   - Merlin Devillard: UX designer, Product Owner
-
-GitHub: https://github.com/hand-e-fr/OpenHosta
-
----
-
-Thank you for your interest in our project and your potential contributions!
-
-**The OpenHosta Team**
diff --git a/src/OpenHosta.egg-info/SOURCES.txt b/src/OpenHosta.egg-info/SOURCES.txt
deleted file mode 100644
index 68f278f..0000000
--- a/src/OpenHosta.egg-info/SOURCES.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-LICENSE
-README.md
-pyproject.toml
-src/OpenHosta/OpenHosta.py
-src/OpenHosta/__init__.py
-src/OpenHosta/analytics.py
-src/OpenHosta/cache.py
-src/OpenHosta/config.py
-src/OpenHosta/emulate.py
-src/OpenHosta/enhancer.py
-src/OpenHosta/errors.py
-src/OpenHosta/example.py
-src/OpenHosta/exec.py
-src/OpenHosta/prompt.json
-src/OpenHosta/prompt.py
-src/OpenHosta/thought.py
-src/OpenHosta.egg-info/PKG-INFO
-src/OpenHosta.egg-info/SOURCES.txt
-src/OpenHosta.egg-info/dependency_links.txt
-src/OpenHosta.egg-info/requires.txt
-src/OpenHosta.egg-info/top_level.txt
\ No newline at end of file
diff --git a/src/OpenHosta.egg-info/dependency_links.txt b/src/OpenHosta.egg-info/dependency_links.txt
deleted file mode 100644
index 8b13789..0000000
--- a/src/OpenHosta.egg-info/dependency_links.txt
+++ /dev/null
@@ -1,1 +0,0 @@
-
diff --git a/src/OpenHosta.egg-info/top_level.txt b/src/OpenHosta.egg-info/top_level.txt
deleted file mode 100644
index 5093da4..0000000
--- a/src/OpenHosta.egg-info/top_level.txt
+++ /dev/null
@@ -1,1 +0,0 @@
-OpenHosta


Test patch:
diff --git a/tests/functionnalTests/test_mandatory.py b/tests/functionnalTests/test_mandatory.py
index df53491..c100f68 100644
--- a/tests/functionnalTests/test_mandatory.py
+++ b/tests/functionnalTests/test_mandatory.py
@@ -1,7 +1,5 @@
 import pytest
 import time as t
-import sys
-import os
 from pydantic import BaseModel
 from typing import Callable
 
@@ -255,42 +253,5 @@ def test_FeatureDefaultModel(self):
     
     def test_FeatureCachedPrediction(self):
         pass
-
-
 class TestTypingPydantic:
-    pass
-
-"""
-typing (parametrize)
-creativity, diversity
-example
-cache
----
-test en trompant le LLM dans la def ou la doc
-test faute d'rthographe
-Error:
-quand func n'est pas trouvé, Erreur expliquant la déclaration dans le frame parent
-def test():
-    def a():
-        \"\"\" Give me a ramdom word \"\""
-        return emulate()
-    return a
-
-#Erreur
-print(test()())
-#Valid
-b = test()
-print(b())
-
-CONTRIBUTING
-changelog
-doc
-test
----
-Makefile
-make benchmark
-make functests
-make unittests
-avec redirection de coverage et html dans TestData
-argument makefile apiKey
-"""
\ No newline at end of file
+    pass
\ No newline at end of file