Skip to content

Commit

Permalink
Fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
cleverguy25 committed Jun 5, 2024
1 parent 59b3de8 commit 531fc1b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VERSION := $(if ${PULUMI_VERSION},${PULUMI_VERSION},$(shell ./scripts/pulumi-version.sh))
PYTHON_SDK_VERSION := $(shell echo "$(VERSION)" | sed 's/-/./g')

CONCURRENCY := 10
SHELL := sh
Expand Down Expand Up @@ -64,7 +65,7 @@ generate_ts_client_sdk:

.PHONY: generate_python_client_sdk
generate_python_client_sdk:
PYTHON_POST_PROCESS_FILE="/usr/local/bin/yapf -i" openapi-generator-cli generate -i ./sdk/swagger.yaml -p packageName=pulumi_esc_sdk,httpUserAgent=esc-sdk/python/${VERSION},packageVersion=${VERSION} -t ./sdk/templates/python -g python -o ./sdk/python --git-repo-id esc --git-user-id pulumi
PYTHON_POST_PROCESS_FILE="/usr/local/bin/yapf -i" openapi-generator-cli generate -i ./sdk/swagger.yaml -p packageName=pulumi_esc_sdk,httpUserAgent=esc-sdk/python/${VERSION},packageVersion=${PYTHON_SDK_VERSION} -t ./sdk/templates/python -g python -o ./sdk/python --git-repo-id esc --git-user-id pulumi

.phony: generate_sdks
generate_sdks:: generate_go_client_sdk generate_ts_client_sdk generate_python_client_sdk
2 changes: 1 addition & 1 deletion sdk/python/pulumi_esc_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
""" # noqa: E501


__version__ = "0.9.0-dev.0"
__version__ = "0.9.0.dev.0"

# import extensions
from pulumi_esc_sdk.esc_client import EscClient
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/pulumi_esc_sdk/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"SDK Package Version: 0.9.0-dev.0".\
"SDK Package Version: 0.9.0.dev.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "pulumi-esc-sdk"
VERSION = "0.9.0-dev.0"
VERSION = "0.9.0.dev.0"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
Expand Down

0 comments on commit 531fc1b

Please sign in to comment.