From cfde557e231417b7fb3cde3e9bab70d05b7d182f Mon Sep 17 00:00:00 2001 From: Giteabot Date: Sat, 8 Apr 2023 17:13:43 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20do=20not=20escape=20space=20between=20Py?= =?UTF-8?q?PI=20repository=20url=20and=20package=20name=E2=80=A6=20(#23981?= =?UTF-8?q?)=20(#24008)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport #23981 by @Gunzinger …; add trailing slash to PyPI repository URL (in accordance to PEP-503) This should solve Issue #23980, by moving the space in front of the package name and the package name out of the `gitea-origin-url` block. It also adds a trailing slash to the PyPI repository URL in accordance to [Python PEP-503](https://peps.python.org/pep-0503/). Co-authored-by: Daniel Gunzinger --- templates/package/content/pypi.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/package/content/pypi.tmpl b/templates/package/content/pypi.tmpl index 8dbed5395e..2576bdd9de 100644 --- a/templates/package/content/pypi.tmpl +++ b/templates/package/content/pypi.tmpl @@ -4,7 +4,7 @@
-
pip install --index-url 
+
pip install --index-url  {{.PackageDescriptor.Package.Name}}