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.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2022 Quantmind
1
+ Copyright (c) 2023 Quantmind
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification,
4
4
  are permitted provided that the following conditions are met:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aio-kong
3
- Version: 3.3.0
3
+ Version: 3.3.1
4
4
  Summary: Asynchronous Kong Client
5
5
  License: BSD-3-Clause
6
6
  Author: Luca
@@ -1,3 +1,3 @@
1
1
  """Asynchronous Kong client"""
2
2
 
3
- __version__ = "3.3.0"
3
+ __version__ = "3.3.1"
@@ -15,7 +15,6 @@ def auth_factory(consumer: Consumer, auth_type: str) -> ConsumerAuth:
15
15
 
16
16
 
17
17
  class ConsumerAuth(CrudComponent):
18
-
19
18
  unique_field: str = ""
20
19
 
21
20
  @property
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 not route:
36
- entity = await self.create(**entry)
37
- else:
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.0"
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-dependencies]
41
- black = "^22.6.0"
40
+ [tool.poetry.group.dev.dependencies]
41
+ black = "^23.3.0"
42
42
  isort = "^5.10.1"
43
- mypy = "^0.991"
43
+ mypy = "^1.4.0"
44
44
  pytest = "^7.1.2"
45
45
  pytest-cov = "^4.0.0"
46
- flake8 = "^6.0.0"
47
- flake8-blind-except = "^0.2.0"
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