diff --git a/Makefile b/Makefile index 2c7d36b..74393a9 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 \ No newline at end of file diff --git a/sdk/python/pulumi_esc_sdk/__init__.py b/sdk/python/pulumi_esc_sdk/__init__.py index e624e1f..1e11c15 100644 --- a/sdk/python/pulumi_esc_sdk/__init__.py +++ b/sdk/python/pulumi_esc_sdk/__init__.py @@ -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 diff --git a/sdk/python/pulumi_esc_sdk/configuration.py b/sdk/python/pulumi_esc_sdk/configuration.py index 9e4bc15..3d4ad85 100644 --- a/sdk/python/pulumi_esc_sdk/configuration.py +++ b/sdk/python/pulumi_esc_sdk/configuration.py @@ -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): diff --git a/sdk/python/setup.py b/sdk/python/setup.py index 85130a6..b5b2527 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -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",