This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-releases-client.git


The following commit(s) were added to refs/heads/main by this push:
     new 10c4e12  Migrate code to use localhost.apache.org
10c4e12 is described below

commit 10c4e12516531cf138aba07865ddad6ea30fd667
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Jul 28 15:34:43 2025 +0100

    Migrate code to use localhost.apache.org
---
 pyproject.toml          | 4 ++--
 src/atrclient/client.py | 4 +++-
 tests/cli_keys.t        | 4 ++--
 tests/cli_slow_task.t   | 6 +++---
 tests/cli_ssh.t         | 6 +++---
 tests/cli_workflow.t    | 4 ++--
 uv.lock                 | 4 ++--
 7 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index e474c1c..5690345 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -11,7 +11,7 @@ build-backend = "hatchling.build"
 
 [project]
 name            = "apache-trusted-releases"
-version         = "0.20250725.1943"
+version         = "0.20250728.1433"
 description     = "ATR CLI and Python API"
 readme          = "README.md"
 requires-python = ">=3.13"
@@ -74,4 +74,4 @@ select = [
 ]
 
 [tool.uv]
-exclude-newer = "2025-07-25T19:43:00Z"
+exclude-newer = "2025-07-28T14:33:00Z"
diff --git a/src/atrclient/client.py b/src/atrclient/client.py
index 7b81e82..575a42b 100755
--- a/src/atrclient/client.py
+++ b/src/atrclient/client.py
@@ -1060,7 +1060,9 @@ def config_get(config: dict[str, Any], parts: list[str]) 
-> Any | None:
 def config_host_get() -> tuple[str, bool]:
     with config_lock() as config:
         host = config.get("atr", {}).get("host", "release-test.apache.org")
-    verify_ssl = not ((host == "127.0.0.1") or host.startswith("127.0.0.1:"))
+    local_domains = ["localhost.apache.org", "127.0.0.1"]
+    domain = host.split(":")[0]
+    verify_ssl = domain not in local_domains
     return host, verify_ssl
 
 
diff --git a/tests/cli_keys.t b/tests/cli_keys.t
index e6c8236..dce0ce8 100644
--- a/tests/cli_keys.t
+++ b/tests/cli_keys.t
@@ -1,5 +1,5 @@
-$ atr set atr.host 127.0.0.1:8080
-Set atr.host to "127.0.0.1:8080".
+$ atr set atr.host localhost.apache.org:8080
+Set atr.host to "localhost.apache.org:8080".
 
 $ atr dev user
 <?user?>
diff --git a/tests/cli_slow_task.t b/tests/cli_slow_task.t
index 7a6f822..bbf4803 100644
--- a/tests/cli_slow_task.t
+++ b/tests/cli_slow_task.t
@@ -1,5 +1,5 @@
-$ atr set atr.host 127.0.0.1:8080
-Set atr.host to "127.0.0.1:8080".
+$ atr set atr.host localhost.apache.org:8080
+Set atr.host to "localhost.apache.org:8080".
 
 $ atr dev user
 <?user?>
@@ -29,7 +29,7 @@ $ atr upload tooling-test-example 0.3+slow 
/deliberately_slow_ATR_task_filename.
 ! atr vote start tooling-test-example 0.3+slow 00002 -m "<!user!>@apache.org"
 <.stderr.>
 atr: error: Error message from the API:
-400 https://127.0.0.1:8080/api/vote/start
+400 https://localhost.apache.org:8080/api/vote/start
 {
   "error": "All checks must be completed before starting a vote"
 }
diff --git a/tests/cli_ssh.t b/tests/cli_ssh.t
index 7f87b4f..aec05a1 100644
--- a/tests/cli_ssh.t
+++ b/tests/cli_ssh.t
@@ -1,5 +1,5 @@
-$ atr set atr.host 127.0.0.1:8080
-Set atr.host to "127.0.0.1:8080".
+$ atr set atr.host localhost.apache.org:8080
+Set atr.host to "localhost.apache.org:8080".
 
 $ atr dev user
 <?user?>
@@ -19,7 +19,7 @@ $ atr ssh list
 ! atr ssh add invalid-key
 <.stderr.>
 atr: error: Error message from the API:
-500 https://127.0.0.1:8080/api/ssh/add
+500 https://localhost.apache.org:8080/api/ssh/add
 {
   "error": "Invalid SSH key format"
 }
diff --git a/tests/cli_workflow.t b/tests/cli_workflow.t
index 25d60d7..bce9b7a 100644
--- a/tests/cli_workflow.t
+++ b/tests/cli_workflow.t
@@ -1,5 +1,5 @@
-$ atr set atr.host 127.0.0.1:8080
-Set atr.host to "127.0.0.1:8080".
+$ atr set atr.host localhost.apache.org:8080
+Set atr.host to "localhost.apache.org:8080".
 
 $ atr dev user
 <?user?>
diff --git a/uv.lock b/uv.lock
index a6098d3..14311ba 100644
--- a/uv.lock
+++ b/uv.lock
@@ -2,7 +2,7 @@ version = 1
 requires-python = ">=3.13"
 
 [options]
-exclude-newer = "2025-07-25T19:43:00Z"
+exclude-newer = "2025-07-28T14:33:00Z"
 
 [[package]]
 name = "aiohappyeyeballs"
@@ -83,7 +83,7 @@ wheels = [
 
 [[package]]
 name = "apache-trusted-releases"
-version = "0.20250725.1943"
+version = "0.20250728.1433"
 source = { editable = "." }
 dependencies = [
     { name = "aiohttp" },


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to