openapi-python-client 0.28.3__py3-none-any.whl → 0.28.4__py3-none-any.whl

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.
@@ -126,7 +126,7 @@ class Project:
126
126
  self._run_command(command)
127
127
 
128
128
  def _run_command(self, cmd: str) -> None:
129
- cmd_name = cmd.split(" ")[0]
129
+ cmd_name = cmd.split(" ", maxsplit=1)[0]
130
130
  command_exists = shutil.which(cmd_name)
131
131
  if not command_exists:
132
132
  self.errors.append(
@@ -201,7 +201,9 @@ class EnumProperty(PropertyProtocol):
201
201
  else:
202
202
  output[f"VALUE_{value}"] = value
203
203
  continue
204
- if value and value[0].isalpha():
204
+ if use_var_names:
205
+ key = var_names[i]
206
+ elif value and value[0].isalpha():
205
207
  key = value.upper()
206
208
  else:
207
209
  key = f"VALUE_{i}"
@@ -50,7 +50,7 @@ def get_reference_simple_name(ref_path: str) -> str:
50
50
  """
51
51
  Takes a path like `/components/schemas/NameOfThing` and returns a string like `NameOfThing`.
52
52
  """
53
- return ref_path.split("/")[-1]
53
+ return ref_path.rsplit("/", maxsplit=1)[-1]
54
54
 
55
55
 
56
56
  @define
@@ -16,5 +16,5 @@ module-name = "{{ package_name }}"
16
16
  module-root = ""
17
17
 
18
18
  [build-system]
19
- requires = ["uv_build>=0.10.0,<0.11.0"]
19
+ requires = ["uv_build>=0.11.0,<0.12.0"]
20
20
  build-backend = "uv_build"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openapi-python-client
3
- Version: 0.28.3
3
+ Version: 0.28.4
4
4
  Summary: Generate modern Python clients from OpenAPI
5
5
  Project-URL: repository, https://github.com/openapi-generators/openapi-python-client
6
6
  Author-email: Dylan Anthony <contact@dylananthony.com>
@@ -28,7 +28,7 @@ Requires-Dist: python-dateutil<3.0.0,>=2.8.1
28
28
  Requires-Dist: ruamel-yaml<0.20.0,>=0.18.6
29
29
  Requires-Dist: ruff>=0.2
30
30
  Requires-Dist: shellingham<2.0.0,>=1.3.2
31
- Requires-Dist: typer<0.25,>0.16
31
+ Requires-Dist: typer<0.26,>0.16
32
32
  Description-Content-Type: text/markdown
33
33
 
34
34
  ![Run Checks](https://github.com/openapi-generators/openapi-python-client/workflows/Run%20Checks/badge.svg)
@@ -1,4 +1,4 @@
1
- openapi_python_client/__init__.py,sha256=tjBvMhXGDzc6DIAlBw221MtVvV7YxDToo-offC9rQsM,13986
1
+ openapi_python_client/__init__.py,sha256=CIR8xE-p3P3S30U0yxoVZqM2guwHFVEVz-rXYvO3dhA,13998
2
2
  openapi_python_client/__main__.py,sha256=wcCrL4PjG51r5wVKqJhcoJPTLfHW0wNbD31DrUN0MWI,28
3
3
  openapi_python_client/cli.py,sha256=juVojdKeZNpzk4jWjD4bWx-f2X-1qIZLPB8nM9RljyY,5488
4
4
  openapi_python_client/config.py,sha256=DeuP2rd1jgxJq0GuOPi9167407VpuFzLaSsGn2v5BZY,4148
@@ -15,7 +15,7 @@ openapi_python_client/parser/properties/boolean.py,sha256=xdkZyiUvdhKmEmGmaT88bi
15
15
  openapi_python_client/parser/properties/const.py,sha256=Gwafr49qee0bugqsGLPR_bGEfBM9azkUQzlECbQrCJg,3717
16
16
  openapi_python_client/parser/properties/date.py,sha256=1OzUNLJef3V6uWswM_Z_H3TjULDaN9xGWFNSk2ZCnLk,2354
17
17
  openapi_python_client/parser/properties/datetime.py,sha256=J9BWgoZE1jK0Td625SrBUdThch6vgKAR-Iox2aUQBcE,2382
18
- openapi_python_client/parser/properties/enum_property.py,sha256=dvxh9tY2tn7PXJPDVofEc1A7UCcE_YdR2umKVmkSHzU,8721
18
+ openapi_python_client/parser/properties/enum_property.py,sha256=Pa1PNJrSqjn8PrRdYIKGLCxgyo8XMUjfQb8XvgTHlf0,8788
19
19
  openapi_python_client/parser/properties/file.py,sha256=8FucE3jpkXti6QyfxyoZXKmQtaiJM7FewfCPiB39s1s,1994
20
20
  openapi_python_client/parser/properties/float.py,sha256=Ent7smCPFPBZAmxVykD2NgHXv6uCZxabAsenYB_AuSA,2201
21
21
  openapi_python_client/parser/properties/int.py,sha256=O455r8xjI4e6KHjhoblHHNHZYi6tWu-c2KBTCguKmbM,2200
@@ -26,7 +26,7 @@ openapi_python_client/parser/properties/model_property.py,sha256=MF0NCyFoR4oFMSw
26
26
  openapi_python_client/parser/properties/none.py,sha256=BPx6lDyEicMyiWnxcVIuKPZrm0zsoGGUDbrEXJdDizA,1754
27
27
  openapi_python_client/parser/properties/property.py,sha256=tUNaC-96EKSqpuqW_4NeEp9LG7_PMUeE0DOkIXU89M0,971
28
28
  openapi_python_client/parser/properties/protocol.py,sha256=i4Z8Dy-Yx8vucvKuRfJ97OZSZUtw3ErFXWAbnTEP6U8,6343
29
- openapi_python_client/parser/properties/schemas.py,sha256=kTM8Z2L8WIR2n3wcxUkUAAh440ZpRdrbTyUQXDdOUd8,8555
29
+ openapi_python_client/parser/properties/schemas.py,sha256=wG4ZFMY3RUWNSXd2B1FxROyxZf7rUQeYTw-1LQ6slHg,8568
30
30
  openapi_python_client/parser/properties/string.py,sha256=G4Apny6OXkjVQd-SUjBUe5i2pBL7VaVxE2aGDTXGmpM,1895
31
31
  openapi_python_client/parser/properties/union.py,sha256=NMNnrFmQunKc23wVSdJ4u0UkWU72yG-FdWDLnGUTlTk,8631
32
32
  openapi_python_client/parser/properties/uuid.py,sha256=kuVZDs0VytchgfmNYRr5trlhU3uyWWdChyta3C9LDTE,2452
@@ -86,7 +86,7 @@ openapi_python_client/templates/pyproject.toml.jinja,sha256=rBaFq0oqlGeW-NesqPeF
86
86
  openapi_python_client/templates/pyproject_pdm.toml.jinja,sha256=-smKXl8KcB38cOTZUw0YGDXqHIJZb_5feMZAxedR2ow,379
87
87
  openapi_python_client/templates/pyproject_poetry.toml.jinja,sha256=2uuXaiTGNs9uy0jM1CRBfEnThQpv-zJ9uKPqfs6xy9k,466
88
88
  openapi_python_client/templates/pyproject_ruff.toml.jinja,sha256=OgFfCd9Ca3YsU8WdCxqJoJdCJEtzADpxAxfMghqzn80,74
89
- openapi_python_client/templates/pyproject_uv.toml.jinja,sha256=ehvhGSpqppjkdyHiLWGzeRasXHewIHlCNODUb0ud_Ps,437
89
+ openapi_python_client/templates/pyproject_uv.toml.jinja,sha256=ZIWDG7chNm4REVP3a2jD8aMTZbocLkYw4V1hKzZEXnQ,437
90
90
  openapi_python_client/templates/setup.py.jinja,sha256=DyYTxpmL0Yyxhl8bQHwyXWJ3HepE1lQVD_CL6IF6Bmw,612
91
91
  openapi_python_client/templates/str_enum.py.jinja,sha256=5SxGRu_sZxEILC425D45YSu8s12vJGM2PWwYWjOUl8M,232
92
92
  openapi_python_client/templates/types.py.jinja,sha256=k9-ddYg6Tq-sd90hvGkH8-9hLj94QeCGVmGNz2xM5JQ,1350
@@ -106,8 +106,8 @@ openapi_python_client/templates/property_templates/model_property.py.jinja,sha25
106
106
  openapi_python_client/templates/property_templates/property_macros.py.jinja,sha256=s0DqGOc8rbEKptUtH1tAht08wahN3xXpaGfyzVa3Kog,580
107
107
  openapi_python_client/templates/property_templates/union_property.py.jinja,sha256=LdIEhIQbX4z6fuJRFxaj_RV0GTGrPBnO6tXBOymQbak,4162
108
108
  openapi_python_client/templates/property_templates/uuid_property.py.jinja,sha256=U31Y1inocw3aGzCinaYWrFcUu-T4f8Miht7tIaf6QiY,1075
109
- openapi_python_client-0.28.3.dist-info/METADATA,sha256=E_Dqwz4e-xxmhBHkQYudv7RNrx_eDTzEylAEtQaa7z0,11687
110
- openapi_python_client-0.28.3.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
111
- openapi_python_client-0.28.3.dist-info/entry_points.txt,sha256=iRfSdN2foASZXr8GghkYa6KRXkDgO0EFfLut5IXoBTU,72
112
- openapi_python_client-0.28.3.dist-info/licenses/LICENSE,sha256=4dpxQYqY0DB3aTauRrqYRuu6BVNsPSJdYeUT3sH6pQY,1075
113
- openapi_python_client-0.28.3.dist-info/RECORD,,
109
+ openapi_python_client-0.28.4.dist-info/METADATA,sha256=gPsh-Q7r5jqE4LOk6SQK0VyLtmhVh5zNZEoI36graiM,11687
110
+ openapi_python_client-0.28.4.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
111
+ openapi_python_client-0.28.4.dist-info/entry_points.txt,sha256=iRfSdN2foASZXr8GghkYa6KRXkDgO0EFfLut5IXoBTU,72
112
+ openapi_python_client-0.28.4.dist-info/licenses/LICENSE,sha256=4dpxQYqY0DB3aTauRrqYRuu6BVNsPSJdYeUT3sH6pQY,1075
113
+ openapi_python_client-0.28.4.dist-info/RECORD,,