Use the lowercase name for the pip generator
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Elara 2023-10-10 13:51:40 -07:00
parent f421f40fdf
commit 6effa2d8fe
2 changed files with 8 additions and 4 deletions

View File

@ -1,8 +1,12 @@
package gen package gen
import "text/template" import (
"strings"
"text/template"
)
var funcs = template.FuncMap{ var funcs = template.FuncMap{
"tolower": strings.ToLower,
"firstchar": func(s string) string { "firstchar": func(s string) string {
return s[:1] return s[:1]
}, },

View File

@ -1,4 +1,4 @@
name='{{.name}}' name='{{.name | tolower}}'
version='{{.version}}' version='{{.version}}'
release='1' release='1'
desc='{{.description}}' desc='{{.description}}'
@ -6,8 +6,8 @@ homepage='https://example.com'
maintainer='Example <user@example.com>' maintainer='Example <user@example.com>'
architectures=('all') architectures=('all')
license=('custom:Unknown') license=('custom:Unknown')
provides=('{{.name}}') provides=('{{.name | tolower}}')
conflicts=('{{.name}}') conflicts=('{{.name | tolower}}')
deps=("python3") deps=("python3")
deps_arch=("python") deps_arch=("python")