From 6d1550d187c7156a8303ad1f7cf61e8d9bf6cf69 Mon Sep 17 00:00:00 2001 From: Ivar Flakstad <69173633+ivarflakstad@users.noreply.github.com> Date: Tue, 12 Mar 2024 10:02:38 +0100 Subject: [PATCH] Move pytest dependency to poetry dev group --- README.md | 2 +- poetry.lock | 48 +++++++++++++++++++++++++++++++++++++++++++++++- pyproject.toml | 3 +++ 3 files changed, 51 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a897cdcb..b1dcfc86 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ All installation steps go here. - Activate the env `source .venv/bin/activate` - Install poetry and uvicorn `pip install poetry uvicorn` - Install dependencies `poetry install` -- Now you can run the project with `uvicorn ` +- Now you can run the project with `uvicorn app.main:app --reload` - Set up Embedding Server from [TEI](https://github.com/huggingface/text-embeddings-inference/tree/main) diff --git a/poetry.lock b/poetry.lock index 6750c7dd..9136dee0 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1377,6 +1377,17 @@ files = [ docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"] testing = ["jaraco.collections", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-ruff (>=0.2.1)", "zipp (>=3.17)"] +[[package]] +name = "iniconfig" +version = "2.0.0" +description = "brain-dead simple config-ini parsing" +optional = false +python-versions = ">=3.7" +files = [ + {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, + {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, +] + [[package]] name = "ipython" version = "8.22.2" @@ -2945,6 +2956,21 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa typing = ["typing-extensions"] xmp = ["defusedxml"] +[[package]] +name = "pluggy" +version = "1.4.0" +description = "plugin and hook calling mechanisms for python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pluggy-1.4.0-py3-none-any.whl", hash = "sha256:7db9f7b503d67d1c5b95f59773ebb58a8c1c288129a88665838012cfb07b8981"}, + {file = "pluggy-1.4.0.tar.gz", hash = "sha256:8c85c2876142a764e5b7548e7d9a0e0ddb46f5185161049a79b7e974454223be"}, +] + +[package.extras] +dev = ["pre-commit", "tox"] +testing = ["pytest", "pytest-benchmark"] + [[package]] name = "posthog" version = "3.5.0" @@ -3382,6 +3408,26 @@ files = [ {file = "pyreadline3-3.4.1.tar.gz", hash = "sha256:6f3d1f7b8a31ba32b73917cefc1f28cc660562f39aea8646d30bd6eff21f7bae"}, ] +[[package]] +name = "pytest" +version = "8.1.1" +description = "pytest: simple powerful testing with Python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pytest-8.1.1-py3-none-any.whl", hash = "sha256:2a8386cfc11fa9d2c50ee7b2a57e7d898ef90470a7a34c4b949ff59662bb78b7"}, + {file = "pytest-8.1.1.tar.gz", hash = "sha256:ac978141a75948948817d360297b7aae0fcb9d6ff6bc9ec6d514b85d5a65c044"}, +] + +[package.dependencies] +colorama = {version = "*", markers = "sys_platform == \"win32\""} +iniconfig = "*" +packaging = "*" +pluggy = ">=1.4,<2.0" + +[package.extras] +testing = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] + [[package]] name = "python-dateutil" version = "2.9.0.post0" @@ -4936,4 +4982,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "adff3ef924c9b8303f9fdb36249067cb83877de0c9628b2bba8c1c1b335a524a" +content-hash = "31f72ae06483834cc1ee4833903297e05c498a3b96accd0d8372c6eecc84b6cc" diff --git a/pyproject.toml b/pyproject.toml index 397d42bf..3b329604 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,6 +20,9 @@ authx = "1.0.1b1" itsdangerous = "^2.1.2" llama-index-embeddings-text-embeddings-inference = "^0.1.2" +[tool.poetry.group.dev.dependencies] +pytest = "^8.1.1" + [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"