open-api-framework 0.10.0__tar.gz → 0.10.1__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.
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/CHANGELOG.rst +15 -0
- {open_api_framework-0.10.0/open_api_framework.egg-info → open_api_framework-0.10.1}/PKG-INFO +7 -8
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/README.rst +5 -4
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/admin.py +0 -2
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/conf/base.py +5 -2
- {open_api_framework-0.10.0 → open_api_framework-0.10.1/open_api_framework.egg-info}/PKG-INFO +7 -8
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework.egg-info/SOURCES.txt +0 -1
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework.egg-info/requires.txt +1 -3
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/pyproject.toml +3 -12
- open_api_framework-0.10.1/setup.cfg +4 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/tests/test_admin.py +0 -3
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/tests/test_generate_envvar_docs.py +1 -1
- open_api_framework-0.10.0/setup.cfg +0 -8
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/LICENSE +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/MANIFEST.in +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/__init__.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/apps.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/conf/__init__.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/conf/utils.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/context_processors.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/management/__init__.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/management/commands/__init__.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/management/commands/generate_envvar_docs.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/py.typed +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/static/open_api_framework/css/admin.css +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/templates/open_api_framework/admin/base_site.html +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/templates/open_api_framework/components/environment.html +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/templates/open_api_framework/components/version.html +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/templates/open_api_framework/env_config.rst +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/templatetags/__init__.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/templatetags/doc_tags.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/templatetags/open_api_framework.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/utils.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework.egg-info/dependency_links.txt +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework.egg-info/top_level.txt +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/tests/test_config_helpers.py +0 -0
- {open_api_framework-0.10.0 → open_api_framework-0.10.1}/tests/test_settings.py +0 -0
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
0.10.1 (2025-05-26)
|
|
5
|
+
-------------------
|
|
6
|
+
|
|
7
|
+
**Bugfixes**
|
|
8
|
+
|
|
9
|
+
* Do not use ``save_outgoing_requests`` log handler if ``LOG_REQUESTS`` is set to false
|
|
10
|
+
|
|
11
|
+
**Maintenance**
|
|
12
|
+
|
|
13
|
+
* [#132] Replace ``check_sphinx.py`` with ``make``
|
|
14
|
+
* [#133] Replace ``black``, ``isort`` and ``flake8`` with ``ruff`` and update code-quality workflow
|
|
15
|
+
* [#140] Upgrade python to 3.12
|
|
16
|
+
* Upgrade codecov action to v4
|
|
17
|
+
|
|
18
|
+
|
|
4
19
|
0.10.0 (2025-05-19)
|
|
5
20
|
-------------------
|
|
6
21
|
|
{open_api_framework-0.10.0/open_api_framework.egg-info → open_api_framework-0.10.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: open-api-framework
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.1
|
|
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
|
|
@@ -65,9 +65,7 @@ Requires-Dist: pytest; extra == "tests"
|
|
|
65
65
|
Requires-Dist: pytest-django; extra == "tests"
|
|
66
66
|
Requires-Dist: pytest-env; extra == "tests"
|
|
67
67
|
Requires-Dist: tox; extra == "tests"
|
|
68
|
-
Requires-Dist:
|
|
69
|
-
Requires-Dist: black; extra == "tests"
|
|
70
|
-
Requires-Dist: flake8; extra == "tests"
|
|
68
|
+
Requires-Dist: ruff; extra == "tests"
|
|
71
69
|
Requires-Dist: factory-boy; extra == "tests"
|
|
72
70
|
Requires-Dist: django-rosetta; extra == "tests"
|
|
73
71
|
Requires-Dist: django-webtest; extra == "tests"
|
|
@@ -84,11 +82,11 @@ Dynamic: license-file
|
|
|
84
82
|
Open API Framework
|
|
85
83
|
==================
|
|
86
84
|
|
|
87
|
-
:Version: 0.10.
|
|
85
|
+
:Version: 0.10.1
|
|
88
86
|
:Source: https://github.com/maykinmedia/open-api-framework
|
|
89
87
|
:Keywords: metapackage, dependencies
|
|
90
88
|
|
|
91
|
-
|build-status| |code-quality| |
|
|
89
|
+
|build-status| |code-quality| |ruff| |coverage| |docs|
|
|
92
90
|
|
|
93
91
|
|python-versions| |django-versions| |pypi-version|
|
|
94
92
|
|
|
@@ -129,8 +127,9 @@ Licensed under the `MIT license`.
|
|
|
129
127
|
:alt: Code quality checks
|
|
130
128
|
:target: https://github.com/maykinmedia/open-api-framework/actions?query=workflow%3A%22Code+quality+checks%22
|
|
131
129
|
|
|
132
|
-
.. |
|
|
133
|
-
:target: https://github.com/
|
|
130
|
+
.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
|
|
131
|
+
:target: https://github.com/astral-sh/ruff
|
|
132
|
+
:alt: Ruff
|
|
134
133
|
|
|
135
134
|
.. |coverage| image:: https://codecov.io/gh/maykinmedia/open-api-framework/branch/main/graph/badge.svg
|
|
136
135
|
:target: https://codecov.io/gh/maykinmedia/open-api-framework
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Open API Framework
|
|
2
2
|
==================
|
|
3
3
|
|
|
4
|
-
:Version: 0.10.
|
|
4
|
+
:Version: 0.10.1
|
|
5
5
|
:Source: https://github.com/maykinmedia/open-api-framework
|
|
6
6
|
:Keywords: metapackage, dependencies
|
|
7
7
|
|
|
8
|
-
|build-status| |code-quality| |
|
|
8
|
+
|build-status| |code-quality| |ruff| |coverage| |docs|
|
|
9
9
|
|
|
10
10
|
|python-versions| |django-versions| |pypi-version|
|
|
11
11
|
|
|
@@ -46,8 +46,9 @@ Licensed under the `MIT license`.
|
|
|
46
46
|
:alt: Code quality checks
|
|
47
47
|
:target: https://github.com/maykinmedia/open-api-framework/actions?query=workflow%3A%22Code+quality+checks%22
|
|
48
48
|
|
|
49
|
-
.. |
|
|
50
|
-
:target: https://github.com/
|
|
49
|
+
.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
|
|
50
|
+
:target: https://github.com/astral-sh/ruff
|
|
51
|
+
:alt: Ruff
|
|
51
52
|
|
|
52
53
|
.. |coverage| image:: https://codecov.io/gh/maykinmedia/open-api-framework/branch/main/graph/badge.svg
|
|
53
54
|
:target: https://codecov.io/gh/maykinmedia/open-api-framework
|
|
@@ -11,7 +11,6 @@ class SessionProfileAdmin(admin.ModelAdmin):
|
|
|
11
11
|
|
|
12
12
|
@property
|
|
13
13
|
def SessionStore(self):
|
|
14
|
-
|
|
15
14
|
return get_session_store()
|
|
16
15
|
|
|
17
16
|
def get_queryset(self, request):
|
|
@@ -33,7 +32,6 @@ class SessionProfileAdmin(admin.ModelAdmin):
|
|
|
33
32
|
super().delete_model(request, obj)
|
|
34
33
|
|
|
35
34
|
def delete_queryset(self, request, queryset):
|
|
36
|
-
|
|
37
35
|
for session_profile in queryset.iterator():
|
|
38
36
|
self.SessionStore(session_profile.session_key).flush()
|
|
39
37
|
|
|
@@ -374,7 +374,10 @@ LOG_QUERIES = config(
|
|
|
374
374
|
LOG_REQUESTS = config(
|
|
375
375
|
"LOG_REQUESTS",
|
|
376
376
|
default=False,
|
|
377
|
-
help_text=
|
|
377
|
+
help_text=(
|
|
378
|
+
"enable logging of the outgoing requests. "
|
|
379
|
+
"This must be enabled along with `LOG_OUTGOING_REQUESTS_DB_SAVE` to save outgoing request logs in the database."
|
|
380
|
+
),
|
|
378
381
|
group="Logging",
|
|
379
382
|
)
|
|
380
383
|
if LOG_QUERIES and not DEBUG:
|
|
@@ -529,7 +532,7 @@ LOGGING = {
|
|
|
529
532
|
"handlers": (
|
|
530
533
|
["log_outgoing_requests", "save_outgoing_requests"]
|
|
531
534
|
if LOG_REQUESTS
|
|
532
|
-
else [
|
|
535
|
+
else []
|
|
533
536
|
),
|
|
534
537
|
"level": "DEBUG",
|
|
535
538
|
"propagate": True,
|
{open_api_framework-0.10.0 → open_api_framework-0.10.1/open_api_framework.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: open-api-framework
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.1
|
|
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
|
|
@@ -65,9 +65,7 @@ Requires-Dist: pytest; extra == "tests"
|
|
|
65
65
|
Requires-Dist: pytest-django; extra == "tests"
|
|
66
66
|
Requires-Dist: pytest-env; extra == "tests"
|
|
67
67
|
Requires-Dist: tox; extra == "tests"
|
|
68
|
-
Requires-Dist:
|
|
69
|
-
Requires-Dist: black; extra == "tests"
|
|
70
|
-
Requires-Dist: flake8; extra == "tests"
|
|
68
|
+
Requires-Dist: ruff; extra == "tests"
|
|
71
69
|
Requires-Dist: factory-boy; extra == "tests"
|
|
72
70
|
Requires-Dist: django-rosetta; extra == "tests"
|
|
73
71
|
Requires-Dist: django-webtest; extra == "tests"
|
|
@@ -84,11 +82,11 @@ Dynamic: license-file
|
|
|
84
82
|
Open API Framework
|
|
85
83
|
==================
|
|
86
84
|
|
|
87
|
-
:Version: 0.10.
|
|
85
|
+
:Version: 0.10.1
|
|
88
86
|
:Source: https://github.com/maykinmedia/open-api-framework
|
|
89
87
|
:Keywords: metapackage, dependencies
|
|
90
88
|
|
|
91
|
-
|build-status| |code-quality| |
|
|
89
|
+
|build-status| |code-quality| |ruff| |coverage| |docs|
|
|
92
90
|
|
|
93
91
|
|python-versions| |django-versions| |pypi-version|
|
|
94
92
|
|
|
@@ -129,8 +127,9 @@ Licensed under the `MIT license`.
|
|
|
129
127
|
:alt: Code quality checks
|
|
130
128
|
:target: https://github.com/maykinmedia/open-api-framework/actions?query=workflow%3A%22Code+quality+checks%22
|
|
131
129
|
|
|
132
|
-
.. |
|
|
133
|
-
:target: https://github.com/
|
|
130
|
+
.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
|
|
131
|
+
:target: https://github.com/astral-sh/ruff
|
|
132
|
+
:alt: Ruff
|
|
134
133
|
|
|
135
134
|
.. |coverage| image:: https://codecov.io/gh/maykinmedia/open-api-framework/branch/main/graph/badge.svg
|
|
136
135
|
:target: https://codecov.io/gh/maykinmedia/open-api-framework
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "open-api-framework"
|
|
7
|
-
version = "0.10.
|
|
7
|
+
version = "0.10.1"
|
|
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"}
|
|
@@ -71,9 +71,7 @@ tests = [
|
|
|
71
71
|
"pytest-django",
|
|
72
72
|
"pytest-env",
|
|
73
73
|
"tox",
|
|
74
|
-
"
|
|
75
|
-
"black",
|
|
76
|
-
"flake8",
|
|
74
|
+
"ruff",
|
|
77
75
|
"factory-boy",
|
|
78
76
|
"django-rosetta",
|
|
79
77
|
"django-webtest"
|
|
@@ -94,13 +92,6 @@ release = [
|
|
|
94
92
|
include = ["open_api_framework*"]
|
|
95
93
|
namespaces = false
|
|
96
94
|
|
|
97
|
-
[tool.isort]
|
|
98
|
-
profile = "black"
|
|
99
|
-
combine_as_imports = true
|
|
100
|
-
known_django = "django"
|
|
101
|
-
known_first_party="open_api_framework"
|
|
102
|
-
sections=["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
|
|
103
|
-
|
|
104
95
|
[tool.pytest.ini_options]
|
|
105
96
|
testpaths = ["tests"]
|
|
106
97
|
pythonpath = "."
|
|
@@ -111,7 +102,7 @@ env = [
|
|
|
111
102
|
]
|
|
112
103
|
|
|
113
104
|
[tool.bumpversion]
|
|
114
|
-
current_version = "0.10.
|
|
105
|
+
current_version = "0.10.1"
|
|
115
106
|
files = [
|
|
116
107
|
{filename = "pyproject.toml"},
|
|
117
108
|
{filename = "README.rst"},
|
|
@@ -18,7 +18,6 @@ def session_changelist_url():
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
def test_session_profile_sanity(client, admin_user, session_changelist_url):
|
|
21
|
-
|
|
22
21
|
client.force_login(admin_user)
|
|
23
22
|
response = client.get(session_changelist_url)
|
|
24
23
|
assert response.status_code == 200
|
|
@@ -32,7 +31,6 @@ def test_session_profile_sanity(client, admin_user, session_changelist_url):
|
|
|
32
31
|
def test_only_session_profile_of_user_shown(
|
|
33
32
|
client, admin_user, django_user_model, session_changelist_url
|
|
34
33
|
):
|
|
35
|
-
|
|
36
34
|
other_admin = django_user_model.objects.create_superuser("garry")
|
|
37
35
|
|
|
38
36
|
client.force_login(other_admin)
|
|
@@ -168,7 +166,6 @@ def test_delete_action_with_session_db_backend(
|
|
|
168
166
|
def test_delete_action_with_session_cache_backend(
|
|
169
167
|
client, admin_user, session_changelist_url
|
|
170
168
|
):
|
|
171
|
-
|
|
172
169
|
client.force_login(admin_user)
|
|
173
170
|
sessions = SessionProfileFactory.create_batch(5, user=admin_user)
|
|
174
171
|
|
|
@@ -41,7 +41,7 @@ Logging
|
|
|
41
41
|
* ``LOG_STDOUT``: whether to log to stdout or not. Defaults to: ``True``.
|
|
42
42
|
* ``LOG_LEVEL``: control the verbosity of logging output. Available values are ``CRITICAL``, ``ERROR``, ``WARNING``, ``INFO`` and ``DEBUG``. Defaults to: ``WARNING``.
|
|
43
43
|
* ``LOG_QUERIES``: enable (query) logging at the database backend level. Note that you must also set ``DEBUG=1``, which should be done very sparingly!. Defaults to: ``False``.
|
|
44
|
-
* ``LOG_REQUESTS``: enable logging of the outgoing requests. Defaults to: ``False``.
|
|
44
|
+
* ``LOG_REQUESTS``: enable logging of the outgoing requests. This must be enabled along with `LOG_OUTGOING_REQUESTS_DB_SAVE` to save outgoing request logs in the database. Defaults to: ``False``.
|
|
45
45
|
* ``LOG_OUTGOING_REQUESTS_EMIT_BODY``: Whether or not outgoing request bodies should be logged. Defaults to: ``True``.
|
|
46
46
|
* ``LOG_OUTGOING_REQUESTS_DB_SAVE``: Whether or not outgoing request logs should be saved to the database. Defaults to: ``False``.
|
|
47
47
|
* ``LOG_OUTGOING_REQUESTS_DB_SAVE_BODY``: Whether or not outgoing request bodies should be saved to the database. Defaults to: ``True``.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/context_processors.py
RENAMED
|
File without changes
|
{open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/management/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/templatetags/__init__.py
RENAMED
|
File without changes
|
{open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework/templatetags/doc_tags.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{open_api_framework-0.10.0 → open_api_framework-0.10.1}/open_api_framework.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|