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
import "text/template"
import (
"strings"
"text/template"
)
var funcs = template.FuncMap{
"tolower": strings.ToLower,
"firstchar": func(s string) string {
return s[:1]
},

View File

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