From 7e17c30fb3b5a366e542e37a324a102d57e6ebaf Mon Sep 17 00:00:00 2001 From: dmou <239393496+admin-dmou-ps@users.noreply.github.com> Date: Fri, 24 Jul 2026 17:10:43 -0400 Subject: [PATCH 1/3] set stage api urls to stage-blue for us and eu --- src/polyswarm/client/polyswarm.py | 10 +++++----- tests/api_uri_test.py | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/polyswarm/client/polyswarm.py b/src/polyswarm/client/polyswarm.py index 48bd1e1..1a3f83f 100644 --- a/src/polyswarm/client/polyswarm.py +++ b/src/polyswarm/client/polyswarm.py @@ -44,14 +44,14 @@ PROD_API_URI = 'https://api.polyswarm.network/v3' # Convenience environment shortcuts so callers can write `--stage` instead of -# `--api-uri https://api.stage-v3.polyswarm.network/v3`. Keys are the click +# `--api-uri https://api.stage-blue.polyswarm.network/v3`. Keys are the click # parameter names (click maps `--prod-eu` -> `prod_eu`). API_URI_SHORTCUTS = { 'prod': PROD_API_URI, - 'stage': 'https://api.stage-v3.polyswarm.network/v3', + 'stage': 'https://api.stage-blue.polyswarm.network/v3', 'local': 'http://localhost:9696/v3', 'prod_eu': 'https://api.prod-eu-v3.polyswarm.network/v3', - 'stage_eu': 'https://api.stage-eu-v3.polyswarm.network/v3', + 'stage_eu': 'https://api.stage-eu-blue.polyswarm.network/v3', } _SHORTCUT_FLAGS = { @@ -184,13 +184,13 @@ def invoke(self, ctx): @click.option('--prod', is_flag=True, default=False, help='Target the production API (https://api.polyswarm.network/v3) — same as the default.') @click.option('--stage', is_flag=True, default=False, - help='Target the US staging API (https://api.stage-v3.polyswarm.network/v3).') + help='Target the US staging API (https://api.stage-blue.polyswarm.network/v3).') @click.option('--local', is_flag=True, default=False, help='Target a local API (http://localhost:9696/v3).') @click.option('--prod-eu', 'prod_eu', is_flag=True, default=False, help='Target the EU production API (https://api.prod-eu-v3.polyswarm.network/v3).') @click.option('--stage-eu', 'stage_eu', is_flag=True, default=False, - help='Target the EU staging API (https://api.stage-eu-v3.polyswarm.network/v3).') + help='Target the EU staging API (https://api.stage-eu-blue.polyswarm.network/v3).') @click.option('-o', '--output-file', type=click.File('w', encoding='utf8'), help='Path to output file.') @click.option('--output-format', '--fmt', default='text', type=click.Choice(formatters.keys()), help='Output format. Human-readable text or JSON.') diff --git a/tests/api_uri_test.py b/tests/api_uri_test.py index 18ca699..2ce945d 100644 --- a/tests/api_uri_test.py +++ b/tests/api_uri_test.py @@ -48,10 +48,10 @@ def test_env_api_uri_used_when_no_flag(self): def test_each_shortcut_resolves(self): expected = { 'prod': 'https://api.polyswarm.network/v3', - 'stage': 'https://api.stage-v3.polyswarm.network/v3', + 'stage': 'https://api.stage-blue.polyswarm.network/v3', 'local': 'http://localhost:9696/v3', 'prod_eu': 'https://api.prod-eu-v3.polyswarm.network/v3', - 'stage_eu': 'https://api.stage-eu-v3.polyswarm.network/v3', + 'stage_eu': 'https://api.stage-eu-blue.polyswarm.network/v3', } # guard against the constant drifting from the verified ingress hosts assert API_URI_SHORTCUTS == expected @@ -124,7 +124,7 @@ def test_shortcut_beats_env_var(self): # --- each shortcut --- def test_stage_shortcut(self): - assert self._resolved_base('--stage') == 'https://api.stage-v3.polyswarm.network/v3' + assert self._resolved_base('--stage') == 'https://api.stage-blue.polyswarm.network/v3' def test_local_shortcut(self): assert self._resolved_base('--local') == 'http://localhost:9696/v3' From 271e642fdeb4094d580a72f54ebfdb20ae967f7f Mon Sep 17 00:00:00 2001 From: dmou <239393496+admin-dmou-ps@users.noreply.github.com> Date: Fri, 24 Jul 2026 17:21:40 -0400 Subject: [PATCH 2/3] update eu shortcut test --- tests/api_uri_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api_uri_test.py b/tests/api_uri_test.py index 2ce945d..b9809e3 100644 --- a/tests/api_uri_test.py +++ b/tests/api_uri_test.py @@ -133,7 +133,7 @@ def test_prod_eu_shortcut(self): assert self._resolved_base('--prod-eu') == 'https://api.prod-eu-v3.polyswarm.network/v3' def test_stage_eu_shortcut(self): - assert self._resolved_base('--stage-eu') == 'https://api.stage-eu-v3.polyswarm.network/v3' + assert self._resolved_base('--stage-eu') == 'https://api.stage-eu-blue.polyswarm.network/v3' def test_prod_shortcut_matches_default(self): assert self._resolved_base('--prod') == 'https://api.polyswarm.network/v3' From 057645d0bd235685722e37d54831e69553a3d9bc Mon Sep 17 00:00:00 2001 From: dmou <239393496+admin-dmou-ps@users.noreply.github.com> Date: Fri, 24 Jul 2026 17:59:43 -0400 Subject: [PATCH 3/3] bump version here --- pyproject.toml | 4 ++-- src/polyswarm/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 933b174..c312fd7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] name = "polyswarm" -version = "4.2.0" +version = "4.2.1" description = "CLI for using the PolySwarm Customer APIs" readme = "README.md" authors = [{ name = "PolySwarm Developers", email = "info@polyswarm.io" }] @@ -51,7 +51,7 @@ include-package-data = true where = ["src"] [tool.bumpversion] -current_version = "4.2.0" +current_version = "4.2.1" commit = true tag = false sign_tags = true diff --git a/src/polyswarm/__init__.py b/src/polyswarm/__init__.py index ea5d65f..0d6a4f2 100644 --- a/src/polyswarm/__init__.py +++ b/src/polyswarm/__init__.py @@ -1 +1 @@ -__version__ = '4.2.0' +__version__ = '4.2.1'