Skip to content

Commit

Permalink
Require updated cfn plugin. Fix write settings (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tompkins authored Feb 25, 2020
1 parent b4ba654 commit f277183
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion python/rpdk/go/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging

__version__ = "0.1.3"
__version__ = "0.1.4"

logging.getLogger(__name__).addHandler(logging.NullHandler())
7 changes: 2 additions & 5 deletions python/rpdk/go/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@

LANGUAGE = "go"

DEFAULT_SETTINGS = {
"protocolVersion": "1.0",
"pluginVersion": __version__,
}
DEFAULT_SETTINGS = {"protocolVersion": "1.0", "pluginVersion": __version__}


class GoExecutableNotFoundError(SysExitRecommendedError):
Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f277183

Please sign in to comment.