Skip to content

Commit 1175bbf

Browse files
committed
reverted codegen
1 parent 61ae234 commit 1175bbf

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

python/rpdk/typescript/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
22

3-
__version__ = "1.0.0"
3+
__version__ = "0.5.0"
44

55
logging.getLogger(__name__).addHandler(logging.NullHandler())

python/rpdk/typescript/codegen.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222
LOG = logging.getLogger(__name__)
2323

2424
EXECUTABLE = "cfn"
25-
SUPPORT_LIB_NAME = "cloudformation-cli-typescript-lib"
26-
SUPPORT_LIB_VERSION = "^1.0.0"
25+
SUPPORT_LIB_NAME = "cfn-rpdk"
26+
SUPPORT_LIB_VERSION = "0.5.0"
2727
MAIN_HANDLER_FUNCTION = "TypeFunction"
28+
REPO_URL = "https://github.com/eduardomourar/cloudformation-cli-typescript-plugin"
29+
REPO_RELEASE_SUFFIX = f"v{SUPPORT_LIB_VERSION}/cfn-rpdk-{SUPPORT_LIB_VERSION}.tgz"
2830

2931

3032
def validate_no(value):
@@ -38,6 +40,7 @@ class TypescriptLanguagePlugin(LanguagePlugin):
3840
ENTRY_POINT = "dist/handlers.entrypoint"
3941
TEST_ENTRY_POINT = "dist/handlers.testEntrypoint"
4042
CODE_URI = "./"
43+
SUPPORT_LIB_URI = f"{REPO_URL}/releases/download/{REPO_RELEASE_SUFFIX}"
4144

4245
def __init__(self):
4346
self.env = self._setup_jinja_env(
@@ -62,7 +65,7 @@ def _init_from_project(self, project):
6265
self._use_docker = project.settings.get("useDocker", True)
6366
self.package_root = project.root / "src"
6467
self._build_command = project.settings.get("buildCommand", None)
65-
self._lib_path = SUPPORT_LIB_VERSION
68+
self._lib_path = project.settings.get("supportLibrary", self.SUPPORT_LIB_URI)
6669

6770
def _init_settings(self, project):
6871
LOG.debug("Writing settings")

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ def find_version(*file_paths):
3737
include_package_data=True,
3838
zip_safe=True,
3939
python_requires=">=3.6",
40-
install_requires=["cloudformation-cli>=0.1.14", "docker>=3.7,<5", "zipfile38>=0.0.3,<0.2"],
40+
install_requires=[
41+
"cloudformation-cli>=0.1.14",
42+
"docker>=3.7,<5",
43+
"zipfile38>=0.0.3,<0.2",
44+
],
4145
entry_points={
4246
"rpdk.v1.languages": [
4347
"typescript = rpdk.typescript.codegen:TypescriptLanguagePlugin",

0 commit comments

Comments
 (0)