openapi-generator-cli 7.12.0__tar.gz → 7.13.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.
@@ -0,0 +1,108 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ .idea/
6
+ bin/
7
+ version
8
+ openapi_generator_cli/*.jar
9
+ .DS_Store
10
+ # C extensions
11
+ *.so
12
+
13
+ # Distribution / packaging
14
+ .Python
15
+ build/
16
+ develop-eggs/
17
+ dist/
18
+ downloads/
19
+ eggs/
20
+ .eggs/
21
+ lib/
22
+ lib64/
23
+ parts/
24
+ sdist/
25
+ var/
26
+ wheels/
27
+ *.egg-info/
28
+ .installed.cfg
29
+ *.egg
30
+ MANIFEST
31
+
32
+ # PyInstaller
33
+ # Usually these files are written by a python script from a template
34
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
35
+ *.manifest
36
+ *.spec
37
+
38
+ # Installer logs
39
+ pip-log.txt
40
+ pip-delete-this-directory.txt
41
+
42
+ # Unit test / coverage reports
43
+ htmlcov/
44
+ .tox/
45
+ .coverage
46
+ .coverage.*
47
+ .cache
48
+ nosetests.xml
49
+ coverage.xml
50
+ *.cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+
63
+ # Flask stuff:
64
+ instance/
65
+ .webassets-cache
66
+
67
+ # Scrapy stuff:
68
+ .scrapy
69
+
70
+ # Sphinx documentation
71
+ docs/_build/
72
+
73
+ # PyBuilder
74
+ target/
75
+
76
+ # Jupyter Notebook
77
+ .ipynb_checkpoints
78
+
79
+ # pyenv
80
+ .python-version
81
+
82
+ # celery beat schedule file
83
+ celerybeat-schedule
84
+
85
+ # SageMath parsed files
86
+ *.sage.py
87
+
88
+ # Environments
89
+ .env
90
+ .venv
91
+ env/
92
+ venv/
93
+ ENV/
94
+ env.bak/
95
+ venv.bak/
96
+
97
+ # Spyder project settings
98
+ .spyderproject
99
+ .spyproject
100
+
101
+ # Rope project settings
102
+ .ropeproject
103
+
104
+ # mkdocs documentation
105
+ /site
106
+
107
+ # mypy
108
+ .mypy_cache/
@@ -1,12 +1,14 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: openapi-generator-cli
3
- Version: 7.12.0
3
+ Version: 7.13.0
4
4
  Summary: CLI for openapi generator
5
+ Project-URL: Documentation, https://github.com/OpenAPITools/openapi-generator#3---usage
6
+ Project-URL: Homepage, https://openapi-generator.tech
7
+ Project-URL: Repository, https://github.com/OpenAPITools/openapi-generator
8
+ Author-email: OpenAPI Generator community <team@openapitools.org>
5
9
  License: APACHE 2.0
10
+ License-File: LICENSE
6
11
  Keywords: cli,generator,openapi
7
- Author: OpenAPI Generator community
8
- Author-email: team@openapitools.org
9
- Requires-Python: >=3.9,<4
10
12
  Classifier: License :: OSI Approved :: Apache Software License
11
13
  Classifier: Programming Language :: Python
12
14
  Classifier: Programming Language :: Python :: 3 :: Only
@@ -18,11 +20,9 @@ Classifier: Programming Language :: Python :: 3.13
18
20
  Classifier: Programming Language :: Python :: Implementation :: CPython
19
21
  Classifier: Programming Language :: Python :: Implementation :: PyPy
20
22
  Classifier: Typing :: Typed
23
+ Requires-Python: <4,>=3.9
21
24
  Provides-Extra: jdk4py
22
- Requires-Dist: jdk4py (>=21.0.4.1,<22) ; (python_version >= "3.10") and (extra == "jdk4py")
23
- Project-URL: Documentation, https://github.com/OpenAPITools/openapi-generator#3---usage
24
- Project-URL: Homepage, https://openapi-generator.tech
25
- Project-URL: Repository, https://github.com/OpenAPITools/openapi-generator
25
+ Requires-Dist: jdk4py<22,>=21.0.4.1; (python_version >= '3.10') and extra == 'jdk4py'
26
26
  Description-Content-Type: text/markdown
27
27
 
28
28
  # OpenAPI Generator in Package Installer for Python (PIP)
@@ -96,4 +96,3 @@ Please raise an issue, happy to hear from you :)
96
96
  [maven repository]: <https://mvnrepository.com/artifact/org.openapitools/openapi-generator-cli>
97
97
  [`jdk4py`]: <https://github.com/activeviam/jdk4py>
98
98
  [official openapi-generator docs]: <https://github.com/OpenAPITools/openapi-generator#3---usage>
99
-
@@ -45,7 +45,9 @@ def run(args: list[str] | None = None) -> subprocess.CompletedProcess[bytes]:
45
45
 
46
46
  arguments.append("-jar")
47
47
 
48
- jar_path = importlib.resources.files("openapi_generator_cli") / "openapi-generator.jar"
48
+ jar_path = (
49
+ importlib.resources.files("openapi_generator_cli") / "openapi-generator.jar"
50
+ )
49
51
  arguments.append(str(jar_path))
50
52
 
51
53
  if args and isinstance(args, list):
@@ -1,12 +1,10 @@
1
1
  [build-system]
2
- build-backend = "poetry.core.masonry.api"
3
- requires = [
4
- "poetry-core>=2",
5
- ]
2
+ build-backend = "hatchling.build"
3
+ requires = [ "hatchling" ]
6
4
 
7
5
  [project]
8
6
  name = "openapi-generator-cli"
9
- version = "7.12.0"
7
+ version = "7.13.0"
10
8
  description = "CLI for openapi generator"
11
9
  readme = "README.md"
12
10
  keywords = [
@@ -15,9 +13,7 @@ keywords = [
15
13
  "openapi",
16
14
  ]
17
15
  license = { text = "APACHE 2.0" }
18
- authors = [
19
- { name = "OpenAPI Generator community", email = "team@openapitools.org" },
20
- ]
16
+ authors = [ { name = "OpenAPI Generator community", email = "team@openapitools.org" } ]
21
17
  requires-python = ">=3.9,<4"
22
18
  classifiers = [
23
19
  "License :: OSI Approved :: Apache Software License",
@@ -32,42 +28,40 @@ classifiers = [
32
28
  "Programming Language :: Python :: Implementation :: PyPy",
33
29
  "Typing :: Typed",
34
30
  ]
35
- optional-dependencies.jdk4py = [
36
- "jdk4py>=21.0.4.1,<22; python_version>='3.10'",
37
- ]
31
+ dependencies = [ ]
32
+
33
+ optional-dependencies.jdk4py = [ "jdk4py>=21.0.4.1,<22; python_version>='3.10'" ]
38
34
  urls.Documentation = "https://github.com/OpenAPITools/openapi-generator#3---usage"
39
35
  urls.Homepage = "https://openapi-generator.tech"
40
36
  urls.Repository = "https://github.com/OpenAPITools/openapi-generator"
41
37
  scripts.openapi-generator-cli = "openapi_generator_cli:cli"
42
38
 
43
- [tool.poetry]
44
- requires-poetry = ">=2.0"
45
- packages = [
46
- { include = "openapi_generator_cli" },
39
+ [dependency-groups]
40
+ dev = [
41
+ "mypy>=0.991,<1.15",
42
+ "natsort>=8.4,<9",
43
+ "pre-commit>=2.20,<5",
44
+ "pytest>=7.2.2,<9",
45
+ "pytest-cov>=6",
46
+ "taskipy>=1.10.3,<2",
47
47
  ]
48
+
49
+ [tool.hatch.build.targets.sdist]
48
50
  include = [
49
- { path = "openapi_generator_cli/openapi-generator.jar", format = [ "sdist", "wheel" ] },
51
+ "openapi_generator_cli",
52
+ "openapi_generator_cli/openapi-generator.jar",
50
53
  ]
51
54
 
52
- [tool.poetry.group.dev.dependencies]
53
- mypy = ">=0.991,<1.15"
54
- pre-commit = ">=2.20,<5.0"
55
- taskipy = "^1.10.3"
56
- pytest = ">=7.2.2,<9.0.0"
57
- natsort = "^8.4.0"
58
-
59
- [tool.poetry.requires-plugins]
60
- poetry-plugin-shell = ">=1.0"
61
-
62
- [tool.black]
63
- line-length = 120
64
- target-version = [
65
- 'py39',
55
+ [tool.hatch.build.targets.wheel]
56
+ include = [
57
+ "openapi_generator_cli",
58
+ "openapi_generator_cli/openapi-generator.jar",
66
59
  ]
67
60
 
68
61
  [tool.ruff]
69
62
  line-length = 120
70
-
63
+ format.indent-style = "space"
64
+ format.quote-style = "double"
71
65
  lint.select = [
72
66
  "ALL",
73
67
  ]
@@ -84,6 +78,7 @@ lint.per-file-ignores."tests/*" = [
84
78
  "D",
85
79
  "S101", # Use of `assert` detected
86
80
  ]
81
+ lint.pydocstyle.convention = "google"
87
82
 
88
83
  [tool.mypy]
89
84
  pretty = true
@@ -91,9 +86,13 @@ python_version = "3.9"
91
86
  show_error_codes = true
92
87
  strict = true
93
88
 
89
+ [tool.uv]
90
+ default-groups = [ "dev" ]
91
+
94
92
  [tool.taskipy.tasks]
95
93
  download-latest-jar = "DOWNLOAD_LATEST_ONLY=1 task publish"
96
94
  test = "pytest"
95
+ "test:ci" = "pytest --junitxml=pytest.xml --cov=openapi_generator_cli --cov-report=xml:coverage.xml"
97
96
  test-unpublished-versions = "DRYRUN=1 task publish"
98
97
  lint = "pre-commit run -a"
99
98
  publish = "python publish.py"