Skip to content

Commit 2252721

Browse files
authored
fix: remove force parameter from publish_provider (#25)
Part of PRA-264. The publish flow no longer supports forcing duplicate source hashes — failed versions are cleaned up on re-publish instead.
1 parent 8846293 commit 2252721

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/pragma_sdk/client.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,6 @@ def publish_provider(
574574
version: str,
575575
changelog: str | None = None,
576576
*,
577-
force: bool = False,
578577
display_name: str | None = None,
579578
description: str | None = None,
580579
tags: list[str] | None = None,
@@ -586,7 +585,6 @@ def publish_provider(
586585
tarball: Gzipped tarball containing provider source code.
587586
version: Version string for this release.
588587
changelog: Optional changelog text.
589-
force: If True, allow overwriting an existing version.
590588
display_name: Human-friendly provider name for the catalog listing.
591589
description: Provider description for the catalog listing.
592590
tags: Tags for the catalog listing.
@@ -603,9 +601,6 @@ def publish_provider(
603601
if changelog is not None:
604602
data["changelog"] = changelog
605603

606-
if force:
607-
data["force"] = "true"
608-
609604
if display_name is not None:
610605
data["display_name"] = display_name
611606

@@ -1324,7 +1319,6 @@ async def publish_provider(
13241319
version: str,
13251320
changelog: str | None = None,
13261321
*,
1327-
force: bool = False,
13281322
display_name: str | None = None,
13291323
description: str | None = None,
13301324
tags: list[str] | None = None,
@@ -1336,7 +1330,6 @@ async def publish_provider(
13361330
tarball: Gzipped tarball containing provider source code.
13371331
version: Version string for this release.
13381332
changelog: Optional changelog text.
1339-
force: If True, allow overwriting an existing version.
13401333
display_name: Human-friendly provider name for the catalog listing.
13411334
description: Provider description for the catalog listing.
13421335
tags: Tags for the catalog listing.
@@ -1353,9 +1346,6 @@ async def publish_provider(
13531346
if changelog is not None:
13541347
data["changelog"] = changelog
13551348

1356-
if force:
1357-
data["force"] = "true"
1358-
13591349
if display_name is not None:
13601350
data["display_name"] = display_name
13611351

0 commit comments

Comments
 (0)