From 3a86ed38c10316a436cf09553c92e63f169df230 Mon Sep 17 00:00:00 2001 From: Manjurul Hoque Rumi Date: Thu, 10 Oct 2024 17:29:48 +0600 Subject: [PATCH] Upgraded python version and all packages --- Dockerfile | 10 +-- README.md | 13 ++-- requirements.txt | 164 +++++++++++++++++++++++------------------------ 3 files changed, 93 insertions(+), 94 deletions(-) diff --git a/Dockerfile b/Dockerfile index 99a6fe6..7863657 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,16 @@ -FROM python:3.8-buster +FROM python:3.11-slim -WORKDIR /usr/src/app +WORKDIR /app ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 -COPY requirements.txt /usr/src/app +COPY requirements.txt requirements.txt # RUN python -m pip install --upgrade pip RUN pip install -r requirements.txt -COPY . /usr/src/app +COPY . . RUN cp .env.dev.sample .env @@ -18,7 +18,7 @@ RUN cp .env.dev.sample .env RUN chmod +x entrypoint.sh -ENV APP_HOME=/usr/src/app +ENV APP_HOME=/app ENV DEBUG=1 RUN mkdir $APP_HOME/staticfiles RUN mkdir $APP_HOME/mediafiles diff --git a/README.md b/README.md index 37b8e3e..888b687 100644 --- a/README.md +++ b/README.md @@ -34,13 +34,13 @@ Used Tech Stack ## Login page - +login ## Add new position as employer - +form ## Job details - +details ## Swagger API @@ -56,7 +56,7 @@ Used Tech Stack Or - `python3.8 -m venv venv` + `python3.11 -m venv venv` 2. Activate it @@ -74,17 +74,16 @@ Used Tech Stack #### Run -1.With the venv activate it, execute: +1. With the venv activate it, execute: python manage.py collectstatic -*Note* : Collect static is not necessary when debug is True (in dev mode) + *Note* : Collect static is not necessary when debug is True (in dev mode) 2. Create initial database: `python manage.py migrate` - 3. Load demo data (optional): `python manage.py loaddata fixtures/app_name_initial_data.json --app app.model_name` diff --git a/requirements.txt b/requirements.txt index dc98ef6..f98624d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,95 +1,95 @@ aniso8601==9.0.1 -appdirs==1.4.3 -asgiref==3.4.1 -backports.zoneinfo==0.2.1 -black==20.8b1 -CacheControl==0.12.6 -certifi==2019.11.28 -cffi==1.14.3 -cfgv==3.3.0 -chardet==3.0.4 -click==7.1.2 -colorama==0.4.3 -contextlib2==0.6.0 +appdirs==1.4.4 +asgiref==3.8.1 +# backports.zoneinfo==0.2.1 +black==24.10.0 +CacheControl==0.14.0 +certifi==2024.8.30 +cffi==1.17.1 +cfgv==3.4.0 +chardet==5.2.0 +click==8.1.7 +colorama==0.4.6 +contextlib2==21.6.0 coreapi==2.3.3 coreschema==0.0.4 -cryptography==3.2.1 -defusedxml==0.7.0rc1 -distlib==0.3.2 -distro==1.4.0 -Django==4.0.1 -django-braces==1.14.0 -django-cors-headers==3.11.0 -django-elasticsearch-dsl==7.2.2 -django-environ==0.4.5 -django-graphql-jwt==0.3.4 -django-prometheus==2.2.0 -django-oauth-toolkit==1.3.3 -django-rest-framework-social-oauth2==1.1.0 -djangorestframework==3.13.1 -djangorestframework-simplejwt==5.0.0 -drf-yasg==1.20.0 -elasticsearch==7.5.1 -elasticsearch-dsl==7.4.0 -filelock==3.0.12 -graphene==3.0 -graphene-django==3.0.0b7 +cryptography==43.0.1 +defusedxml==0.7.1 +distlib==0.3.9 +distro==1.9.0 +Django==5.1.2 +django-braces==1.16.0 +django-cors-headers==4.4.0 +django-elasticsearch-dsl==8.0 +django-environ==0.11.2 +django-graphql-jwt==0.4.0 +django-prometheus==2.3.1 +django-oauth-toolkit==3.0.1 +django-rest-framework-social-oauth2==1.2.0 +djangorestframework==3.15.2 +djangorestframework-simplejwt==5.3.1 +drf-yasg==1.21.7 +elasticsearch==8.15.1 +elasticsearch-dsl==8.15.4 +filelock==3.16.1 +graphene==3.3 +graphene-django==3.2.2 graphene-file-upload==1.3.0 -graphql-core==3.1.7 -graphql-relay==3.1.0 -gunicorn==20.0.4 -html5lib==1.0.1 -identify==2.2.10 -idna==2.8 -inflection==0.3.1 +graphql-core==3.2.4 +graphql-relay==3.2.0 +gunicorn==23.0.0 +html5lib==1.1 +identify==2.6.1 +idna==3.10 +inflection==0.5.1 ipaddr==2.2.0 -isort==5.9.1 -itypes==1.1.0 -Jinja2==2.11.1 +isort==5.13.2 +itypes==1.2.0 +Jinja2==3.1.4 lockfile==0.12.2 -MarkupSafe==1.1.1 -msgpack==0.6.2 -mypy-extensions==0.4.3 -nodeenv==1.6.0 -oauthlib==3.1.0 +MarkupSafe==3.0.1 +msgpack==1.1.0 +mypy-extensions==1.0.0 +nodeenv==1.9.1 +oauthlib==3.2.2 openapi-codec==1.3.2 -packaging==20.1 -pathspec==0.8.1 -pep517==0.8.2 -Pillow==9.3.0 -pre-commit==2.13.0 -progress==1.5 +packaging==24.1 +pathspec==0.12.1 +pep517==0.13.1 +Pillow==10.4.0 +pre-commit==4.0.1 +progress==1.6 promise==2.3 -prometheus-client==0.14.1 -psycopg2-binary==2.8.6 -pycparser==2.20 -Pygments==2.7.1 -PyJWT==2.3.0 -pyparsing==2.4.6 -python-dateutil==2.8.1 +prometheus-client==0.21.0 +psycopg2-binary==2.9.9 +pycparser==2.22 +Pygments==2.18.0 +PyJWT==2.9.0 +pyparsing==3.1.4 +python-dateutil==2.9.0.post0 python3-openid==3.2.0 pytoml==0.1.21 -pytz==2018.9 -PyYAML==5.4.1 -regex==2020.11.13 -requests==2.22.0 -requests-oauthlib==1.3.0 -retrying==1.3.3 -ruamel.yaml==0.16.10 -ruamel.yaml.clib==0.2.0 -Rx==1.6.1 -simplejson==3.17.0 -singledispatch==3.7.0 -six==1.14.0 -social-auth-app-django==5.0.0 -social-auth-core==4.1.0 -sqlparse==0.3.0 +pytz==2024.2 +PyYAML==6.0.2 +regex==2024.9.11 +requests==2.32.3 +requests-oauthlib==2.0.0 +retrying==1.3.4 +ruamel.yaml==0.18.6 +ruamel.yaml.clib==0.2.8 +Rx==3.2.0 +simplejson==3.19.3 +singledispatch==4.1.0 +six==1.16.0 +social-auth-app-django==5.4.2 +social-auth-core==4.5.4 +sqlparse==0.5.1 text-unidecode==1.3 toml==0.10.2 -typed-ast==1.4.1 -typing-extensions==3.7.4.3 -uritemplate==3.0.1 -urllib3==1.25.8 -virtualenv==20.4.7 +typed-ast==1.5.5 +typing-extensions==4.12.2 +uritemplate==4.1.1 +urllib3==2.2.3 +virtualenv==20.26.6 webencodings==0.5.1 -whitenoise==5.0.1 +whitenoise==6.7.0