aio-kong 3.5.0__tar.gz → 3.6.0__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,9 +1,9 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: aio-kong
3
- Version: 3.5.0
3
+ Version: 3.6.0
4
4
  Summary: Asynchronous Kong Client
5
5
  License: BSD-3-Clause
6
- Author: Luca
6
+ Author: Luca Sbardella
7
7
  Author-email: luca@quantmind.com
8
8
  Requires-Python: >=3.10,<4.0
9
9
  Classifier: License :: OSI Approved :: BSD License
@@ -12,9 +12,10 @@ Classifier: Programming Language :: Python :: 3.10
12
12
  Classifier: Programming Language :: Python :: 3.11
13
13
  Classifier: Programming Language :: Python :: 3.12
14
14
  Classifier: Programming Language :: Python :: 3.13
15
- Requires-Dist: PyYAML (>=6.0,<7.0)
16
- Requires-Dist: aiohttp (>=3.9.5,<4.0.0)
17
- Requires-Dist: click (>=8.1.3,<9.0.0)
15
+ Provides-Extra: cli
16
+ Requires-Dist: PyYAML (>=6.0) ; extra == "cli"
17
+ Requires-Dist: aiohttp (>=3.9.5)
18
+ Requires-Dist: click (>=8.1.3) ; extra == "cli"
18
19
  Project-URL: Issues, https://github.com/quantmind/aio-kong/issues
19
20
  Project-URL: Repository, https://github.com/quantmind/aio-kong
20
21
  Description-Content-Type: text/markdown
@@ -30,7 +31,7 @@ Description-Content-Type: text/markdown
30
31
 
31
32
  Tested with [kong][] v3.8
32
33
 
33
- ## Installation & Testing
34
+ ## Installation
34
35
 
35
36
  To install the package
36
37
 
@@ -38,9 +39,12 @@ To install the package
38
39
  pip install aio-kong
39
40
  ```
40
41
 
41
- To run tests, clone and
42
+ ## Testing
43
+
44
+ To run tests, clone the repository and
42
45
 
43
46
  ```
47
+ make install
44
48
  make test
45
49
  ```
46
50
 
@@ -94,7 +98,15 @@ await cli.apply_json(config)
94
98
 
95
99
  ## Command line tool
96
100
 
97
- The library install the `kongfig` command line tool for uploading kong configuration files.
101
+ The library can install the `kongfig` command line tool for uploading kong configuration files.
102
+
103
+ For the command line tool to work, you need to install the package as:
104
+
105
+ ```bash
106
+ pip install aio-kong[cli]
107
+ ```
108
+
109
+ and to run the cli tool, you can use the following command:
98
110
 
99
111
  ```
100
112
  kongfig --yaml config.yaml
@@ -1,3 +1,3 @@
1
1
  """Asynchronous Kong client"""
2
2
 
3
- __version__ = "3.5.0"
3
+ __version__ = "3.6.0"
@@ -1,41 +1,49 @@
1
- [tool.poetry]
1
+ [project]
2
2
  name = "aio-kong"
3
- version = "3.5.0"
3
+ version = "3.6.0"
4
4
  description = "Asynchronous Kong Client"
5
- authors = ["Luca <luca@quantmind.com>"]
5
+ authors = [{ name = "Luca Sbardella", email = "luca@quantmind.com" }]
6
6
  license = "BSD-3-Clause"
7
7
  readme = "readme.md"
8
- packages = [
9
- {include = "kong"}
8
+ requires-python = ">=3.10,<4.0"
9
+ dependencies = [
10
+ "aiohttp>=3.9.5",
11
+ ]
12
+
13
+ [project.optional-dependencies]
14
+ cli = [
15
+ "PyYAML>=6.0",
16
+ "click>=8.1.3"
10
17
  ]
11
18
 
12
- [tool.poetry.urls]
13
- "Repository" = "https://github.com/quantmind/aio-kong"
14
- "Issues" = "https://github.com/quantmind/aio-kong/issues"
19
+ [project.scripts]
20
+ kongfig = "kong.cli:kong"
15
21
 
16
- [tool.poetry.dependencies]
17
- python = ">=3.10,<4.0"
18
- aiohttp = "^3.9.5"
19
- click = "^8.1.3"
20
- PyYAML = "^6.0"
21
22
 
22
- [tool.poetry.group.dev.dependencies]
23
- black = "^24.10.0"
24
- isort = "^5.10.1"
25
- mypy = "^1.4.0"
26
- pytest = "^8.2.2"
27
- pytest-cov = "^5.0.0"
28
- python-dotenv = "^1.0.0"
29
- pytest-asyncio = "^0.24.0"
30
- types-PyYAML = "^6.0.11"
31
- ruff = "^0.7.1"
23
+ [project.urls]
24
+ Repository = "https://github.com/quantmind/aio-kong"
25
+ Issues = "https://github.com/quantmind/aio-kong/issues"
26
+
32
27
 
33
28
  [build-system]
34
29
  requires = ["poetry-core>=1.0.0"]
35
30
  build-backend = "poetry.core.masonry.api"
36
31
 
37
- [tool.poetry.scripts]
38
- kongfig = "kong.cli:kong"
32
+ [tool.poetry]
33
+ packages = [
34
+ {include = "kong"}
35
+ ]
36
+
37
+ [tool.poetry.group.dev.dependencies]
38
+ black = "^25.1.0"
39
+ isort = "^6.0.1"
40
+ mypy = "^1.16.1"
41
+ pytest = "^8.2.2"
42
+ pytest-cov = "^6.2.1"
43
+ python-dotenv = "^1.0.0"
44
+ pytest-asyncio = "^1.0.0"
45
+ types-PyYAML = "^6.0.12.20250516"
46
+ ruff = "^0.12.0"
39
47
 
40
48
 
41
49
  [tool.pytest.ini_options]
@@ -9,7 +9,7 @@
9
9
 
10
10
  Tested with [kong][] v3.8
11
11
 
12
- ## Installation & Testing
12
+ ## Installation
13
13
 
14
14
  To install the package
15
15
 
@@ -17,9 +17,12 @@ To install the package
17
17
  pip install aio-kong
18
18
  ```
19
19
 
20
- To run tests, clone and
20
+ ## Testing
21
+
22
+ To run tests, clone the repository and
21
23
 
22
24
  ```
25
+ make install
23
26
  make test
24
27
  ```
25
28
 
@@ -73,7 +76,15 @@ await cli.apply_json(config)
73
76
 
74
77
  ## Command line tool
75
78
 
76
- The library install the `kongfig` command line tool for uploading kong configuration files.
79
+ The library can install the `kongfig` command line tool for uploading kong configuration files.
80
+
81
+ For the command line tool to work, you need to install the package as:
82
+
83
+ ```bash
84
+ pip install aio-kong[cli]
85
+ ```
86
+
87
+ and to run the cli tool, you can use the following command:
77
88
 
78
89
  ```
79
90
  kongfig --yaml config.yaml
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
File without changes
File without changes