From 886b1cdc260f43896844c8c10be410911cf8566b Mon Sep 17 00:00:00 2001 From: Ahmed Nassar Date: Mon, 16 Dec 2024 22:27:42 +0200 Subject: [PATCH] feat: Update Django to 4.2.17 and adjust dependencies in poetry.lock, pyproject.toml, and requirements.txt --- poetry.lock | 50 ++++++++++++++++++++++++------------------------ pyproject.toml | 2 +- requirements.txt | 4 ++-- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/poetry.lock b/poetry.lock index 5b7702f..2f70f10 100644 --- a/poetry.lock +++ b/poetry.lock @@ -127,19 +127,19 @@ files = [ [[package]] name = "attrs" -version = "24.2.0" +version = "24.3.0" description = "Classes Without Boilerplate" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "attrs-24.2.0-py3-none-any.whl", hash = "sha256:81921eb96de3191c8258c199618104dd27ac608d9366f5e35d011eae1867ede2"}, - {file = "attrs-24.2.0.tar.gz", hash = "sha256:5cfb1b9148b5b086569baec03f20d7b6bf3bcacc9a42bebf87ffaaca362f6346"}, + {file = "attrs-24.3.0-py3-none-any.whl", hash = "sha256:ac96cd038792094f438ad1f6ff80837353805ac950cd2aa0e0625ef19850c308"}, + {file = "attrs-24.3.0.tar.gz", hash = "sha256:8f5c07333d543103541ba7be0e2ce16eeee8130cb0b3f9238ab904ce1e85baff"}, ] [package.extras] benchmark = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-codspeed", "pytest-mypy-plugins", "pytest-xdist[psutil]"] cov = ["cloudpickle", "coverage[toml] (>=5.3)", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] -dev = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pre-commit", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] +dev = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pre-commit-uv", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] docs = ["cogapp", "furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier (<24.7)"] tests = ["cloudpickle", "hypothesis", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] tests-mypy = ["mypy (>=1.11.1)", "pytest-mypy-plugins"] @@ -296,19 +296,19 @@ files = [ [[package]] name = "django" -version = "3.2.25" -description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design." +version = "4.2.17" +description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design." optional = false -python-versions = ">=3.6" +python-versions = ">=3.8" files = [ - {file = "Django-3.2.25-py3-none-any.whl", hash = "sha256:a52ea7fcf280b16f7b739cec38fa6d3f8953a5456986944c3ca97e79882b4e38"}, - {file = "Django-3.2.25.tar.gz", hash = "sha256:7ca38a78654aee72378594d63e51636c04b8e28574f5505dff630895b5472777"}, + {file = "Django-4.2.17-py3-none-any.whl", hash = "sha256:3a93350214ba25f178d4045c0786c61573e7dbfa3c509b3551374f1e11ba8de0"}, + {file = "Django-4.2.17.tar.gz", hash = "sha256:6b56d834cc94c8b21a8f4e775064896be3b4a4ca387f2612d4406a5927cd2fdc"}, ] [package.dependencies] -asgiref = ">=3.3.2,<4" -pytz = "*" -sqlparse = ">=0.2.2" +asgiref = ">=3.6.0,<4" +sqlparse = ">=0.3.1" +tzdata = {version = "*", markers = "sys_platform == \"win32\""} [package.extras] argon2 = ["argon2-cffi (>=19.1.0)"] @@ -727,17 +727,6 @@ files = [ [package.extras] cli = ["click (>=5.0)"] -[[package]] -name = "pytz" -version = "2024.2" -description = "World timezone definitions, modern and historical" -optional = false -python-versions = "*" -files = [ - {file = "pytz-2024.2-py2.py3-none-any.whl", hash = "sha256:31c7c1817eb7fae7ca4b8c7ee50c72f93aa2dd863de768e1ef4245d426aa0725"}, - {file = "pytz-2024.2.tar.gz", hash = "sha256:2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a"}, -] - [[package]] name = "pywin32" version = "306" @@ -861,6 +850,17 @@ files = [ {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, ] +[[package]] +name = "tzdata" +version = "2024.2" +description = "Provider of IANA time zone data" +optional = false +python-versions = ">=2" +files = [ + {file = "tzdata-2024.2-py2.py3-none-any.whl", hash = "sha256:a48093786cdcde33cad18c2555e8532f34422074448fbc874186f0abd79565cd"}, + {file = "tzdata-2024.2.tar.gz", hash = "sha256:7d85cc416e9382e69095b7bdf4afd9e3880418a2413feec7069d533d6b4e31cc"}, +] + [[package]] name = "urllib3" version = "2.2.3" @@ -900,4 +900,4 @@ standard = ["PyYAML (>=5.1)", "colorama (>=0.4)", "httptools (==0.2.*)", "python [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "7d782c732c9119895bf67477059913cda4395c3bcda5d2c6fe7bde1d04bdba2f" +content-hash = "41943ef59c11006f97cf0f598f7b033ea97e8ced45deb75624fa24bf7aff82aa" diff --git a/pyproject.toml b/pyproject.toml index 20cb861..e1b3a7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ package-mode = false # Disable packaging mode [tool.poetry.dependencies] python = "^3.9" -django = "^3.2" +django = "^4.2.16" fastapi = "^0.68.1" uvicorn = "^0.15.0" pydantic = "^1.8.2" diff --git a/requirements.txt b/requirements.txt index 3cc9a88..02439d6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ certifi==2024.12.14 ; python_version >= "3.9" and python_version < "4.0" charset-normalizer==3.4.0 ; python_version >= "3.9" and python_version < "4.0" click==8.1.7 ; python_version >= "3.9" and python_version < "4.0" colorama==0.4.6 ; python_version >= "3.9" and python_version < "4.0" and platform_system == "Windows" -django==3.2.25 ; python_version >= "3.9" and python_version < "4.0" +django==4.2.17 ; python_version >= "3.9" and python_version < "4.0" docker==7.1.0 ; python_version >= "3.9" and python_version < "4.0" exceptiongroup==1.2.2 ; python_version >= "3.9" and python_version < "3.11" fastapi==0.68.2 ; python_version >= "3.9" and python_version < "4.0" @@ -20,7 +20,6 @@ markupsafe==3.0.2 ; python_version >= "3.9" and python_version < "4.0" packaging==24.2 ; python_version >= "3.9" and python_version < "4.0" pydantic==1.10.19 ; python_version >= "3.9" and python_version < "4.0" python-dotenv==1.0.1 ; python_version >= "3.9" and python_version < "4.0" -pytz==2024.2 ; python_version >= "3.9" and python_version < "4.0" pywin32==306 ; python_version >= "3.9" and python_version < "4.0" and sys_platform == "win32" requests==2.32.3 ; python_version >= "3.9" and python_version < "4.0" rfc3986[idna2008]==1.5.0 ; python_version >= "3.9" and python_version < "4.0" @@ -28,5 +27,6 @@ sniffio==1.3.1 ; python_version >= "3.9" and python_version < "4.0" sqlparse==0.5.3 ; python_version >= "3.9" and python_version < "4.0" starlette==0.14.2 ; python_version >= "3.9" and python_version < "4.0" typing-extensions==4.12.2 ; python_version >= "3.9" and python_version < "4.0" +tzdata==2024.2 ; python_version >= "3.9" and python_version < "4.0" and sys_platform == "win32" urllib3==2.2.3 ; python_version >= "3.9" and python_version < "4.0" uvicorn==0.15.0 ; python_version >= "3.9" and python_version < "4.0"