cici-tools 0.18.0__py3-none-any.whl → 0.18.2__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.
cici/_version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.18.0'
32
- __version_tuple__ = version_tuple = (0, 18, 0)
31
+ __version__ = version = '0.18.2'
32
+ __version_tuple__ = version_tuple = (0, 18, 2)
33
33
 
34
- __commit_id__ = commit_id = 'g36384f791'
34
+ __commit_id__ = commit_id = 'g683345939'
@@ -46,13 +46,21 @@ def make_scalar_string(line: str, quote: bool = False):
46
46
 
47
47
  # fix extra - >- between lines accidentally created with echo commands
48
48
  if unindented.startswith("echo "):
49
- # inline if short and simple
50
- if len(unindented) < 100 and not any(
51
- sym in unindented for sym in ("&&", ";", "\\", "|")
49
+ stripped = unindented.strip()
50
+
51
+ if len(stripped) < 100 and not any(
52
+ sym in stripped for sym in ("&&", ";", "\\", "|")
52
53
  ):
53
- return unindented
54
+ return stripped
54
55
 
55
- return FoldedScalarString(wrap_if_long(unindented))
56
+ folded_scalar = FoldedScalarString(stripped)
57
+
58
+ # If its piping "echo... | docker login ...", fold at the pipe for correct display
59
+ if " | " in stripped:
60
+ pipe_position = stripped.index(" | ")
61
+ folded_scalar.fold_pos = [pipe_position] # type: ignore[attr-defined]
62
+
63
+ return folded_scalar
56
64
 
57
65
  # Folding long lines logic (like a script that is super long so that it does not do anything weird in the folding process)
58
66
  if unindented.startswith(("docker ", "helm ", "tar ", "curl ")):
@@ -1,12 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cici-tools
3
- Version: 0.18.0
3
+ Version: 0.18.2
4
4
  Summary: Continuous Integration Catalog Interface
5
5
  Author-email: Digital Safety Research Institute <contact@dsri.org>
6
6
  License: Apache-2.0
7
7
  Project-URL: Home, https://gitlab.com/saferatday0/cici
8
8
  Project-URL: Issues, https://gitlab.com/saferatday0/cici/-/issues
9
- Keywords: ci,pipeline,python
10
9
  Classifier: Development Status :: 1 - Planning
11
10
  Classifier: Intended Audience :: Developers
12
11
  Classifier: Topic :: Software Development :: Build Tools
@@ -28,6 +27,12 @@ Requires-Dist: msgspec
28
27
  Requires-Dist: python-decouple
29
28
  Requires-Dist: ruamel.yaml
30
29
  Requires-Dist: termcolor
30
+ Provides-Extra: test
31
+ Requires-Dist: pytest; extra == "test"
32
+ Provides-Extra: keywords
33
+ Requires-Dist: ci; extra == "keywords"
34
+ Requires-Dist: pipeline; extra == "keywords"
35
+ Requires-Dist: python; extra == "keywords"
31
36
  Dynamic: license-file
32
37
 
33
38
  # saferatday0 cici
@@ -1,6 +1,6 @@
1
1
  cici/__init__.py,sha256=wdYYpZKxK2omc_mRJgPj86Ec-QwoB4noZzlk71sBjnk,87
2
2
  cici/__main__.py,sha256=TWDBrcS5vXSclLWLm0Iu3uUXOkDw0PzcJ8a0zd7_ClU,150
3
- cici/_version.py,sha256=PTW5ceeoiZ30PZOYQdG23n16b6duopk5WpCV1sEAxcY,714
3
+ cici/_version.py,sha256=t0gWKvmyeGXPXryCGjU3gEoAkpnzLZQF0MmaO3fuVX0,714
4
4
  cici/constants.py,sha256=ydShHTAbuanWWXeg9tJZ5GLm65M41AKmIibUheKV5nw,913
5
5
  cici/exceptions.py,sha256=JMpcD5YjYwKdn65D0iOEchXiAgIVsKApAyngCTwVgI4,139
6
6
  cici/main.py,sha256=ceH9s7i2XdB-mpUtDWuzLVn9TZHiwmsq-daZOgB9oRI,748
@@ -24,7 +24,7 @@ cici/providers/gitlab/models.py,sha256=zPOLSfb811yVYgkKNirAEhcAPkoBwE-r_fmxMfxn8
24
24
  cici/providers/gitlab/normalizers.py,sha256=EFQiJzRDkoahes0zwIMahuVC3DOy9A97eZDhMXdamno,4762
25
25
  cici/providers/gitlab/serializers.py,sha256=heczGlwcmKesugYX8PhwIhVIw8kExsfXKsC52sAwLrc,11533
26
26
  cici/providers/gitlab/utils.py,sha256=NUZ25rAosSWQyWh7m3xhiHRotqVl1krckZL58yR0LKQ,651
27
- cici/providers/gitlab/yaml_style.py,sha256=8IAkk5Hv3KfqAp6eJymsG8RXs8MBsnYUeonokivfx40,13827
27
+ cici/providers/gitlab/yaml_style.py,sha256=emgrHqjhMmAWhlgtYJ8NgIYRntSaXQC8T5QDehSbOCM,14101
28
28
  cici/schema/LICENSE.gitlab,sha256=0N7FHuinuoGBqZE6aUlD84yw3CGylx8lyfzertgmtY0,2001
29
29
  cici/schema/__init__.py,sha256=wdYYpZKxK2omc_mRJgPj86Ec-QwoB4noZzlk71sBjnk,87
30
30
  cici/schema/gitlab-ci.json,sha256=BCymn2i9JOrUGS2SsvpoXCH8JcofQz9Rhux46zEnS_8,70638
@@ -39,10 +39,10 @@ cici/templates/target-table.md.j2,sha256=NYspLbP3ap1706WnehZRtu6a2uxL_mKf7zfm3y0
39
39
  cici/templates/targets.md.j2,sha256=k-lkfReFJMCu9t2SjuD5YJ-Q_KECJxdY7v-0TWDTaCM,116
40
40
  cici/templates/variable-list.md.j2,sha256=M9r3j7d8H171okQNj8j4pc92kMdeWSRoeZQ5QB3NUTQ,613
41
41
  cici/templates/variables.md.j2,sha256=2DquXagNupqBkD95_3ZI4guJOK-eG_igaaMdRIUDrcE,84
42
- cici_tools-0.18.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
43
- cici_tools-0.18.0.dist-info/licenses/NOTICE,sha256=dIBr-7sfvnoYXYvgHIozlRJTLD4EHORRtRJtIe4znW8,55
44
- cici_tools-0.18.0.dist-info/METADATA,sha256=T2W5kElsMmBy2N-UF8AYulOr0DTpcyAqU9hTBNHM0fw,4178
45
- cici_tools-0.18.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
- cici_tools-0.18.0.dist-info/entry_points.txt,sha256=CuBAwYG3z7qOKm4IYARjZzdX5fytMLKyr59HLLJx_Is,44
47
- cici_tools-0.18.0.dist-info/top_level.txt,sha256=sv8xIjFuuqtyBMoyzueczNvZo_--q12r64Zc0lGKKF8,5
48
- cici_tools-0.18.0.dist-info/RECORD,,
42
+ cici_tools-0.18.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
43
+ cici_tools-0.18.2.dist-info/licenses/NOTICE,sha256=dIBr-7sfvnoYXYvgHIozlRJTLD4EHORRtRJtIe4znW8,55
44
+ cici_tools-0.18.2.dist-info/METADATA,sha256=yDcvhKVE_HuF9LRbyVMh_E4BljErZeCfBbfzDr-1Qxs,4361
45
+ cici_tools-0.18.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
+ cici_tools-0.18.2.dist-info/entry_points.txt,sha256=CuBAwYG3z7qOKm4IYARjZzdX5fytMLKyr59HLLJx_Is,44
47
+ cici_tools-0.18.2.dist-info/top_level.txt,sha256=sv8xIjFuuqtyBMoyzueczNvZo_--q12r64Zc0lGKKF8,5
48
+ cici_tools-0.18.2.dist-info/RECORD,,