From 31ae81fe7071ce8e177e6ff047fc5293c547b30d Mon Sep 17 00:00:00 2001 From: Daniel Gunzinger Date: Sat, 8 Apr 2023 20:57:00 +0200 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?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …; 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: Lunny Xiao --- 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 8dbed5395..2576bdd9d 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}}