aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-06-12 17:33:11 +0200
committerMichał Górny <mgorny@gentoo.org>2023-06-14 16:25:04 +0200
commitd5ce7247e22cc5c651f0a55cbbeae5347de25149 (patch)
treef73bd08bc18598ccc2fbc3938a6ad9583c49a96f /plugin/newmetadata.vim
parentnewebuild: Default to pypi.eclass for Python packages (diff)
downloadgentoo-syntax-d5ce7247e22cc5c651f0a55cbbeae5347de25149.tar.gz
gentoo-syntax-d5ce7247e22cc5c651f0a55cbbeae5347de25149.tar.bz2
gentoo-syntax-d5ce7247e22cc5c651f0a55cbbeae5347de25149.zip
newmetadata: Add python@ by default, with a warning on tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'plugin/newmetadata.vim')
-rw-r--r--plugin/newmetadata.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/newmetadata.vim b/plugin/newmetadata.vim
index 82f5e07..6adce44 100644
--- a/plugin/newmetadata.vim
+++ b/plugin/newmetadata.vim
@@ -61,6 +61,8 @@ fun! <SID>MakeNewMetadata()
let l:project = "perl"
elseif l:category ==# "dev-php"
let l:project = "php-bugs"
+ elseif l:category ==# "dev-python"
+ let l:project = "python"
elseif l:category ==# "dev-ruby"
let l:project = "ruby"
elseif l:category ==# "dev-tex"
@@ -75,6 +77,9 @@ fun! <SID>MakeNewMetadata()
put ='<!DOCTYPE pkgmetadata SYSTEM \"https://www.gentoo.org/dtd/metadata.dtd\">'
put ='<pkgmetadata>'
if l:project != ""
+ if l:project == "python"
+ put ='<!-- please remove python@ if tests do not work -->'
+ endif
put ='<maintainer type=\"project\">'
put ='<email>' . l:project . '@gentoo.org</email>'
put ='</maintainer>'