aio-kong 3.3.0__tar.gz → 3.3.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.
- {aio_kong-3.3.0 → aio_kong-3.3.1}/LICENSE +1 -1
- {aio_kong-3.3.0 → aio_kong-3.3.1}/PKG-INFO +1 -1
- {aio_kong-3.3.0 → aio_kong-3.3.1}/kong/__init__.py +1 -1
- {aio_kong-3.3.0 → aio_kong-3.3.1}/kong/auths.py +0 -1
- aio_kong-3.3.1/kong/py.typed +0 -0
- {aio_kong-3.3.0 → aio_kong-3.3.1}/kong/routes.py +3 -4
- {aio_kong-3.3.0 → aio_kong-3.3.1}/pyproject.toml +28 -10
- {aio_kong-3.3.0 → aio_kong-3.3.1}/kong/certificates.py +0 -0
- {aio_kong-3.3.0 → aio_kong-3.3.1}/kong/cli.py +0 -0
- {aio_kong-3.3.0 → aio_kong-3.3.1}/kong/client.py +0 -0
- {aio_kong-3.3.0 → aio_kong-3.3.1}/kong/components.py +0 -0
- {aio_kong-3.3.0 → aio_kong-3.3.1}/kong/consumers.py +0 -0
- {aio_kong-3.3.0 → aio_kong-3.3.1}/kong/plugins.py +0 -0
- {aio_kong-3.3.0 → aio_kong-3.3.1}/kong/services.py +0 -0
- {aio_kong-3.3.0 → aio_kong-3.3.1}/kong/snis.py +0 -0
- {aio_kong-3.3.0 → aio_kong-3.3.1}/kong/utils.py +0 -0
- {aio_kong-3.3.0 → aio_kong-3.3.1}/readme.md +0 -0
File without changes
|
@@ -32,10 +32,9 @@ class Routes(CrudComponent):
|
|
32
32
|
as_list("hosts", entry)
|
33
33
|
as_list("paths", entry)
|
34
34
|
as_list("methods", entry)
|
35
|
-
if
|
36
|
-
|
37
|
-
|
38
|
-
entity = await self.update(route.id, **entry)
|
35
|
+
if route:
|
36
|
+
await self.delete(route.id)
|
37
|
+
entity = await self.create(**entry)
|
39
38
|
route = cast(KongEntityWithPlugins, entity)
|
40
39
|
route.data["plugins"] = await route.plugins.apply_json(plugins)
|
41
40
|
result.append(route.data)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "aio-kong"
|
3
|
-
version = "3.3.
|
3
|
+
version = "3.3.1"
|
4
4
|
description = "Asynchronous Kong Client"
|
5
5
|
authors = ["Luca <luca@quantmind.com>"]
|
6
6
|
license = "BSD-3-Clause"
|
@@ -37,20 +37,38 @@ aiohttp = "^3.8.1"
|
|
37
37
|
click = "^8.1.3"
|
38
38
|
PyYAML = "^6.0"
|
39
39
|
|
40
|
-
[tool.poetry.dev
|
41
|
-
black = "^
|
40
|
+
[tool.poetry.group.dev.dependencies]
|
41
|
+
black = "^23.3.0"
|
42
42
|
isort = "^5.10.1"
|
43
|
-
mypy = "^0
|
43
|
+
mypy = "^1.4.0"
|
44
44
|
pytest = "^7.1.2"
|
45
45
|
pytest-cov = "^4.0.0"
|
46
|
-
|
47
|
-
|
48
|
-
codecov = "^2.1.12"
|
49
|
-
coverage = "^6.2"
|
50
|
-
python-dotenv = "^0.21.0"
|
51
|
-
pytest-asyncio = "^0.20.1"
|
46
|
+
python-dotenv = "^1.0.0"
|
47
|
+
pytest-asyncio = "^0.21.0"
|
52
48
|
types-PyYAML = "^6.0.11"
|
49
|
+
ruff = "^0.0.274"
|
53
50
|
|
54
51
|
[build-system]
|
55
52
|
requires = ["poetry-core>=1.0.0"]
|
56
53
|
build-backend = "poetry.core.masonry.api"
|
54
|
+
|
55
|
+
|
56
|
+
[tool.pytest.ini_options]
|
57
|
+
asyncio_mode = "auto"
|
58
|
+
testpaths = [
|
59
|
+
"tests"
|
60
|
+
]
|
61
|
+
|
62
|
+
|
63
|
+
[tool.isort]
|
64
|
+
profile = "black"
|
65
|
+
|
66
|
+
[tool.ruff]
|
67
|
+
select = ["E", "F"]
|
68
|
+
line-length = 88
|
69
|
+
|
70
|
+
[tool.mypy]
|
71
|
+
disallow_untyped_calls = true
|
72
|
+
warn_return_any = false
|
73
|
+
disallow_untyped_defs = true
|
74
|
+
warn_no_return = true
|
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
|