Skip to content

Commit

Permalink
build(dependency): adopt pipenv to lock dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Bidaya0 committed Oct 9, 2022
1 parent ff9b299 commit 8ce2d86
Show file tree
Hide file tree
Showing 4 changed files with 1,642 additions and 67 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim
FROM python:3.10.7-slim
ARG VERSION
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8
Expand All @@ -16,9 +16,9 @@ RUN curl -L https://github.com/Endava/cats/releases/download/cats-7.0.1/cats-lin
&& curl -L https://charts.dongtai.io/apk/wkhtmltopdf -o /usr/bin/wkhtmltopdf \
&& chmod +x /usr/bin/wkhtmltopdf


COPY requirements-prod.txt /opt/dongtai/webapi/requirements.txt
RUN pip3 install -r /opt/dongtai/webapi/requirements.txt
COPY Pipfile .
COPY Pipfile.lock .
RUN pip install pipenv && python3 -m pipenv install --system

# debug performance ...
COPY . /opt/dongtai
Expand Down
73 changes: 73 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
asgiref = "~=3.3.1"
certifi = "==2020.11.8"
cffi = "==1.15.1"
chardet = "==3.0.4"
django = "~=3.2.12"
django-cors-headers = "==3.7.0"
django-filter = "==2.4.0"
django-ranged-response = "==0.2.0"
django-xff = "==1.3.0"
djangorestframework = "~=3.12.4"
django-rest-framework-proxy = "==1.6.0"
django-utils = "==0.0.2"
django-utils-six = "==2.0"
django-simple-captcha = "==0.5.14"
django-import-export = "==2.5.0"
oss2 = "==2.13.1"
idna = "==2.10"
lxml = "==4.9.1"
mysqlclient = "*"
python-docx = "==0.8.10"
requests = "==2.25.1"
six = "==1.15.0"
urllib3 = "==1.26.5"
xlwt = "==1.3.0"
uwsgi = "==2.0.20"
pyre2 = "~=0.3.6"
celery = "==5.2.7"
redis = "==3.5.3"
openpyxl = "==3.0.9"
id-validator = "==1.0.20"
jq = "==1.2.1"
django-celery-beat = "==2.2.0"
django-cprofile-middleware = "*"
drf-spectacular = "==0.22.1"
django-modeltranslation = "==0.17.7"
pycryptodomex = "~=3.14.1"
simhash = "==2.1.2"
result = "~=0.8.0"
python-json-logger = "~=2.0.2"
jsonlog = "==4.0.0"
pymysql = "==1.0.2"
uwsgitop = "==0.11"
django-redis = "==5.2.0"
packaging = "==21.3"
docxtpl = "==0.16.0"
docxcompose = "==1.3.4"
django-elasticsearch-dsl = "==7.2.2"
asyncio-gevent = "==0.2.1"
gevent = "==21.12.0"
ddt = "==1.6.0"
boto3 = "==1.24.59"
mypy = "==0.961"
typing-extensions = "==4.3.0"
djangorestframework-stubs = {version = "==1.7.0", extras = ["compatible-mypy"]}
django-stubs = {version = "==1.12.0", extras = ["compatible-mypy"]}
types-pymysql = "==1.0.19"
types-redis = "==4.3.20"
types-requests = "==2.28.10"
types-urllib3 = "==1.26.24"
boto3-stubs = "==1.24.72"
botocore-stubs = "==1.27.71"
pep8 = "==1.7.1"

[dev-packages]

[requires]
python_version = "3.10"
Loading

0 comments on commit 8ce2d86

Please sign in to comment.