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-trusted-release.git


The following commit(s) were added to refs/heads/main by this push:
     new c4c8871  Remove docs routes
c4c8871 is described below

commit c4c88712d1dec8f08ac851c58dab99a949250165
Author: Sean B. Palmer <[email protected]>
AuthorDate: Wed Mar 26 18:11:24 2025 +0200

    Remove docs routes
---
 atr/routes/__init__.py         |  2 --
 atr/routes/docs.py             | 44 -------------------------------------
 atr/templates/docs-verify.html | 49 ------------------------------------------
 3 files changed, 95 deletions(-)

diff --git a/atr/routes/__init__.py b/atr/routes/__init__.py
index f43464b..16fe06f 100644
--- a/atr/routes/__init__.py
+++ b/atr/routes/__init__.py
@@ -414,7 +414,6 @@ def modules() -> dict[str, ModuleType]:
     import atr.routes.candidate_draft as candidate_draft
     import atr.routes.committees as committees
     import atr.routes.dev as dev
-    import atr.routes.docs as docs
     import atr.routes.download as download
     import atr.routes.keys as keys
     import atr.routes.projects as projects
@@ -426,7 +425,6 @@ def modules() -> dict[str, ModuleType]:
         "candidate_draft": candidate_draft,
         "committees": committees,
         "dev": dev,
-        "docs": docs,
         "download": download,
         "keys": keys,
         "projects": projects,
diff --git a/atr/routes/docs.py b/atr/routes/docs.py
deleted file mode 100644
index c4fb156..0000000
--- a/atr/routes/docs.py
+++ /dev/null
@@ -1,44 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""docs.py"""
-
-import asfquart as asfquart
-import asfquart.auth as auth
-import quart
-
-import atr.routes as routes
-
-
[email protected]_route("/docs/verify/<filename>")
[email protected](auth.Requirements.committer)
-async def root_docs_verify(filename: str) -> str:
-    """Show verification instructions for an artifact."""
-    # Get query parameters
-    args = quart.request.args
-    artifact_sha3 = args.get("artifact_sha3", "")
-    sha512 = args.get("sha512", "")
-    has_signature = args.get("has_signature", "false").lower() == "true"
-
-    # Return the template
-    return await quart.render_template(
-        "docs-verify.html",
-        filename=filename,
-        artifact_sha3=artifact_sha3,
-        sha512=sha512,
-        has_signature=has_signature,
-    )
diff --git a/atr/templates/docs-verify.html b/atr/templates/docs-verify.html
deleted file mode 100644
index 71f95c7..0000000
--- a/atr/templates/docs-verify.html
+++ /dev/null
@@ -1,49 +0,0 @@
-{% extends "layouts/base.html" %}
-
-{% block title %}
-  Verification instructions ~ ATR
-{% endblock title %}
-
-{% block description %}
-  Instructions for verifying an artifact.
-{% endblock description %}
-
-{% block content %}
-  <p>
-    <a href="{{ as_url(routes.candidate.review) }}" class="back-link">← Back 
to release candidates</a>
-  </p>
-  <h1>Verification instructions</h1>
-
-  <p>
-    Follow these steps to verify the downloaded artifact <code>{{ filename 
}}</code>.
-  </p>
-
-  <div class="mt-3">
-    <h3 class="mt-4 mb-2">1. Download the artifact and signature</h3>
-    <p>Use the download buttons on the release candidate page to download both 
the artifact and its signature.</p>
-
-    <h3 class="mt-4 mb-2">2. Verify signature with GPG</h3>
-    <p>Run the following command to verify the signature:</p>
-    <pre class="bg-light p-3 rounded overflow-auto my-2">{% if has_signature 
%}gpg --verify {{ filename }}.asc {{ filename }}{% else %}No signature 
available for this artifact.{% endif %}</pre>
-
-    <h3 class="mt-4 mb-2">3. Verify SHA3-256 hash</h3>
-    <p>Run the following command and compare the output with the hash 
displayed on the release candidate page:</p>
-    <pre class="bg-light p-3 rounded overflow-auto my-2">sha3sum -a 256 {{ 
filename }}</pre>
-    {% if artifact_sha3 %}
-      <p>Expected SHA3-256 hash:</p>
-      <pre class="bg-light p-3 rounded overflow-auto my-2">{{ artifact_sha3 
}}</pre>
-    {% endif %}
-
-    <h3 class="mt-4 mb-2">4. Verify SHA-512 hash</h3>
-    <p>Run the following command and compare the output with the hash 
displayed on the release candidate page:</p>
-    <pre class="bg-light p-3 rounded overflow-auto my-2">sha512sum {{ filename 
}}</pre>
-    {% if sha512 %}
-      <p>Expected SHA-512 hash:</p>
-      <pre class="bg-light p-3 rounded overflow-auto my-2">{{ sha512 }}</pre>
-    {% endif %}
-  </div>
-{% endblock content %}
-
-{% block javascripts %}
-  {{ super() }}
-{% endblock javascripts %}


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

Reply via email to