From b53ab7c9502c310c7a42ce481602d2e2533d549f Mon Sep 17 00:00:00 2001 From: Alistair Rogers Date: Wed, 20 Dec 2023 15:08:56 +0000 Subject: [PATCH] add pyproject --- integrations/ollama/pyproject.toml | 82 ++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 integrations/ollama/pyproject.toml diff --git a/integrations/ollama/pyproject.toml b/integrations/ollama/pyproject.toml new file mode 100644 index 000000000..753e21ef2 --- /dev/null +++ b/integrations/ollama/pyproject.toml @@ -0,0 +1,82 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "ollama" +dynamic = ["version"] +description = 'An integration between the Ollama LLM framework and Haystack' +readme = "README.md" +requires-python = ">=3.8" +license = "Apache-2.0" +keywords = [] +authors = [ + { name = "Alistair Rogers", email = "alistairlr112@gmail.com" }, + { name = "Sachin Sachdeva", email = "emailforsachinsachdeva@gmail.com" } +] +classifiers = [ + "Development Status :: 4 - Beta", + "Programming Language :: Python", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", +] +dependencies = ["haystack-ai", "requests"] + +[project.urls] +Documentation = "https://github.com/unknown/ollama-haystack#readme" +Issues = "https://github.com/unknown/ollama-haystack/issues" +Source = "https://github.com/unknown/ollama-haystack" + +[tool.hatch.version] +path = "src/ollama_haystack/__about__.py" + +[tool.hatch.envs.default] +dependencies = [ + "coverage[toml]>=6.5", + "pytest", +] +[tool.hatch.envs.default.scripts] +test = "pytest {args:tests}" +test-cov = "coverage run -m pytest {args:tests}" +cov-report = [ + "- coverage combine", + "coverage report", +] +cov = [ + "test-cov", + "cov-report", +] + +[[tool.hatch.envs.all.matrix]] +python = ["3.8", "3.9", "3.10", "3.11", "3.12"] + +[tool.hatch.envs.types] +dependencies = [ + "mypy>=1.0.0", +] +[tool.hatch.envs.types.scripts] +check = "mypy --install-types --non-interactive {args:src/ollama_haystack tests}" + +[tool.coverage.run] +source_pkgs = ["ollama_haystack", "tests"] +branch = true +parallel = true +omit = [ + "src/ollama_haystack/__about__.py", +] + +[tool.coverage.paths] +ollama_haystack = ["src/ollama_haystack", "*/ollama/src/ollama_haystack"] +tests = ["tests", "*/ollama-haystack/tests"] + +[tool.coverage.report] +exclude_lines = [ + "no cov", + "if __name__ == .__main__.:", + "if TYPE_CHECKING:", +]