M README.md => README.md +8 -0
@@ 107,6 107,7 @@ to be sent by e-mail. The mapping may contain the following elements:
| `sender` | Name and e-mail address of the sender. |
| `template` | Template text used for the e-mail body. |
| `subject` | Template used for the e-mail subject. *(Optional.)* |
+| `recipients` | List of names and e-mail addresses of the recipients. *(Optional.)* |
If the optional `subject` is not specified, the default value
`"%{package} %{version} released!"` will be used. The following is a valid
@@ 119,6 120,9 @@ variables:
email:
sender: "Foo Library release bot <noreply@foolib.org>"
+ recipients:
+ - "Foo Announcements <foo-announce@fooproject.org>"
+ - "Distributor's Lists <foo-distributors@fooproject.org>"
subject: "[Release] %{package} %{version} now available"
template: |
Hello,
@@ 132,6 136,10 @@ email:
%{date}
```
+Note that if no `recipients` are specified, you will *not* be able to
+automatically send e-mails—generating them will be still possible, but you
+will need to edit and send them by hand, though.
+
### Files Section
M conf/cog.yml => conf/cog.yml +4 -0
@@ 1,6 1,10 @@
pattern: cog-%.tar.xz
package: Cog
+email:
+ recipients:
+ - webkit-wpe@lists.webkit.org
+
variables:
url: https://wpewebkit.org
bugurl: https://github.com/Igalia/cog/issues
M conf/libwpe.yml => conf/libwpe.yml +4 -0
@@ 1,6 1,10 @@
pattern: libwpe-%.tar.xz
package: libwpe
+email:
+ recipients:
+ - webkit-wpe@lists.webkit.org
+
variables:
url: https://wpewebkit.org
bugurl: https://github.com/WebPlatformForEmbedded/libwpe/issues
M conf/webkitgtk.yml => conf/webkitgtk.yml +5 -0
@@ 1,6 1,11 @@
pattern: webkitgtk-%.tar.xz
package: WebKitGTK
+email:
+ recipients:
+ - webkit-gtk@lists.webkit.org
+ - gnome-announce-list@gnome.org
+
variables:
url: https://webkitgtk.org
bugurl: https://bugs.webkit.org
M conf/wpebackend-fdo.yml => conf/wpebackend-fdo.yml +4 -0
@@ 1,6 1,10 @@
pattern: wpebackend-fdo-%.tar.xz
package: WPEBackend-fdo
+email:
+ recipients:
+ - webkit-wpe@lists.webkit.org
+
variables:
url: https://wpewebkit.org
bugurl: https://github.com/Igalia/WPEBackend-fdo/issues
M conf/wpewebkit.yml => conf/wpewebkit.yml +4 -0
@@ 1,6 1,10 @@
pattern: wpewebkit-%.tar.xz
package: WPE WebKit
+email:
+ recipients:
+ - webkit-wpe@lists.webkit.org
+
variables:
url: https://wpewebkit.org
bugurl: https://bugs.webkit.org
M wkrel/config.py => wkrel/config.py +2 -1
@@ 10,7 10,7 @@ import attr
from email.headerregistry import UniqueSingleAddressHeader as _Address
from pathlib import Path
-from typing import Iterable, Optional, Dict
+from typing import Iterable, Optional, Dict, Set
from .util import Template, cachedproperty, xdg_config_file_find
from . import yaml
@@ 25,6 25,7 @@ def _parse_email_address(d):
class ConfigEmail(object):
sender: _Address = attr.ib(converter=_parse_email_address)
template: Template = attr.ib(converter=Template)
+ recipients: Set[_Address] = attr.ib(factory=set)
subject: str = "%{package} %{version} released!"
@classmethod