Skip to content

Commit 35f8973

Browse files
committed
Omit version from the workspace package
the version was added in some comments/logs info; this does not play well when we re-generate the code from a branch with dynamic versioning
1 parent 5584d43 commit 35f8973

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

bin/generate.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
#!/bin/bash
22

3-
version=$(uvx --from setuptools-scm python -m setuptools_scm)
4-
53
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli:v7.10.0 generate \
64
-i https://raw.githubusercontent.com/localstack/openapi/refs/heads/main/openapi/emulators/localstack-spec-latest.yml \
75
--skip-validate-spec \
86
-g python \
97
-o /local//packages/localstack-sdk-generated \
108
--global-property models,apis,supportingFiles \
119
-p packageName=localstack.sdk \
12-
-p packageVersion=$version \
1310
--template-dir /local/packages/localstack-sdk-generated/templates \
1411
--global-property apiTests=false,modelTests=false \
1512
--global-property apiDocs=false,modelDocs=False

packages/localstack-sdk-generated/localstack/sdk/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = 'OpenAPI-Generator/0.0.4/python'
94+
self.user_agent = 'OpenAPI-Generator/1.0.0/python'
9595
self.client_side_validation = configuration.client_side_validation
9696

9797
def __enter__(self):

packages/localstack-sdk-generated/localstack/sdk/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def to_debug_report(self) -> str:
495495
"OS: {env}\n"\
496496
"Python Version: {pyversion}\n"\
497497
"Version of the API: latest\n"\
498-
"SDK Package Version: 0.0.4".\
498+
"SDK Package Version: 1.0.0".\
499499
format(env=sys.platform, pyversion=sys.version)
500500

501501
def get_host_settings(self) -> List[HostSetting]:

0 commit comments

Comments
 (0)