polyapi-python 0.3.9.dev1__py3-none-any.whl → 0.3.9.dev2__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.
- polyapi/deployables.py +2 -2
- polyapi/prepare.py +5 -3
- {polyapi_python-0.3.9.dev1.dist-info → polyapi_python-0.3.9.dev2.dist-info}/METADATA +1 -1
- {polyapi_python-0.3.9.dev1.dist-info → polyapi_python-0.3.9.dev2.dist-info}/RECORD +7 -7
- {polyapi_python-0.3.9.dev1.dist-info → polyapi_python-0.3.9.dev2.dist-info}/WHEEL +0 -0
- {polyapi_python-0.3.9.dev1.dist-info → polyapi_python-0.3.9.dev2.dist-info}/licenses/LICENSE +0 -0
- {polyapi_python-0.3.9.dev1.dist-info → polyapi_python-0.3.9.dev2.dist-info}/top_level.txt +0 -0
polyapi/deployables.py
CHANGED
|
@@ -118,13 +118,13 @@ def get_all_deployable_files_windows(config: PolyDeployConfig) -> List[str]:
|
|
|
118
118
|
pattern = ' '.join(f"/C:\"polyConfig: {name}\"" for name in config["type_names"]) or '/C:"polyConfig"'
|
|
119
119
|
|
|
120
120
|
exclude_command = f" | findstr /V /I \"{exclude_pattern}\"" if exclude_pattern else ''
|
|
121
|
-
search_command = f" | findstr /
|
|
121
|
+
search_command = f" | findstr /M /I /F:/ {pattern}"
|
|
122
122
|
|
|
123
123
|
result = []
|
|
124
124
|
for dir_path in config["include_dirs"]:
|
|
125
125
|
if dir_path != '.':
|
|
126
126
|
include_pattern = " ".join(f"{dir_path}*.{f}" for f in config["include_files_or_extensions"]) or "*"
|
|
127
|
-
dir_command = f"dir {include_pattern} /S /P /B
|
|
127
|
+
dir_command = f"dir {include_pattern} /S /P /B"
|
|
128
128
|
full_command = f"{dir_command}{exclude_command}{search_command}"
|
|
129
129
|
try:
|
|
130
130
|
output = subprocess.check_output(full_command, shell=True, text=True)
|
polyapi/prepare.py
CHANGED
|
@@ -138,11 +138,13 @@ def prepare_deployables(lazy: bool = False, disable_docs: bool = False, disable_
|
|
|
138
138
|
write_updated_deployable(deployable, disable_docs)
|
|
139
139
|
# Re-stage any updated staged files.
|
|
140
140
|
staged = subprocess.check_output('git diff --name-only --cached', shell=True, text=True, ).split('\n')
|
|
141
|
+
rootPath = subprocess.check_output('git rev-parse --show-toplevel', shell=True, text=True).replace('\n', '')
|
|
141
142
|
for deployable in dirty_deployables:
|
|
142
143
|
try:
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
deployableName = deployable["file"].replace('\\', '/').replace(f"{rootPath}/", '')
|
|
145
|
+
if deployableName in staged:
|
|
146
|
+
print(f'Staging {deployableName}')
|
|
147
|
+
subprocess.run(['git', 'add', deployableName])
|
|
146
148
|
except:
|
|
147
149
|
print('Warning: File staging failed, check that all files are staged properly.')
|
|
148
150
|
|
|
@@ -6,7 +6,7 @@ polyapi/cli.py,sha256=unKqAoZ1hTGAeyYRfNQ6jO15Um7N4F95k__1qFue5bI,10659
|
|
|
6
6
|
polyapi/client.py,sha256=DW6ljG_xCwAo2yz23A9QfLooE6ZUDvSpdA4e_dCQjiQ,1418
|
|
7
7
|
polyapi/config.py,sha256=cAMv2n9tGN_BTvqt7V32o5F86qRhxAKyey_PoId2D8s,7638
|
|
8
8
|
polyapi/constants.py,sha256=sc-FnS0SngBLvSu1ZWMs0UCf9EYD1u1Yhfr-sZXGLns,607
|
|
9
|
-
polyapi/deployables.py,sha256=
|
|
9
|
+
polyapi/deployables.py,sha256=vaZvdkPpwgjVtRXD4IxFsJ90Qmgs-AOIB3ygy4QCG78,12100
|
|
10
10
|
polyapi/error_handler.py,sha256=I_e0iz6VM23FLVQWJljxs2NGcl_OODbi43OcbnqBlp8,2398
|
|
11
11
|
polyapi/exceptions.py,sha256=Zh7i7eCUhDuXEdUYjatkLFTeZkrx1BJ1P5ePgbJ9eIY,89
|
|
12
12
|
polyapi/execute.py,sha256=sjI6BMBYPSCD6UngV9DzpJIRSU6p02aShNaTXhDExtY,3457
|
|
@@ -14,7 +14,7 @@ polyapi/function_cli.py,sha256=H0sVrbvRBXw_xeApe2MvQw8p_xE7jVTTOU-07Dg041A,4220
|
|
|
14
14
|
polyapi/generate.py,sha256=slCw9AOvQHQ8UtEaumFI1NoRvjH2Dj3Y33u7imQqi8c,19521
|
|
15
15
|
polyapi/parser.py,sha256=20ZE7kSXx3UL7QVSIYYxzsnJlygVbsaDAg9q7c41WxQ,20695
|
|
16
16
|
polyapi/poly_schemas.py,sha256=fZ6AGvHcOKQJtlrzSuzeBNed5DxPMA2dJGdJvuFCHWM,9066
|
|
17
|
-
polyapi/prepare.py,sha256=
|
|
17
|
+
polyapi/prepare.py,sha256=NQzpMIoakNovStvOGOmqSYIpTwiWXaweNSE9se10A2E,7420
|
|
18
18
|
polyapi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
polyapi/rendered_spec.py,sha256=nJEj2vRgG3N20fU4s-ThRtOIwAuTzXwXuOBIkXljDVc,2240
|
|
20
20
|
polyapi/schema.py,sha256=-mtRV5iL3CV0X3phXhGYFV8sLz0KouTACOKWyGO9Pwc,5309
|
|
@@ -24,8 +24,8 @@ polyapi/typedefs.py,sha256=vJLZYBNmR3i8yQEDYlu1UfvtJyg6E1R1QyGlgFUm2rU,2362
|
|
|
24
24
|
polyapi/utils.py,sha256=1F7Dwst_PbPuUBUSxx5r8d2DHDgqHtu07QW92T_YSdw,12454
|
|
25
25
|
polyapi/variables.py,sha256=VAp2d5I-4WLYHCPF1w3pqU4-z8_XRQpYW-ddOw6G5S4,7268
|
|
26
26
|
polyapi/webhook.py,sha256=gWYXHz0PnB_uY_lnHeUlg3EIHfTGwF-Tc6UaatldZBw,5333
|
|
27
|
-
polyapi_python-0.3.9.
|
|
28
|
-
polyapi_python-0.3.9.
|
|
29
|
-
polyapi_python-0.3.9.
|
|
30
|
-
polyapi_python-0.3.9.
|
|
31
|
-
polyapi_python-0.3.9.
|
|
27
|
+
polyapi_python-0.3.9.dev2.dist-info/licenses/LICENSE,sha256=6b_I7aPVp8JXhqQwdw7_B84Ca0S4JGjHj0sr_1VOdB4,1068
|
|
28
|
+
polyapi_python-0.3.9.dev2.dist-info/METADATA,sha256=usG3SiNj-dqnbOg8FPn3c_lW8gTYTNgKKnWqPuhlrew,5784
|
|
29
|
+
polyapi_python-0.3.9.dev2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
30
|
+
polyapi_python-0.3.9.dev2.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
|
|
31
|
+
polyapi_python-0.3.9.dev2.dist-info/RECORD,,
|
|
File without changes
|
{polyapi_python-0.3.9.dev1.dist-info → polyapi_python-0.3.9.dev2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|