From f27718376e8c06aa70facfadc83e431a63e1d4ad Mon Sep 17 00:00:00 2001 From: John Tompkins Date: Tue, 25 Feb 2020 11:40:42 -0800 Subject: [PATCH] Require updated cfn plugin. Fix write settings (#119) --- python/rpdk/go/__init__.py | 2 +- python/rpdk/go/codegen.py | 7 ++----- setup.py | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/python/rpdk/go/__init__.py b/python/rpdk/go/__init__.py index f7a024f3..f3366308 100644 --- a/python/rpdk/go/__init__.py +++ b/python/rpdk/go/__init__.py @@ -1,5 +1,5 @@ import logging -__version__ = "0.1.3" +__version__ = "0.1.4" logging.getLogger(__name__).addHandler(logging.NullHandler()) diff --git a/python/rpdk/go/codegen.py b/python/rpdk/go/codegen.py index d7868a22..2436e736 100644 --- a/python/rpdk/go/codegen.py +++ b/python/rpdk/go/codegen.py @@ -24,10 +24,7 @@ LANGUAGE = "go" -DEFAULT_SETTINGS = { - "protocolVersion": "1.0", - "pluginVersion": __version__, -} +DEFAULT_SETTINGS = {"protocolVersion": "1.0", "pluginVersion": __version__} class GoExecutableNotFoundError(SysExitRecommendedError): @@ -197,7 +194,7 @@ def generate(self, project): print(*check_version(old), sep="\n") if need_to_write: - project._write_settings(LANGUAGE) + project.write_settings() @staticmethod def pre_package(project): diff --git a/setup.py b/setup.py index 4ce55ff4..b4efc2b5 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ def find_version(*file_paths): # package_data -> use MANIFEST.in instead include_package_data=True, zip_safe=True, - install_requires=["cloudformation-cli>=0.1,<0.2", "semver>=2.9.0",], + install_requires=["cloudformation-cli>=0.1.2,<0.2", "semver>=2.9.0"], python_requires=">=3.6", entry_points={"rpdk.v1.languages": ["go = rpdk.go.codegen:GoLanguagePlugin"]}, license="Apache License 2.0",