Skip to content

Commit 95f0fa7

Browse files
authored
Merge pull request #114 from polywrap/nk/cd
feat: add client-config-builder to cd pipeline
2 parents d83bdd3 + 3b38e12 commit 95f0fa7

4 files changed

Lines changed: 51 additions & 65 deletions

File tree

packages/polywrap-client-config-builder/poetry.lock

Lines changed: 17 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/polywrap-client-config-builder/polywrap_client_config_builder/py.typed

Whitespace-only changes.

packages/polywrap-client-config-builder/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ readme = "README.md"
1212
[tool.poetry.dependencies]
1313
python = "^3.10"
1414
polywrap-core = { path = "../polywrap-core", develop = true }
15+
polywrap-uri-resolvers = { path = "../polywrap-uri-resolvers", develop = true }
1516

1617
[tool.poetry.dev-dependencies]
17-
polywrap-client = { path = "../polywrap-client", develop = true }
1818
pytest = "^7.1.2"
1919
pytest-asyncio = "^0.19.0"
2020
pylint = "^2.15.4"

scripts/publishPackages.sh

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function waitForPackagePublish() {
140140
fi
141141
}
142142

143-
# Patching Verion of polywrap-msgpack
143+
# Patching Version of polywrap-msgpack
144144
echo "Patching Version of polywrap-msgpack to $1"
145145
patchVersion polywrap-msgpack $1
146146
patchVersionResult=$?
@@ -165,7 +165,7 @@ if [ "$waitForPackagePublishResult" -ne "0" ]; then
165165
exit 1
166166
fi
167167

168-
# Patching Verion of polywrap-manifest
168+
# Patching Version of polywrap-manifest
169169
echo "Patching Version of polywrap-manifest to $1"
170170
deps=(polywrap-msgpack)
171171
patchVersion polywrap-manifest $1 deps
@@ -191,7 +191,7 @@ if [ "$waitForPackagePublishResult" -ne "0" ]; then
191191
exit 1
192192
fi
193193

194-
# Patching Verion of polywrap-core
194+
# Patching Version of polywrap-core
195195
echo "Patching Version of polywrap-core to $1"
196196
deps=(polywrap-manifest)
197197
patchVersion polywrap-core $1 deps
@@ -217,7 +217,7 @@ if [ "$waitForPackagePublishResult" -ne "0" ]; then
217217
exit 1
218218
fi
219219

220-
# Patching Verion of polywrap-wasm
220+
# Patching Version of polywrap-wasm
221221
echo "Patching Version of polywrap-wasm to $1"
222222
deps=(polywrap-msgpack polywrap-manifest polywrap-core)
223223
patchVersion polywrap-wasm $1 deps
@@ -243,7 +243,7 @@ if [ "$waitForPackagePublishResult" -ne "0" ]; then
243243
exit 1
244244
fi
245245

246-
# Patching Verion of polywrap-plugin
246+
# Patching Version of polywrap-plugin
247247
echo "Patching Version of polywrap-plugin to $1"
248248
deps=(polywrap-msgpack polywrap-manifest polywrap-core)
249249
patchVersion polywrap-plugin $1 deps
@@ -269,7 +269,7 @@ if [ "$waitForPackagePublishResult" -ne "0" ]; then
269269
exit 1
270270
fi
271271

272-
# Patching Verion of polywrap-uri-resolvers
272+
# Patching Version of polywrap-uri-resolvers
273273
echo "Patching Version of polywrap-uri-resolvers to $1"
274274
deps=(polywrap-wasm polywrap-core)
275275
patchVersion polywrap-uri-resolvers $1 deps
@@ -295,7 +295,33 @@ if [ "$waitForPackagePublishResult" -ne "0" ]; then
295295
exit 1
296296
fi
297297

298-
# Patching Verion of polywrap-client
298+
# Patching Version of polywrap-client-config-builder
299+
echo "Patching Version of polywrap-client-config-builder to $1"
300+
deps=(polywrap-core polywrap-uri-resolvers)
301+
patchVersion polywrap-client-config-builder $1 deps
302+
patchVersionResult=$?
303+
if [ "$patchVersionResult" -ne "0" ]; then
304+
echo "Failed to bump version of polywrap-client-config-builder to $1"
305+
exit 1
306+
fi
307+
308+
echo "Publishing polywrap-client-config-builder"
309+
publishPackage polywrap-client-config-builder $1 $2 $3
310+
publishResult=$?
311+
if [ "$publishResult" -ne "0" ]; then
312+
echo "Failed to publish polywrap-client-config-builder"
313+
exit 1
314+
fi
315+
316+
echo "Waiting for the package to be published"
317+
waitForPackagePublish polywrap-client-config-builder $1
318+
waitForPackagePublishResult=$?
319+
if [ "$waitForPackagePublishResult" -ne "0" ]; then
320+
echo "Failed to publish polywrap-client-config-builder"
321+
exit 1
322+
fi
323+
324+
# Patching Version of polywrap-client
299325
echo "Patching Version of polywrap-client to $1"
300326
deps=(polywrap-msgpack polywrap-manifest polywrap-core polywrap-uri-resolvers)
301327
patchVersion polywrap-client $1 deps

0 commit comments

Comments
 (0)