openapi-generator-cli 7.21.0__tar.gz → 7.23.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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openapi-generator-cli
3
- Version: 7.21.0
3
+ Version: 7.23.0
4
4
  Summary: CLI for openapi generator
5
5
  Project-URL: Documentation, https://github.com/OpenAPITools/openapi-generator#3---usage
6
6
  Project-URL: Homepage, https://openapi-generator.tech
@@ -21,7 +21,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
21
21
  Classifier: Typing :: Typed
22
22
  Requires-Python: <4,>=3.10
23
23
  Provides-Extra: jdk4py
24
- Requires-Dist: jdk4py<22,>=21.0.4.1; (python_version >= '3.10') and extra == 'jdk4py'
24
+ Requires-Dist: jdk4py<26,>=21.0.4.1; (python_version >= '3.10') and extra == 'jdk4py'
25
25
  Description-Content-Type: text/markdown
26
26
 
27
27
  # OpenAPI Generator in Package Installer for Python (PIP)
@@ -56,12 +56,17 @@ def run(args: list[str] | None = None) -> subprocess.CompletedProcess[bytes]:
56
56
  return subprocess.run(arguments, check=False) # noqa: S603
57
57
 
58
58
 
59
- def cli() -> None:
60
- """Run the OpenAPI Generator CLI with the arguments provided on the command line."""
61
- args = []
62
- if len(sys.argv) > 1:
63
- args = sys.argv[1:]
64
- run(args)
59
+ def cli(argv: list[str] | None = None) -> None:
60
+ """Run the OpenAPI Generator CLI with the arguments provided on the command line.
61
+
62
+ Args:
63
+ argv (list[str], optional):
64
+ The command-line arguments to pass to the OpenAPI Generator CLI.
65
+ If not provided, sys.argv is used.
66
+
67
+ """
68
+ args = (argv or sys.argv)[1:]
69
+ sys.exit(run(args).returncode)
65
70
 
66
71
 
67
72
  if __name__ == "__main__":
@@ -4,7 +4,7 @@ requires = [ "hatchling" ]
4
4
 
5
5
  [project]
6
6
  name = "openapi-generator-cli"
7
- version = "7.21.0"
7
+ version = "7.23.0"
8
8
  description = "CLI for openapi generator"
9
9
  readme = "README.md"
10
10
  keywords = [
@@ -29,7 +29,7 @@ classifiers = [
29
29
  ]
30
30
  dependencies = [ ]
31
31
 
32
- optional-dependencies.jdk4py = [ "jdk4py>=21.0.4.1,<22; python_version>='3.10'" ]
32
+ optional-dependencies.jdk4py = [ "jdk4py>=21.0.4.1,<26; python_version>='3.10'" ]
33
33
  urls.Documentation = "https://github.com/OpenAPITools/openapi-generator#3---usage"
34
34
  urls.Homepage = "https://openapi-generator.tech"
35
35
  urls.Repository = "https://github.com/OpenAPITools/openapi-generator"
@@ -37,7 +37,7 @@ scripts.openapi-generator-cli = "openapi_generator_cli:cli"
37
37
 
38
38
  [dependency-groups]
39
39
  dev = [
40
- "mypy>=0.991,<1.20",
40
+ "mypy>=0.991,<1.21",
41
41
  "natsort>=8.4,<9",
42
42
  "pre-commit>=2.20,<5",
43
43
  "pytest>=7.2.2,<10",