From 68cf9af60c9f8966d2b174761babcfbdcfa27847 Mon Sep 17 00:00:00 2001 From: Allan Stockman Rugano Date: Mon, 14 Oct 2024 23:52:32 +0200 Subject: [PATCH] Setuptools readed --- pdm.lock | 2 +- pyproject.toml | 3 ++- src/hope_country_report/apps/core/management/commands/env.py | 2 ++ src/hope_country_report/apps/hope/models/_inspect.py | 1 + src/hope_country_report/config/__init__.py | 1 + src/hope_country_report/web/views/charts.py | 2 +- 6 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pdm.lock b/pdm.lock index 210bfee2..9366a37d 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "dev"] strategy = ["cross_platform"] lock_version = "4.5.0" -content_hash = "sha256:6592691b0063680f9beae5b30149155b1db2fefdc9b0d8db3547eea95b5e1250" +content_hash = "sha256:4013ec072015220ee4e911729c5da5dca95f462cff24a10b6dd2060ebde3b2fb" [[metadata.targets]] requires_python = ">=3.12" diff --git a/pyproject.toml b/pyproject.toml index c9c2e552..b9b39a19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,7 +87,8 @@ dependencies = [ "django-stubs-ext", "uwsgi", "django-smart-env", - "django-webtest" + "django-webtest", + "setuptools>=75.1.0", ] [tool.pdm.dev-dependencies] diff --git a/src/hope_country_report/apps/core/management/commands/env.py b/src/hope_country_report/apps/core/management/commands/env.py index 36c6d3a4..bf664332 100644 --- a/src/hope_country_report/apps/core/management/commands/env.py +++ b/src/hope_country_report/apps/core/management/commands/env.py @@ -1,5 +1,7 @@ from typing import Any, Dict + from django.core.management import BaseCommand, CommandError, CommandParser + from hope_country_report.config import env diff --git a/src/hope_country_report/apps/hope/models/_inspect.py b/src/hope_country_report/apps/hope/models/_inspect.py index 166f6060..ff2b8ace 100644 --- a/src/hope_country_report/apps/hope/models/_inspect.py +++ b/src/hope_country_report/apps/hope/models/_inspect.py @@ -7,6 +7,7 @@ # DO NOT rename the models, AND don't rename db_table values or field names. import django.contrib.postgres.fields from django.contrib.gis.db import models + from hope_country_report.apps.hope.models._base import HopeModel from hope_country_report.apps.power_query.storage import HopeStorage diff --git a/src/hope_country_report/config/__init__.py b/src/hope_country_report/config/__init__.py index 61b20ece..0c53e0fc 100644 --- a/src/hope_country_report/config/__init__.py +++ b/src/hope_country_report/config/__init__.py @@ -1,4 +1,5 @@ from enum import Enum + from smart_env import SmartEnv DJANGO_HELP_BASE = "https://docs.djangoproject.com/en/5.0/ref/settings" diff --git a/src/hope_country_report/web/views/charts.py b/src/hope_country_report/web/views/charts.py index fb7a40cc..3f536158 100644 --- a/src/hope_country_report/web/views/charts.py +++ b/src/hope_country_report/web/views/charts.py @@ -1,8 +1,8 @@ from typing import Any, Callable from django.contrib.auth.mixins import PermissionRequiredMixin -from django.http import HttpResponseBase from django.db.models.query import QuerySet +from django.http import HttpResponseBase from django.views.generic import DetailView, ListView from hope_country_report.apps.power_query.utils import to_dataset