tgwrap 0.9.2__py3-none-any.whl → 0.9.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tgwrap/analyze.py +2 -2
- tgwrap/cli.py +7 -7
- tgwrap/main.py +8 -4
- {tgwrap-0.9.2.dist-info → tgwrap-0.9.4.dist-info}/METADATA +2 -4
- tgwrap-0.9.4.dist-info/RECORD +11 -0
- tgwrap-0.9.2.dist-info/RECORD +0 -11
- {tgwrap-0.9.2.dist-info → tgwrap-0.9.4.dist-info}/LICENSE +0 -0
- {tgwrap-0.9.2.dist-info → tgwrap-0.9.4.dist-info}/WHEEL +0 -0
- {tgwrap-0.9.2.dist-info → tgwrap-0.9.4.dist-info}/entry_points.txt +0 -0
tgwrap/analyze.py
CHANGED
@@ -185,7 +185,7 @@ def has_update_action(resource):
|
|
185
185
|
|
186
186
|
def is_resource_match_any(resource_address, pattern_list):
|
187
187
|
for pattern in pattern_list:
|
188
|
-
pattern = re.sub(r"\[(.+?)\]", "[[]
|
188
|
+
pattern = re.sub(r"\[(.+?)\]", "[[]\\g<1>[]]", pattern)
|
189
189
|
if fnmatch.fnmatch(resource_address, pattern):
|
190
190
|
return True
|
191
191
|
return False
|
@@ -193,7 +193,7 @@ def is_resource_match_any(resource_address, pattern_list):
|
|
193
193
|
|
194
194
|
def get_matching_dd_config(resource_address, dd_config):
|
195
195
|
for pattern, config in dd_config.items():
|
196
|
-
pattern = re.sub(r"\[(.+?)\]", "[[]
|
196
|
+
pattern = re.sub(r"\[(.+?)\]", "[[]\\g<1>[]]", pattern)
|
197
197
|
if fnmatch.fnmatch(resource_address, pattern):
|
198
198
|
return True, config
|
199
199
|
return False, None
|
tgwrap/cli.py
CHANGED
@@ -42,7 +42,7 @@ def check_latest_version(verbose=False):
|
|
42
42
|
# this happens when your local version is ahead of the pypi version,
|
43
43
|
# which happens only in development
|
44
44
|
pass
|
45
|
-
except
|
45
|
+
except :
|
46
46
|
echo('Could not determine package version, continue nevertheless.')
|
47
47
|
pass
|
48
48
|
|
@@ -237,12 +237,12 @@ def run(command, verbose, debug, dry_run, no_lock, update, upgrade,
|
|
237
237
|
)
|
238
238
|
@click.option('--include-dir', '-I',
|
239
239
|
multiple=True, default=[],
|
240
|
-
help='A glob of a directory that needs to be included, this option can be used multiple times. For example: -I "integrations/\*/\*"',
|
240
|
+
help=r'A glob of a directory that needs to be included, this option can be used multiple times. For example: -I "integrations/\*/\*"',
|
241
241
|
show_default=True
|
242
242
|
)
|
243
243
|
@click.option('--exclude-dir', '-E',
|
244
244
|
multiple=True, default=[],
|
245
|
-
help='A glob of a directory that needs to be excluded, this option can be used multiple times. For example: -E "integrations/\*/\*"',
|
245
|
+
help=r'A glob of a directory that needs to be excluded, this option can be used multiple times. For example: -E "integrations/\*/\*"',
|
246
246
|
show_default=True,
|
247
247
|
)
|
248
248
|
@click.argument('terragrunt-args', nargs=-1, type=click.UNPROCESSED)
|
@@ -390,12 +390,12 @@ def run_import(address, id, verbose, dry_run, working_dir, no_lock, terragrunt_a
|
|
390
390
|
)
|
391
391
|
@click.option('--include-dir', '-I',
|
392
392
|
multiple=True, default=[],
|
393
|
-
help='A glob of a directory that needs to be included, this option can be used multiple times. For example: -I "integrations/\*/\*"',
|
393
|
+
help=r'A glob of a directory that needs to be included, this option can be used multiple times. For example: -I "integrations/\*/\*"',
|
394
394
|
show_default=True
|
395
395
|
)
|
396
396
|
@click.option('--exclude-dir', '-E',
|
397
397
|
multiple=True, default=[],
|
398
|
-
help='A glob of a directory that needs to be excluded, this option can be used multiple times. For example: -E "integrations/\*/\*"',
|
398
|
+
help=r'A glob of a directory that needs to be excluded, this option can be used multiple times. For example: -E "integrations/\*/\*"',
|
399
399
|
show_default=True,
|
400
400
|
)
|
401
401
|
@click.option('--planfile-dir', '-P', default='.terragrunt-cache/current',
|
@@ -752,12 +752,12 @@ def check_deployments(manifest_file, verbose, working_dir, out):
|
|
752
752
|
)
|
753
753
|
@click.option('--include-dir', '-I',
|
754
754
|
multiple=True, default=[],
|
755
|
-
help='A glob of a directory that needs to be included, this option can be used multiple times. For example: -I "integrations/\*/\*"',
|
755
|
+
help=r'A glob of a directory that needs to be included, this option can be used multiple times. For example: -I "integrations/\*/\*"',
|
756
756
|
show_default=True
|
757
757
|
)
|
758
758
|
@click.option('--exclude-dir', '-E',
|
759
759
|
multiple=True, default=[],
|
760
|
-
help='A glob of a directory that needs to be excluded, this option can be used multiple times. For example: -E "integrations/\*/\*"',
|
760
|
+
help=r'A glob of a directory that needs to be excluded, this option can be used multiple times. For example: -E "integrations/\*/\*"',
|
761
761
|
show_default=True,
|
762
762
|
)
|
763
763
|
@click.option('--working-dir', '-w', default=None,
|
tgwrap/main.py
CHANGED
@@ -84,6 +84,10 @@ class TgWrap():
|
|
84
84
|
)
|
85
85
|
self.tg_source_indicator = None
|
86
86
|
|
87
|
+
# terragrunt do now prefer opentofu but we want this to be a conscious decision
|
88
|
+
if not os.environ.get('TERRAGRUNT_TFPATH'):
|
89
|
+
os.environ['TERRAGRUNT_TFPATH'] = 'terraform'
|
90
|
+
|
87
91
|
def load_yaml_file(self, filepath):
|
88
92
|
try:
|
89
93
|
with open(filepath, 'r') as file:
|
@@ -1768,9 +1772,9 @@ Note:
|
|
1768
1772
|
def clean(self, working_dir):
|
1769
1773
|
""" Clean the temporary files of a terragrunt/terraform project """
|
1770
1774
|
|
1771
|
-
cmd = 'find . -name ".terragrunt-cache" -type d -exec rm -rf {} \; ; ' + \
|
1772
|
-
'find . -name ".terraform" -type d -exec rm -rf {} \; ; ' + \
|
1773
|
-
'find . -name "terragrunt-debug*" -type f -exec rm -rf {} \;'
|
1775
|
+
cmd = r'find . -name ".terragrunt-cache" -type d -exec rm -rf {} \; ; ' + \
|
1776
|
+
r'find . -name ".terraform" -type d -exec rm -rf {} \; ; ' + \
|
1777
|
+
r'find . -name "terragrunt-debug*" -type f -exec rm -rf {} \;'
|
1774
1778
|
|
1775
1779
|
# we see the behaviour that with cleaning up large directories, it returns errorcode=1 upon first try
|
1776
1780
|
# never to shy away from a questionable solution to make your life easier, we just run it again :-)
|
@@ -1819,7 +1823,7 @@ Note:
|
|
1819
1823
|
current_release = match.group(1)
|
1820
1824
|
if current_release not in release_commits:
|
1821
1825
|
# remove the part between ()
|
1822
|
-
pattern = re.compile('\(.*?\) ')
|
1826
|
+
pattern = re.compile(r'\(.*?\) ')
|
1823
1827
|
updated_entry = pattern.sub('', entry)
|
1824
1828
|
release_commits[current_release] = [updated_entry]
|
1825
1829
|
elif current_release:
|
@@ -1,17 +1,15 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tgwrap
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.4
|
4
4
|
Summary: A (terragrunt) wrapper around a (terraform) wrapper around ....
|
5
5
|
Home-page: https://gitlab.com/lunadata/tgwrap
|
6
6
|
License: MIT
|
7
7
|
Keywords: terraform,terragrunt,terrasafe,python
|
8
8
|
Author: Gerco Grandia
|
9
9
|
Author-email: gerco.grandia@4synergy.nl
|
10
|
-
Requires-Python: >=3.
|
10
|
+
Requires-Python: >=3.10,<4.0
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
15
13
|
Classifier: Programming Language :: Python :: 3.10
|
16
14
|
Classifier: Programming Language :: Python :: 3.11
|
17
15
|
Classifier: Programming Language :: Python :: 3.12
|
@@ -0,0 +1,11 @@
|
|
1
|
+
tgwrap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
tgwrap/analyze.py,sha256=TJvAKVIbWl8-8oxpTwXVBWU72q_XQKzUTlyMZ25cV2M,8728
|
3
|
+
tgwrap/cli.py,sha256=ACQe3ghlCLSNw_V4mM3e3Vf93RPjDq-WT0rbEcE1YqY,29725
|
4
|
+
tgwrap/deploy.py,sha256=-fSk-Ix_HqrXY7KQX_L27TnFzIuhBHYv4xYJW6zRDN4,10243
|
5
|
+
tgwrap/main.py,sha256=ib3Jq1lOymem6qwbrXdPEspMFOlh-t5Kv7WeISjrkVE,81360
|
6
|
+
tgwrap/printer.py,sha256=dkcOCPIPB-IP6pn8QMpa06xlcqPFVaDvxnz-QEpDJV0,2663
|
7
|
+
tgwrap-0.9.4.dist-info/LICENSE,sha256=VT-AVxIXt3EQTC-7Hy1uPGnrDNJLqfcgLgJD78fiyx4,1065
|
8
|
+
tgwrap-0.9.4.dist-info/METADATA,sha256=u7BHLxVw_SfxBmgd0PQNPfCtY3c3bERNwlRbBTHxv5w,13235
|
9
|
+
tgwrap-0.9.4.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
10
|
+
tgwrap-0.9.4.dist-info/entry_points.txt,sha256=H8X0PMPmd4aW7Y9iyChZ0Ug6RWGXqhRUvHH-6f6Mxz0,42
|
11
|
+
tgwrap-0.9.4.dist-info/RECORD,,
|
tgwrap-0.9.2.dist-info/RECORD
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
tgwrap/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
tgwrap/analyze.py,sha256=CsSaGv-be6ATy36z9X7x00gpKY59soJys2VbIzD-tmg,8726
|
3
|
-
tgwrap/cli.py,sha256=jP7KuZzqwW2693fVsqEChzIto2T3YyPcSc9kW8ElDWI,29727
|
4
|
-
tgwrap/deploy.py,sha256=-fSk-Ix_HqrXY7KQX_L27TnFzIuhBHYv4xYJW6zRDN4,10243
|
5
|
-
tgwrap/main.py,sha256=9v8c7o32xmmkgEOgrUCiDCcivol4lRzauS6L0pvXdLw,81157
|
6
|
-
tgwrap/printer.py,sha256=dkcOCPIPB-IP6pn8QMpa06xlcqPFVaDvxnz-QEpDJV0,2663
|
7
|
-
tgwrap-0.9.2.dist-info/LICENSE,sha256=VT-AVxIXt3EQTC-7Hy1uPGnrDNJLqfcgLgJD78fiyx4,1065
|
8
|
-
tgwrap-0.9.2.dist-info/METADATA,sha256=n9o0ybKKHmlNA6XVq1HLnqPffzq5idUvIu5V45RoAAY,13334
|
9
|
-
tgwrap-0.9.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
10
|
-
tgwrap-0.9.2.dist-info/entry_points.txt,sha256=H8X0PMPmd4aW7Y9iyChZ0Ug6RWGXqhRUvHH-6f6Mxz0,42
|
11
|
-
tgwrap-0.9.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|