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
|
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]
|
||||||
},
|
},
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue