Skip to content

Commit

Permalink
Update django-settings-holder version
Browse files Browse the repository at this point in the history
  • Loading branch information
matti-lamppu committed Nov 23, 2022
1 parent 68614a5 commit 11f78fa
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 39 deletions.
61 changes: 34 additions & 27 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "django-signal-webhooks"
version = "0.2.0"
version = "0.2.1"
description = "Add webhooks to django using signals."
authors = [
"Matti Lamppu <[email protected]>",
Expand Down Expand Up @@ -52,7 +52,7 @@ Django = ">=3.1"
asgiref = ">=3.5.0"
httpx = ">=0.23.0"
cryptography = ">=36.0.0"
django-settings-holder = ">=0.0.4"
django-settings-holder = ">=0.1.0"

[tool.poetry.group.test.dependencies]
pytest = "7.2.0"
Expand Down Expand Up @@ -171,10 +171,11 @@ deps =
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
asgiref
httpx
cryptography
django-settings-holder
asgiref>=3.5.0
httpx>=0.23.0
cryptography>=36.0.0
django-settings-holder>=0.1.0
pytest
pytest-django
pytest-freezegun
Expand Down
5 changes: 1 addition & 4 deletions signal_webhooks/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django.conf import settings
from django.test.signals import setting_changed
from settings_holder import SettingsHolder, reload_settings

Expand Down Expand Up @@ -74,8 +73,6 @@ class DefaultSettings(NamedTuple):

SETTING_NAME: str = "SIGNAL_WEBHOOKS"

USER_SETTINGS: Optional[Dict[str, Any]] = getattr(settings, SETTING_NAME, None)

DEFAULTS = DefaultSettings()._asdict()

IMPORT_STRINGS: Set[Union[bytes, str]] = {
Expand Down Expand Up @@ -110,7 +107,7 @@ def perform_import(self, val: Any, setting: str) -> Any:


webhook_settings = WebhookSettingsHolder(
user_settings=USER_SETTINGS,
setting_name=SETTING_NAME,
defaults=DEFAULTS,
import_strings=IMPORT_STRINGS,
removed_settings=REMOVED_SETTINGS,
Expand Down
Loading

0 comments on commit 11f78fa

Please sign in to comment.