mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
chore: use poetry as the backend package manager
This commit is contained in:
parent
c64af92eba
commit
f96540ea25
4 changed files with 4476 additions and 2 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
#
|
#
|
||||||
FROM python:3.11
|
FROM python:3.11
|
||||||
|
|
||||||
|
# poetry
|
||||||
|
RUN pip install poetry
|
||||||
|
|
||||||
#
|
#
|
||||||
WORKDIR /usr/learnhouse/apps/api
|
WORKDIR /usr/learnhouse/apps/api
|
||||||
|
|
||||||
|
|
@ -8,7 +11,9 @@ WORKDIR /usr/learnhouse/apps/api
|
||||||
COPY ./requirements.txt /usr/learnhouse/requirements.txt
|
COPY ./requirements.txt /usr/learnhouse/requirements.txt
|
||||||
|
|
||||||
#
|
#
|
||||||
RUN pip install --no-cache-dir --upgrade -r /usr/learnhouse/requirements.txt
|
RUN poetry config virtualenvs.create false \
|
||||||
|
&& pip install --upgrade pip \
|
||||||
|
&& pip install -r /usr/learnhouse/requirements.txt
|
||||||
|
|
||||||
#
|
#
|
||||||
COPY ./ /usr/learnhouse
|
COPY ./ /usr/learnhouse
|
||||||
|
|
|
||||||
4427
apps/api/poetry.lock
generated
Normal file
4427
apps/api/poetry.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,3 +1,44 @@
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
# E501 line too long (82 > 79 characters)
|
# E501 line too long (82 > 79 characters)
|
||||||
ignore = ["E501"]
|
ignore = ["E501"]
|
||||||
|
|
||||||
|
[tool.poetry]
|
||||||
|
name = "learnhouse-api"
|
||||||
|
version = "0.1.0"
|
||||||
|
description = "Learnhouse Backend"
|
||||||
|
authors = ["Badr B. (swve)"]
|
||||||
|
readme = "README.md"
|
||||||
|
|
||||||
|
[tool.poetry.dependencies]
|
||||||
|
python = "^3.11"
|
||||||
|
fastapi = "0.104.1"
|
||||||
|
pydantic = {version = ">=1.8.0,<2.0.0", extras = ["email"]}
|
||||||
|
sqlmodel = "0.0.10"
|
||||||
|
uvicorn = "0.23.2"
|
||||||
|
pymongo = "4.3.3"
|
||||||
|
motor = "3.1.1"
|
||||||
|
psycopg2 = "^2.9.9"
|
||||||
|
python-multipart = "^0.0.6"
|
||||||
|
boto3 = "^1.34.17"
|
||||||
|
botocore = "^1.34.17"
|
||||||
|
python-jose = "^3.3.0"
|
||||||
|
passlib = "^1.7.4"
|
||||||
|
fastapi-jwt-auth = "^0.5.0"
|
||||||
|
pytest = "^7.4.4"
|
||||||
|
httpx = "^0.26.0"
|
||||||
|
faker = "^22.2.0"
|
||||||
|
requests = "^2.31.0"
|
||||||
|
pyyaml = "^6.0.1"
|
||||||
|
sentry-sdk = {extras = ["fastapi"], version = "^1.39.2"}
|
||||||
|
langchain = "0.1.0"
|
||||||
|
tiktoken = "^0.5.2"
|
||||||
|
openai = "^1.7.1"
|
||||||
|
chromadb = "^0.4.22"
|
||||||
|
sentence-transformers = "^2.2.2"
|
||||||
|
python-dotenv = "^1.0.0"
|
||||||
|
redis = "^5.0.1"
|
||||||
|
langchain-community = "^0.0.11"
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["poetry-core"]
|
||||||
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@ requests
|
||||||
pyyaml
|
pyyaml
|
||||||
sentry-sdk[fastapi]
|
sentry-sdk[fastapi]
|
||||||
pydantic[email]>=1.8.0,<2.0.0
|
pydantic[email]>=1.8.0,<2.0.0
|
||||||
langchain
|
langchain==0.1.0
|
||||||
|
langchain-community
|
||||||
tiktoken
|
tiktoken
|
||||||
openai
|
openai
|
||||||
chromadb
|
chromadb
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue