open-api-framework 0.9.3__tar.gz → 0.9.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/CHANGELOG.rst +8 -0
  2. {open_api_framework-0.9.3/open_api_framework.egg-info → open_api_framework-0.9.4}/PKG-INFO +4 -3
  3. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/README.rst +1 -1
  4. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/conf/base.py +5 -7
  5. {open_api_framework-0.9.3 → open_api_framework-0.9.4/open_api_framework.egg-info}/PKG-INFO +4 -3
  6. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/pyproject.toml +2 -2
  7. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/tests/test_generate_envvar_docs.py +1 -1
  8. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/LICENSE +0 -0
  9. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/MANIFEST.in +0 -0
  10. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/__init__.py +0 -0
  11. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/admin.py +0 -0
  12. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/apps.py +0 -0
  13. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/conf/__init__.py +0 -0
  14. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/conf/utils.py +0 -0
  15. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/context_processors.py +0 -0
  16. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/management/__init__.py +0 -0
  17. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/management/commands/__init__.py +0 -0
  18. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/management/commands/generate_envvar_docs.py +0 -0
  19. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/py.typed +0 -0
  20. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/static/open_api_framework/css/admin.css +0 -0
  21. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/templates/open_api_framework/admin/base_site.html +0 -0
  22. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/templates/open_api_framework/components/environment.html +0 -0
  23. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/templates/open_api_framework/components/version.html +0 -0
  24. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/templates/open_api_framework/env_config.rst +0 -0
  25. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/templatetags/__init__.py +0 -0
  26. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/templatetags/doc_tags.py +0 -0
  27. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/templatetags/open_api_framework.py +0 -0
  28. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework/utils.py +0 -0
  29. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework.egg-info/SOURCES.txt +0 -0
  30. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework.egg-info/dependency_links.txt +0 -0
  31. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework.egg-info/requires.txt +0 -0
  32. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/open_api_framework.egg-info/top_level.txt +0 -0
  33. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/setup.cfg +0 -0
  34. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/tests/test_admin.py +0 -0
  35. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/tests/test_config_helpers.py +0 -0
  36. {open_api_framework-0.9.3 → open_api_framework-0.9.4}/tests/test_settings.py +0 -0
@@ -1,6 +1,14 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 0.9.4 (2024-03-20)
5
+ ------------------
6
+
7
+ **Maintenance**
8
+
9
+ * [#59] Remove ``django.contrib.sites`` dependency and add ``SITE_DOMAIN`` environment variable
10
+
11
+
4
12
  0.9.3 (2025-02-24)
5
13
  ------------------
6
14
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: open_api_framework
3
- Version: 0.9.3
3
+ Version: 0.9.4
4
4
  Summary: A metapackage for registration components, that bundles the dependencies shared between these components and provides generic settings
5
5
  Author-email: Maykin Media <support@maykinmedia.nl>
6
6
  License: Copyright © Maykin 2024
@@ -76,11 +76,12 @@ Requires-Dist: sphinx-rtd-theme; extra == "docs"
76
76
  Provides-Extra: release
77
77
  Requires-Dist: bump-my-version; extra == "release"
78
78
  Requires-Dist: twine; extra == "release"
79
+ Dynamic: license-file
79
80
 
80
81
  Open API Framework
81
82
  ==================
82
83
 
83
- :Version: 0.9.3
84
+ :Version: 0.9.4
84
85
  :Source: https://github.com/maykinmedia/open-api-framework
85
86
  :Keywords: metapackage, dependencies
86
87
 
@@ -1,7 +1,7 @@
1
1
  Open API Framework
2
2
  ==================
3
3
 
4
- :Version: 0.9.3
4
+ :Version: 0.9.4
5
5
  :Source: https://github.com/maykinmedia/open-api-framework
6
6
  :Keywords: metapackage, dependencies
7
7
 
@@ -29,11 +29,6 @@ BASE_DIR = Path(DJANGO_PROJECT_DIR).resolve().parents[1]
29
29
  #
30
30
  # Core Django settings
31
31
  #
32
- SITE_ID = config(
33
- "SITE_ID",
34
- default=1,
35
- help_text="The database ID of the site object. You usually won't have to touch this.",
36
- )
37
32
 
38
33
  # SECURITY WARNING: keep the secret key used in production secret!
39
34
  SECRET_KEY = config(
@@ -193,8 +188,6 @@ INSTALLED_APPS = [
193
188
  "django.contrib.contenttypes",
194
189
  "django.contrib.auth",
195
190
  "django.contrib.sessions",
196
- # Note: If enabled, at least one Site object is required
197
- "django.contrib.sites",
198
191
  "django.contrib.messages",
199
192
  "django.contrib.staticfiles",
200
193
  # Optional applications.
@@ -804,6 +797,11 @@ NOTIFICATIONS_DISABLED = config(
804
797
  ),
805
798
  auto_display_default=False,
806
799
  )
800
+ SITE_DOMAIN = config(
801
+ "SITE_DOMAIN",
802
+ default="example.com",
803
+ help_text=("Defines the primary domain where the application is hosted."),
804
+ )
807
805
 
808
806
  #
809
807
  # SENTRY - error monitoring
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: open_api_framework
3
- Version: 0.9.3
3
+ Version: 0.9.4
4
4
  Summary: A metapackage for registration components, that bundles the dependencies shared between these components and provides generic settings
5
5
  Author-email: Maykin Media <support@maykinmedia.nl>
6
6
  License: Copyright © Maykin 2024
@@ -76,11 +76,12 @@ Requires-Dist: sphinx-rtd-theme; extra == "docs"
76
76
  Provides-Extra: release
77
77
  Requires-Dist: bump-my-version; extra == "release"
78
78
  Requires-Dist: twine; extra == "release"
79
+ Dynamic: license-file
79
80
 
80
81
  Open API Framework
81
82
  ==================
82
83
 
83
- :Version: 0.9.3
84
+ :Version: 0.9.4
84
85
  :Source: https://github.com/maykinmedia/open-api-framework
85
86
  :Keywords: metapackage, dependencies
86
87
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "open_api_framework"
7
- version = "0.9.3"
7
+ version = "0.9.4"
8
8
  description = "A metapackage for registration components, that bundles the dependencies shared between these components and provides generic settings"
9
9
  authors = [
10
10
  {name = "Maykin Media", email = "support@maykinmedia.nl"}
@@ -108,7 +108,7 @@ env = [
108
108
  ]
109
109
 
110
110
  [tool.bumpversion]
111
- current_version = "0.9.3"
111
+ current_version = "0.9.4"
112
112
  files = [
113
113
  {filename = "pyproject.toml"},
114
114
  {filename = "README.rst"},
@@ -74,7 +74,6 @@ Content Security Policy
74
74
  Optional
75
75
  --------
76
76
 
77
- * ``SITE_ID``: The database ID of the site object. You usually won't have to touch this. Defaults to: ``1``.
78
77
  * ``DEBUG``: Only set this to ``True`` on a local development environment. Various other security settings are derived from this setting!. Defaults to: ``False``.
79
78
  * ``USE_X_FORWARDED_HOST``: whether to grab the domain/host from the X-Forwarded-Host header or not. This header is typically set by reverse proxies (such as nginx, traefik, Apache...). Note: this is a header that can be spoofed and you need to ensure you control it before enabling this. Defaults to: ``False``.
80
79
  * ``IS_HTTPS``: Used to construct absolute URLs and controls a variety of security settings. Defaults to the inverse of ``DEBUG``.
@@ -97,6 +96,7 @@ Optional
97
96
  * ``NUM_PROXIES``: the number of reverse proxies in front of the application, as an integer. This is used to determine the actual client IP adres. On Kubernetes with an ingress you typically want to set this to 2. Defaults to: ``1``.
98
97
  * ``CSRF_TRUSTED_ORIGINS``: A list of trusted origins for unsafe requests (e.g. POST). Defaults to: ``[]``.
99
98
  * ``NOTIFICATIONS_DISABLED``: indicates whether or not notifications should be sent to the Notificaties API for operations on the API endpoints. Defaults to ``True`` for the ``dev`` environment, otherwise defaults to ``False``.
99
+ * ``SITE_DOMAIN``: Defines the primary domain where the application is hosted. Defaults to: ``example.com``.
100
100
  * ``SENTRY_DSN``: URL of the sentry project to send error reports to. Default empty, i.e. -> no monitoring set up. Highly recommended to configure this.
101
101
  * ``DISABLE_2FA``: Whether or not two factor authentication should be disabled. Defaults to: ``False``.
102
102
  * ``LOG_OUTGOING_REQUESTS_EMIT_BODY``: Whether or not outgoing request bodies should be logged. Defaults to: ``True``.