diff --git a/jinja2-gcp-secret-manager/__init__.py b/jinja2-gcp-secret-manager/__init__.py index c0677df..63f3835 100644 --- a/jinja2-gcp-secret-manager/__init__.py +++ b/jinja2-gcp-secret-manager/__init__.py @@ -1,4 +1,4 @@ -__version__ = '1.0.0' +__version__ = '1.1.0' __author__ = 'Yash Mehrotra' __license__ = 'Apache 2.0' @@ -24,7 +24,10 @@ def parse(self, parser): parser.stream.skip_if('comma') version = nodes.Const('latest') - project = PROJECT_ID + if not PROJECT_ID: + parser.fail("Project not specified", lineno=lineno) + project = nodes.Const(PROJECT_ID) + if parser.stream.skip_if('name:version'): parser.stream.skip(1) version = parser.parse_expression() @@ -33,8 +36,6 @@ def parse(self, parser): parser.stream.skip(1) project = parser.parse_expression() - if not project: - parser.fail("project not specified", lineno=lineno) args = (name, version, project) diff --git a/setup.py b/setup.py index b6bb33d..5890f07 100644 --- a/setup.py +++ b/setup.py @@ -18,9 +18,16 @@ packages=setuptools.find_packages(), license='Apache 2.0', install_requires=[ - 'google-auth', - 'google-cloud-secret-manager>=2.0.0', - 'Jinja2>=2.11.2', + 'Jinja2==2.11.3', + 'google-cloud-secret-manager==2.2.0', + # These are dependencies of secret-manager package, had to put + # them here to make it work + 'google-api-core[grpc]==1.25.1', + 'grpc-google-iam-v1==0.12.3', + 'proto-plus==1.13.0', + 'libcst >= 0.2.5', + 'protobuf==3.14.0', + 'googleapis-common-protos==1.52.0', ], classifiers=[ "Programming Language :: Python :: 3",