diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d7be87d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM python:3.8 +COPY requirements.txt /tmp +RUN pip install -r requirements.txt +COPY . /tmp/personal_api +RUN pip install /tmp/personal_api +CMD gunicorn -w 4 -k uvicorn.workers.UvicornWorker main.app:app diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..041c4d8 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,36 @@ +[tool.poetry] +name = "personal_api" +version = "0.1.0" +description = "" +authors = ["zevav "] + +[tool.poetry.dependencies] +python = "^3.8" +click = "=7.0" +websockets = "=8.0.2" +regex = "=2019.8.19" +psycopg2 = "=2.8.4" +six = "=1.12.0" +certifi = "=2019.9.11" +pydantic = "=0.32.2" +sqlalchemy = "=1.3.10" +uvloop = "=0.14.0rc1" +urllib3 = "=1.25.6" +httptools = "=0.0.13" +pytz = "=2019.3" +tzlocal = "=2.0.0" +python-dateutil = "=2.8.0" +dateparser = "=0.7.2" +h11 = "=0.8.1" +uvicorn = "=0.9.1" +chardet = "=3.0.4" +fastapi = "=0.42.0" +requests = "=2.22.0" +idna = "=2.8" +starlette = "=0.12.9" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry>=0.12"] +build-backend = "poetry.masonry.api" diff --git a/requirements.txt b/requirements.txt index 7f0334b..fd8f7fd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,10 @@ --i https://pypi.org/simple certifi==2019.9.11 chardet==3.0.4 click==7.0 dateparser==0.7.2 fastapi==0.42.0 h11==0.8.1 -httptools==0.0.13 ; sys_platform != 'win32' and sys_platform != 'cygwin' and platform_python_implementation != 'pypy' +httptools==0.0.13 idna==2.8 psycopg2==2.8.4 pydantic==0.32.2 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a66ffd3 --- /dev/null +++ b/setup.py @@ -0,0 +1,5 @@ +from setuptools import setup + +setup(name='personal_api', + packages=["app"], + )