openbrokerapi 4.6.0__tar.gz → 4.7.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.
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/PKG-INFO +11 -8
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/README.rst +4 -2
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/api.py +3 -3
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/service_broker.py +2 -2
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/pyproject.toml +48 -39
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/LICENSE +0 -0
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/__init__.py +0 -0
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/auth.py +0 -0
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/catalog.py +0 -0
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/constants.py +0 -0
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/errors.py +0 -0
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/helper.py +0 -0
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/log_util.py +0 -0
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/request_filter.py +0 -0
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/response.py +0 -0
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/router.py +0 -0
- {openbrokerapi-4.6.0 → openbrokerapi-4.7.1}/openbrokerapi/settings.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: openbrokerapi
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.7.1
|
|
4
4
|
Summary: A python package for the V2 CF Service Broker API and Open Broker API (version 2.13+)
|
|
5
5
|
Home-page: https://openbrokerapi.readthedocs.io/
|
|
6
6
|
License: MIT
|
|
@@ -18,22 +18,23 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.9
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
22
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
23
|
Provides-Extra: docs
|
|
23
24
|
Provides-Extra: gevent
|
|
24
25
|
Provides-Extra: gunicorn
|
|
25
|
-
Requires-Dist: Flask (>=
|
|
26
|
-
Requires-Dist: Sphinx (>=6.1.3,<
|
|
27
|
-
Requires-Dist: gevent (>=22.10.2,<
|
|
28
|
-
Requires-Dist: gunicorn (>=20.1
|
|
29
|
-
Requires-Dist: sphinx-rtd-theme (>=1.2
|
|
26
|
+
Requires-Dist: Flask (>=3.0.3,<4.0.0)
|
|
27
|
+
Requires-Dist: Sphinx (>=6.1.3,<8.0.0) ; extra == "docs"
|
|
28
|
+
Requires-Dist: gevent (>=22.10.2,<25.0.0) ; extra == "gevent"
|
|
29
|
+
Requires-Dist: gunicorn (>=20.1,<23.0) ; extra == "gunicorn"
|
|
30
|
+
Requires-Dist: sphinx-rtd-theme (>=1.2,<3.0) ; extra == "docs"
|
|
30
31
|
Project-URL: Changelog, https://github.com/eruvanos/openbrokerapi/blob/main/CHANGELOG.rst
|
|
31
32
|
Project-URL: Documentation, https://openbrokerapi.readthedocs.io/
|
|
32
33
|
Project-URL: Issue Tracker, https://github.com/eruvanos/openbrokerapi/issues
|
|
33
34
|
Project-URL: Repository, https://github.com/eruvanos/openbrokerapi
|
|
34
35
|
Description-Content-Type: text/x-rst
|
|
35
36
|
|
|
36
|
-
|Build Status| |Coverage Status| |Known Vulnerabilities| |PYUP| |OpenSSF Best Practices|
|
|
37
|
+
|Build Status| |Coverage Status| |Known Vulnerabilities| |PYUP| |OpenSSF Best Practices| |Scorecard|
|
|
37
38
|
|
|
38
39
|
Open Broker API
|
|
39
40
|
===============
|
|
@@ -209,5 +210,7 @@ So let us check how you can contribute:
|
|
|
209
210
|
.. |PYUP| image:: https://pyup.io/repos/github/eruvanos/openbrokerapi/shield.svg
|
|
210
211
|
:target: https://pyup.io/repos/github/eruvanos/openbrokerapi/
|
|
211
212
|
.. |OpenSSF Best Practices| image:: https://bestpractices.coreinfrastructure.org/projects/7220/badge
|
|
212
|
-
:target: https://
|
|
213
|
+
:target: https://www.bestpractices.dev/projects/7220
|
|
214
|
+
.. |Scorecard| image:: https://api.scorecard.dev/projects/github.com/eruvanos/openbrokerapi/badge
|
|
215
|
+
:target: https://scorecard.dev/viewer/?uri=github.com/eruvanos/openbrokerapi
|
|
213
216
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|Build Status| |Coverage Status| |Known Vulnerabilities| |PYUP| |OpenSSF Best Practices|
|
|
1
|
+
|Build Status| |Coverage Status| |Known Vulnerabilities| |PYUP| |OpenSSF Best Practices| |Scorecard|
|
|
2
2
|
|
|
3
3
|
Open Broker API
|
|
4
4
|
===============
|
|
@@ -174,4 +174,6 @@ So let us check how you can contribute:
|
|
|
174
174
|
.. |PYUP| image:: https://pyup.io/repos/github/eruvanos/openbrokerapi/shield.svg
|
|
175
175
|
:target: https://pyup.io/repos/github/eruvanos/openbrokerapi/
|
|
176
176
|
.. |OpenSSF Best Practices| image:: https://bestpractices.coreinfrastructure.org/projects/7220/badge
|
|
177
|
-
:target: https://
|
|
177
|
+
:target: https://www.bestpractices.dev/projects/7220
|
|
178
|
+
.. |Scorecard| image:: https://api.scorecard.dev/projects/github.com/eruvanos/openbrokerapi/badge
|
|
179
|
+
:target: https://scorecard.dev/viewer/?uri=github.com/eruvanos/openbrokerapi
|
|
@@ -41,7 +41,7 @@ from openbrokerapi.service_broker import (
|
|
|
41
41
|
ServiceBroker,
|
|
42
42
|
OperationState,
|
|
43
43
|
)
|
|
44
|
-
|
|
44
|
+
import openbrokerapi.settings
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
def _check_plan_id(broker: ServiceBroker, plan_id) -> bool:
|
|
@@ -78,13 +78,13 @@ def get_blueprint(
|
|
|
78
78
|
logger.debug("Apply print_request filter for debugging")
|
|
79
79
|
openbroker.before_request(print_request)
|
|
80
80
|
|
|
81
|
-
if DISABLE_VERSION_CHECK:
|
|
81
|
+
if openbrokerapi.settings.DISABLE_VERSION_CHECK:
|
|
82
82
|
logger.warning(
|
|
83
83
|
"Minimum API version is not checked, this can cause illegal contracts between service broker and platform!",
|
|
84
84
|
stacklevel=0
|
|
85
85
|
)
|
|
86
86
|
else:
|
|
87
|
-
logger.debug("Apply check_version filter for version %s" % str(MIN_VERSION))
|
|
87
|
+
logger.debug("Apply check_version filter for version %s" % str(openbrokerapi.settings.MIN_VERSION))
|
|
88
88
|
openbroker.before_request(check_version)
|
|
89
89
|
|
|
90
90
|
# apply filter: global load X-Broker-API-Originating-Identity
|
|
@@ -6,7 +6,7 @@ from openbrokerapi.catalog import (
|
|
|
6
6
|
ServiceMetadata,
|
|
7
7
|
ServicePlan,
|
|
8
8
|
)
|
|
9
|
-
|
|
9
|
+
import openbrokerapi.settings
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class ProvisionDetails:
|
|
@@ -37,7 +37,7 @@ class ProvisionDetails:
|
|
|
37
37
|
raise TypeError("space_guid does not match with context.space_guid")
|
|
38
38
|
self.space_guid = context["space_guid"]
|
|
39
39
|
|
|
40
|
-
if DISABLE_SPACE_ORG_GUID_CHECK:
|
|
40
|
+
if openbrokerapi.settings.DISABLE_SPACE_ORG_GUID_CHECK:
|
|
41
41
|
pass
|
|
42
42
|
elif None in (self.organization_guid, self.space_guid):
|
|
43
43
|
raise TypeError("Organization and space guid are required.")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "openbrokerapi"
|
|
3
|
-
version = "4.
|
|
3
|
+
version = "4.7.1"
|
|
4
4
|
description = "A python package for the V2 CF Service Broker API and Open Broker API (version 2.13+)"
|
|
5
5
|
authors = ["Maic Siemering <maic@siemering.tech>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -42,6 +42,7 @@ classifiers = [
|
|
|
42
42
|
'Programming Language :: Python :: 3.9',
|
|
43
43
|
'Programming Language :: Python :: 3.10',
|
|
44
44
|
'Programming Language :: Python :: 3.11',
|
|
45
|
+
'Programming Language :: Python :: 3.12',
|
|
45
46
|
]
|
|
46
47
|
|
|
47
48
|
|
|
@@ -52,18 +53,18 @@ classifiers = [
|
|
|
52
53
|
|
|
53
54
|
[tool.poetry.dependencies]
|
|
54
55
|
python = "^3.8"
|
|
55
|
-
Flask = "
|
|
56
|
-
Sphinx = {version = "
|
|
57
|
-
sphinx-rtd-theme = {version = "
|
|
58
|
-
gevent = {version = ">=22.10.2,<
|
|
59
|
-
gunicorn = {version = "
|
|
56
|
+
Flask = ">=3.0.3,<4.0.0"
|
|
57
|
+
Sphinx = {version = ">=6.1.3,<8.0.0", optional = true}
|
|
58
|
+
sphinx-rtd-theme = {version = ">=1.2,<3.0", optional = true}
|
|
59
|
+
gevent = {version = ">=22.10.2,<25.0.0", optional = true}
|
|
60
|
+
gunicorn = {version = ">=20.1,<23.0", optional = true}
|
|
60
61
|
|
|
61
62
|
|
|
62
63
|
[tool.poetry.dev-dependencies]
|
|
63
|
-
pytest = "^
|
|
64
|
+
pytest = "^8.2.1"
|
|
64
65
|
Flask-Testing = "^0.8.1"
|
|
65
|
-
requests = "^2.
|
|
66
|
-
black = "^
|
|
66
|
+
requests = "^2.32.2"
|
|
67
|
+
black = "^24.4.2"
|
|
67
68
|
pre-commit = "^3.2.2"
|
|
68
69
|
|
|
69
70
|
[tool.poetry.extras]
|
|
@@ -73,7 +74,7 @@ gunicorn = ["gunicorn"]
|
|
|
73
74
|
|
|
74
75
|
[tool.poetry.group.dev.dependencies]
|
|
75
76
|
bumpversion = "^0.6.0"
|
|
76
|
-
ruff = "
|
|
77
|
+
ruff = ">=0.0.252,<0.4.9"
|
|
77
78
|
mypy = "^1.0.1"
|
|
78
79
|
types-requests = "^2.28.11.15"
|
|
79
80
|
|
|
@@ -100,33 +101,11 @@ relative_files = true
|
|
|
100
101
|
requires = ["poetry-core>=1.0.0"]
|
|
101
102
|
build-backend = "poetry.core.masonry.api"
|
|
102
103
|
|
|
104
|
+
[project]
|
|
105
|
+
requires-python = ">= 3.8"
|
|
103
106
|
|
|
104
|
-
[tool.ruff]
|
|
105
|
-
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
|
|
106
|
-
select = [
|
|
107
|
-
"E", # pycodestyle errors
|
|
108
|
-
"W", # pycodestyle warnings
|
|
109
|
-
"F", # pyflakes
|
|
110
|
-
"C", # flake8-comprehensions
|
|
111
|
-
"B", # flake8-bugbear
|
|
112
|
-
# "N", # naming
|
|
113
|
-
# "S", # flake8-bandit
|
|
114
|
-
# "PT", # flake8-pytest-style
|
|
115
|
-
# "SIM",# flake8-simplify
|
|
116
|
-
# "TCH",# flake8-type-checking
|
|
117
|
-
# "PL", # Pylint
|
|
118
|
-
"PLE", # error
|
|
119
|
-
"RUF", # Ruff-specific rules
|
|
120
|
-
]
|
|
121
|
-
ignore = [
|
|
122
|
-
"E501", # line too long, handled by black
|
|
123
|
-
"B008", # do not perform function calls in argument defaults
|
|
124
|
-
"C901", # too complex
|
|
125
|
-
]
|
|
126
107
|
|
|
127
|
-
|
|
128
|
-
fixable = ["A", "B", "C", "D", "E", "F"]
|
|
129
|
-
unfixable = []
|
|
108
|
+
[tool.ruff]
|
|
130
109
|
|
|
131
110
|
# Exclude a variety of commonly ignored directories.
|
|
132
111
|
exclude = [
|
|
@@ -155,17 +134,47 @@ exclude = [
|
|
|
155
134
|
# Same as Black.
|
|
156
135
|
line-length = 120
|
|
157
136
|
|
|
158
|
-
# Allow unused variables when underscore-prefixed.
|
|
159
|
-
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|
160
137
|
|
|
161
138
|
# Assume Python 3.10.
|
|
162
139
|
target-version = "py38"
|
|
163
140
|
|
|
164
|
-
[tool.ruff.
|
|
141
|
+
[tool.ruff.lint]
|
|
142
|
+
|
|
143
|
+
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
|
|
144
|
+
select = [
|
|
145
|
+
"E", # pycodestyle errors
|
|
146
|
+
"W", # pycodestyle warnings
|
|
147
|
+
"F", # pyflakes
|
|
148
|
+
"C", # flake8-comprehensions
|
|
149
|
+
"B", # flake8-bugbear
|
|
150
|
+
# "N", # naming
|
|
151
|
+
# "S", # flake8-bandit
|
|
152
|
+
# "PT", # flake8-pytest-style
|
|
153
|
+
# "SIM",# flake8-simplify
|
|
154
|
+
# "TCH",# flake8-type-checking
|
|
155
|
+
# "PL", # Pylint
|
|
156
|
+
"PLE", # error
|
|
157
|
+
"RUF", # Ruff-specific rules
|
|
158
|
+
]
|
|
159
|
+
ignore = [
|
|
160
|
+
"E501", # line too long, handled by black
|
|
161
|
+
"B008", # do not perform function calls in argument defaults
|
|
162
|
+
"C901", # too complex
|
|
163
|
+
"RUF200", # still using poetry
|
|
164
|
+
]
|
|
165
|
+
|
|
166
|
+
# Allow autofix for all enabled rules (when `--fix`) is provided.
|
|
167
|
+
fixable = ["A", "B", "C", "D", "E", "F", "R"]
|
|
168
|
+
unfixable = []
|
|
169
|
+
|
|
170
|
+
# Allow unused variables when underscore-prefixed.
|
|
171
|
+
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|
172
|
+
|
|
173
|
+
[tool.ruff.lint.mccabe]
|
|
165
174
|
# Unlike Flake8, default to a complexity level of 10.
|
|
166
175
|
max-complexity = 10
|
|
167
176
|
|
|
168
|
-
[tool.ruff.per-file-ignores]
|
|
177
|
+
[tool.ruff.lint.per-file-ignores]
|
|
169
178
|
"doc/conf.py" = ["E402"]
|
|
170
179
|
|
|
171
180
|
[tool.mypy]
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|