oarepo-runtime 1.5.50__py3-none-any.whl → 1.5.52__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- oarepo_runtime/cli/assets.py +19 -4
- oarepo_runtime/info/views.py +1 -1
- {oarepo_runtime-1.5.50.dist-info → oarepo_runtime-1.5.52.dist-info}/METADATA +1 -1
- {oarepo_runtime-1.5.50.dist-info → oarepo_runtime-1.5.52.dist-info}/RECORD +8 -8
- {oarepo_runtime-1.5.50.dist-info → oarepo_runtime-1.5.52.dist-info}/LICENSE +0 -0
- {oarepo_runtime-1.5.50.dist-info → oarepo_runtime-1.5.52.dist-info}/WHEEL +0 -0
- {oarepo_runtime-1.5.50.dist-info → oarepo_runtime-1.5.52.dist-info}/entry_points.txt +0 -0
- {oarepo_runtime-1.5.50.dist-info → oarepo_runtime-1.5.52.dist-info}/top_level.txt +0 -0
oarepo_runtime/cli/assets.py
CHANGED
@@ -79,7 +79,7 @@ def enumerate_assets():
|
|
79
79
|
return aliases, asset_dirs
|
80
80
|
|
81
81
|
|
82
|
-
|
82
|
+
COMPONENT_LIST_RE = re.compile(
|
83
83
|
r"""
|
84
84
|
^
|
85
85
|
\s*
|
@@ -87,15 +87,29 @@ COMPONENT_RE = re.compile(
|
|
87
87
|
\s*
|
88
88
|
{
|
89
89
|
\s*
|
90
|
+
(
|
91
|
+
@import\s+["'](.*?)["']
|
92
|
+
\s*
|
93
|
+
;
|
94
|
+
)+
|
95
|
+
\s*
|
96
|
+
}""",
|
97
|
+
re.MULTILINE | re.DOTALL | re.VERBOSE,
|
98
|
+
)
|
99
|
+
|
100
|
+
COMPONENT_RE = re.compile(
|
101
|
+
r"""
|
102
|
+
\s*
|
90
103
|
@import\s+["'](.*?)["']
|
91
104
|
\s*
|
92
105
|
;
|
93
106
|
\s*
|
94
|
-
|
107
|
+
""",
|
95
108
|
re.MULTILINE | re.DOTALL | re.VERBOSE,
|
96
109
|
)
|
97
110
|
|
98
111
|
|
112
|
+
|
99
113
|
@assets.command(name="less-components")
|
100
114
|
@click.argument("output_file", default="-")
|
101
115
|
@with_appcontext
|
@@ -110,8 +124,9 @@ def less_components(output_file):
|
|
110
124
|
less_component_files.append(f)
|
111
125
|
components = set()
|
112
126
|
for cmp_file in less_component_files:
|
113
|
-
for
|
114
|
-
|
127
|
+
for component_list in COMPONENT_LIST_RE.findall(cmp_file.read_text()):
|
128
|
+
for s in COMPONENT_RE.findall(component_list[0]):
|
129
|
+
components.add(Path(s).stem)
|
115
130
|
data = {"components": list(sorted(components))}
|
116
131
|
if output_file == "-":
|
117
132
|
print(json.dumps(data, indent=4, ensure_ascii=False))
|
oarepo_runtime/info/views.py
CHANGED
@@ -5,7 +5,7 @@ oarepo_runtime/profile.py,sha256=QzrQoZncjoN74ZZnpkEKakNk08KCzBU7m6y42RN8AMY,163
|
|
5
5
|
oarepo_runtime/proxies.py,sha256=NN_WNj1xuKc-OveoZmzvTFlUonNjSmLIGsv_JUcHGls,285
|
6
6
|
oarepo_runtime/uow.py,sha256=iyF3R2oCPSVUu38GXoxZallgRD-619q1fWTb8sSaeyQ,4412
|
7
7
|
oarepo_runtime/cli/__init__.py,sha256=daAODgUAB9Nb0O0Kg8vSgJIPKJm92EHMTRuoKwxBCug,373
|
8
|
-
oarepo_runtime/cli/assets.py,sha256=
|
8
|
+
oarepo_runtime/cli/assets.py,sha256=uKhR2ywDR3RgGyWXuE2X-YNG0Cx-QxXJxHkAJEVV-_Y,3589
|
9
9
|
oarepo_runtime/cli/base.py,sha256=94RBTa8TOSPxEyEUmYLGXaWen-XktP2-MIbTtZSlCZo,544
|
10
10
|
oarepo_runtime/cli/cf.py,sha256=W0JEJK2JqKubQw8qtZJxohmADDRUBode4JZAqYLDGvc,339
|
11
11
|
oarepo_runtime/cli/check.py,sha256=sCe2PeokSHvNOXHFZ8YHF8NMhsu5nYjyuZuvXHJ6X18,5092
|
@@ -41,7 +41,7 @@ oarepo_runtime/datastreams/writers/validation_errors.py,sha256=wOCXdniR6so_4Expd
|
|
41
41
|
oarepo_runtime/datastreams/writers/yaml.py,sha256=XchUJHQ58E2Mfgs8elImXbL38jFtI8Hfoye6yaR0gKI,1482
|
42
42
|
oarepo_runtime/i18n/__init__.py,sha256=h0knW_HwiyIt5TBHfdGqN7_BBYfpz1Fw6zhVy0C28fM,111
|
43
43
|
oarepo_runtime/info/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
44
|
-
oarepo_runtime/info/views.py,sha256=
|
44
|
+
oarepo_runtime/info/views.py,sha256=hgnHmNmT993zU_Id5Dsa8_u3hcUNdD6x3oXqnqWdM38,11117
|
45
45
|
oarepo_runtime/records/__init__.py,sha256=3vzRsAPxl4d5QOnGyls-vUg4E6PunmR4ACObtacMAIQ,1038
|
46
46
|
oarepo_runtime/records/dumpers/__init__.py,sha256=OmzNhLdMNKibmCksnj9eTX9xPBG30dziiK3j3bAAp3k,233
|
47
47
|
oarepo_runtime/records/dumpers/edtf_interval.py,sha256=YCShZAoqBQYaxVilEVotS-jXZsxxoXO67yu2urhkaMA,1198
|
@@ -119,9 +119,9 @@ oarepo_runtime/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
119
119
|
oarepo_runtime/utils/functools.py,sha256=gKS9YZtlIYcDvdNA9cmYO00yjiXBYV1jg8VpcRUyQyg,1324
|
120
120
|
oarepo_runtime/utils/path.py,sha256=V1NVyk3m12_YLbj7QHYvUpE1wScO78bYsX1LOLeXDkI,3108
|
121
121
|
tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
122
|
-
oarepo_runtime-1.5.
|
123
|
-
oarepo_runtime-1.5.
|
124
|
-
oarepo_runtime-1.5.
|
125
|
-
oarepo_runtime-1.5.
|
126
|
-
oarepo_runtime-1.5.
|
127
|
-
oarepo_runtime-1.5.
|
122
|
+
oarepo_runtime-1.5.52.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
|
123
|
+
oarepo_runtime-1.5.52.dist-info/METADATA,sha256=3Cs1djLllO6XGjBGXemmgjd5G-lQi6GIeLTMFzsHlg4,4720
|
124
|
+
oarepo_runtime-1.5.52.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
125
|
+
oarepo_runtime-1.5.52.dist-info/entry_points.txt,sha256=QrlXAKuPDVBinaSh_v3yO9_Nb9ZNmJCJ0VFcCW-z0Jg,327
|
126
|
+
oarepo_runtime-1.5.52.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
|
127
|
+
oarepo_runtime-1.5.52.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|