From f9a7f1f405561a8a825e72aa50222dd8e46229b3 Mon Sep 17 00:00:00 2001 From: David McKee Date: Tue, 10 Oct 2023 14:00:03 +0100 Subject: [PATCH] Use poetry --- pyproject.toml | 29 ++++++++++++++++++++++++++--- script/test | 1 + 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c2826df..07721fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,4 @@ -[build-system] -requires = ["setuptools", "wheel"] -build-backend = "setuptools.build_meta" + [tool.black] line-length = 88 @@ -28,3 +26,28 @@ skip = [ '.venv', '_build', 'buck-out', 'build', 'dist', 'node_modules', 'venv', ] skip_gitignore = true + +[tool.poetry] +name = "ds-caselaw-privileged-api" +version = "0.3.0" +description = "" +authors = ["David McKee "] +license = "MIT" +readme = "README.md" + +[tool.poetry.dependencies] +python = ">=3.10, <4" +fastapi = ">=0.103.2" +python-dotenv = ">=1.0.0" +ds-caselaw-marklogic-api-client = ">=5.2.0" +django-environ = ">=0.11.2" +requests = {extras = ["use-chardet-on-py3"], version = ">=2.31.0"} +requests-toolbelt = ">=1.0.0" +pytest = ">=7.4.2" +lxml = ">= 4.9.3" +httpx = ">= 0.25.0" + + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" diff --git a/script/test b/script/test index d12df52..d173b9e 100755 --- a/script/test +++ b/script/test @@ -1,2 +1,3 @@ +#!bash export $(cat .env|xargs) PYTHONPATH=src pytest tests $*