From 7b18e249be16ea6d1938dee49eea1a893874d547 Mon Sep 17 00:00:00 2001 From: ARYAN-NIKNEZHAD Date: Sun, 25 Aug 2024 09:49:15 +0430 Subject: [PATCH] :wrench: chore: Update pyproject.toml config --- packages/requirements-dev.txt | 7 ++++--- packages/requirements.txt | 3 ++- poetry.lock | 38 ++++++++++++++++++++++++++--------- pyproject.toml | 7 +++++-- 4 files changed, 40 insertions(+), 15 deletions(-) diff --git a/packages/requirements-dev.txt b/packages/requirements-dev.txt index 63daac8..8d12a8b 100644 --- a/packages/requirements-dev.txt +++ b/packages/requirements-dev.txt @@ -23,15 +23,16 @@ dill==0.3.8 ; python_version >= "3.8" and python_version < "4.0" distlib==0.3.8 ; python_version >= "3.8" and python_version < "4.0" django-stubs-ext==5.0.4 ; python_version >= "3.8" and python_version < "4.0" django-stubs==5.0.4 ; python_version >= "3.8" and python_version < "4.0" -django==4.2.15 ; python_version >= "3.8" and python_version < "4.0" +django==4.2.15 ; python_version >= "3.8" and python_version < "3.10" +django==5.1 ; python_version >= "3.10" and python_version < "4.0" docformatter==1.7.5 ; python_version >= "3.8" and python_version < "4.0" docutils==0.19 ; python_version >= "3.8" and python_version < "4.0" exceptiongroup==1.2.2 ; python_version >= "3.8" and python_version < "3.11" filelock==3.15.4 ; python_version >= "3.8" and python_version < "4.0" identify==2.6.0 ; python_version >= "3.8" and python_version < "4.0" -idna==3.7 ; python_version >= "3.8" and python_version < "4.0" +idna==3.8 ; python_version >= "3.8" and python_version < "4.0" imagesize==1.4.1 ; python_version >= "3.8" and python_version < "4.0" -importlib-metadata==8.3.0 ; python_version >= "3.8" and python_version < "3.10" +importlib-metadata==8.4.0 ; python_version >= "3.8" and python_version < "3.10" iniconfig==2.0.0 ; python_version >= "3.8" and python_version < "4.0" isort==5.13.2 ; python_version >= "3.8" and python_version < "4.0" jinja2==3.1.4 ; python_version >= "3.8" and python_version < "4.0" diff --git a/packages/requirements.txt b/packages/requirements.txt index 8b9d8bb..87d6ba8 100644 --- a/packages/requirements.txt +++ b/packages/requirements.txt @@ -2,7 +2,8 @@ asgiref==3.8.1 ; python_version >= "3.8" and python_version < "4.0" backports-zoneinfo==0.2.1 ; python_version >= "3.8" and python_version < "3.9" cffi==1.17.0 ; python_version >= "3.8" and python_version < "4.0" and platform_python_implementation != "PyPy" cryptography==43.0.0 ; python_version >= "3.8" and python_version < "4.0" -django==4.2.15 ; python_version >= "3.8" and python_version < "4.0" +django==4.2.15 ; python_version >= "3.8" and python_version < "3.10" +django==5.1 ; python_version >= "3.10" and python_version < "4.0" mimesis==11.1.0 ; python_version >= "3.8" and python_version < "4.0" pillow==10.4.0 ; python_version >= "3.8" and python_version < "4.0" pycparser==2.22 ; python_version >= "3.8" and python_version < "4.0" and platform_python_implementation != "PyPy" diff --git a/poetry.lock b/poetry.lock index 407cc84..74d96e6 100644 --- a/poetry.lock +++ b/poetry.lock @@ -627,6 +627,26 @@ tzdata = {version = "*", markers = "sys_platform == \"win32\""} argon2 = ["argon2-cffi (>=19.1.0)"] bcrypt = ["bcrypt"] +[[package]] +name = "django" +version = "5.1" +description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design." +optional = false +python-versions = ">=3.10" +files = [ + {file = "Django-5.1-py3-none-any.whl", hash = "sha256:d3b811bf5371a26def053d7ee42a9df1267ef7622323fe70a601936725aa4557"}, + {file = "Django-5.1.tar.gz", hash = "sha256:848a5980e8efb76eea70872fb0e4bc5e371619c70fffbe48e3e1b50b2c09455d"}, +] + +[package.dependencies] +asgiref = ">=3.8.1,<4" +sqlparse = ">=0.3.1" +tzdata = {version = "*", markers = "sys_platform == \"win32\""} + +[package.extras] +argon2 = ["argon2-cffi (>=19.1.0)"] +bcrypt = ["bcrypt"] + [[package]] name = "django-stubs" version = "5.0.4" @@ -741,13 +761,13 @@ license = ["ukkonen"] [[package]] name = "idna" -version = "3.7" +version = "3.8" description = "Internationalized Domain Names in Applications (IDNA)" optional = false -python-versions = ">=3.5" +python-versions = ">=3.6" files = [ - {file = "idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0"}, - {file = "idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"}, + {file = "idna-3.8-py3-none-any.whl", hash = "sha256:050b4e5baadcd44d760cedbd2b8e639f2ff89bbc7a5730fcc662954303377aac"}, + {file = "idna-3.8.tar.gz", hash = "sha256:d838c2c0ed6fced7693d5e8ab8e734d5f8fda53a039c0164afb0b82e771e3603"}, ] [[package]] @@ -763,13 +783,13 @@ files = [ [[package]] name = "importlib-metadata" -version = "8.3.0" +version = "8.4.0" description = "Read metadata from Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "importlib_metadata-8.3.0-py3-none-any.whl", hash = "sha256:42817a4a0be5845d22c6e212db66a94ad261e2318d80b3e0d363894a79df2b67"}, - {file = "importlib_metadata-8.3.0.tar.gz", hash = "sha256:9c8fa6e8ea0f9516ad5c8db9246a731c948193c7754d3babb0114a05b27dd364"}, + {file = "importlib_metadata-8.4.0-py3-none-any.whl", hash = "sha256:66f342cc6ac9818fc6ff340576acd24d65ba0b3efabb2b4ac08b598965a4a2f1"}, + {file = "importlib_metadata-8.4.0.tar.gz", hash = "sha256:9a547d3bc3608b025f93d403fdd1aae741c24fbb8314df4b155675742ce303c5"}, ] [package.dependencies] @@ -1752,5 +1772,5 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", [metadata] lock-version = "2.0" -python-versions = "^3.8" -content-hash = "ba0883024e168e3b48f7d166d730dc1b5d51ddd2bfcbaa981e3acd94dcba08fc" +python-versions = ">=3.8,<4.0" +content-hash = "406d24149d6725c1fc2011180ae71898e5bb51e4bd9fca326e9ef46c5a00f2bb" diff --git a/pyproject.toml b/pyproject.toml index 27d84d0..b5de2df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,8 +11,11 @@ packages = [ ] [tool.poetry.dependencies] -python = "^3.8" -django = "^4.2" +python = ">=3.8,<4.0" +django = [ + { version = ">=4.2,<5.0", python = ">=3.8,<3.10"}, + { version = ">=4.2,<5.3", python = ">=3.10" } # Django 4.2 and 5.x for Python 3.10+ +] mimesis = "^11.1.0" pillow = "^10.4.0" cryptography = "^43.0.0"