Browse Source

update env dependencies and Docker python version

highing666 3 years ago
parent
commit
81506639bd
2 changed files with 8 additions and 7 deletions
  1. 2 1
      Dockerfile
  2. 6 6
      pyproject.toml

+ 2 - 1
Dockerfile

@@ -1,6 +1,7 @@
 # syntax=docker/dockerfile:1
 
-FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
+# FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
+FROM tiangolo/uvicorn-gunicorn:python3.9
 
 WORKDIR /app
 

+ 6 - 6
pyproject.toml

@@ -1,30 +1,30 @@
 [tool.poetry]
 name = "saga_algo_api"
-version = "0.1.0"
+version = "0.3.0"
 description = "SagaCare Algorithm Web Server"
 authors = ["highing666 <bigseabigdream@gmail.com>"]
 license = "Apache-2.0"
 
 [tool.poetry.dependencies]
-python = "^3.8"
+python = "^3.9"
 Cython = "^0.29.24"
 pandas = "1.2.4"
 grpcio = "1.37.1"
-pymilvus = "2.0.0rc5"
+pymilvus = "2.0.0rc6"
 fastapi = "^0.68.1"
 python-dotenv = "^0.19.0"
-uvicorn = "^0.13.4"
+uvicorn = "^0.15.0"
 psycopg2-binary = "^2.9.1"
 SQLAlchemy = "^1.4.23"
 redis = "^3.5.3"
 arrow = "^1.1.1"
 loguru = "^0.5.3"
 httpx = "^0.19.0"
-tencentcloud-sdk-python = "^3.0.470"
+tencentcloud-sdk-python = "^3.0.489"
 scikit-learn = "^0.24.2"
 
 [tool.poetry.dev-dependencies]
-pylint = "^2.10.2"
+pylint = "^2.11.1"
 flake8 = "^3.9.2"
 black = "^21.7b0"