Use the lowercase name for the pip generator
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
f421f40fdf
commit
6effa2d8fe
|
@ -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]
|
||||
},
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue