community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1678817 - in /comdev/projects.apache.org: scripts/import/parsecommittees.py site/json/foundation/tlps.json
Date Mon, 11 May 2015 20:14:17 GMT
Author: hboutemy
Date: Mon May 11 20:14:17 2015
New Revision: 1678817

URL: http://svn.apache.org/r1678817
Log:
hardcoded charter for attic, comdev, incubator and labs

Modified:
    comdev/projects.apache.org/scripts/import/parsecommittees.py
    comdev/projects.apache.org/site/json/foundation/tlps.json

Modified: comdev/projects.apache.org/scripts/import/parsecommittees.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/parsecommittees.py?rev=1678817&r1=1678816&r2=1678817&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/parsecommittees.py (original)
+++ comdev/projects.apache.org/scripts/import/parsecommittees.py Mon May 11 20:14:17 2015
@@ -31,6 +31,13 @@ homepages = {
 gids = {
     'webservices': 'ws'
 }
+#
+charters = {
+    'attic': 'A home for dormant projects',
+    'comdev': 'Ressources to help people become involved with Apache projects',
+    'incubator': "Entry path into The Apache Software Foundation (ASF) for projects and codebases
wishing to become part of the Foundation's efforts",
+    'labs': 'A place for innovation where committers of the foundation can experiment with
new ideas'
+}
 
 with open("../../site/json/foundation/tlps-evolution.json", "r") as f:
     tlpsEvolution = json.loads(f.read())
@@ -167,11 +174,13 @@ for pmc in re.findall(r"\* .+?\s+\(est\.
                 print('WARN: %s not found in reporting cycles' % project)
 
             link = '<a href="%s" title="' % homepage
-            if link in www:
+            if tlp_id in charters:
+                tlp['charter'] = charters[tlp_id]
+            elif link in www:
                 charter = www[(www.index(link) + len(link)):]
                 charter = charter[:charter.index('">')]
                 tlp['charter'] = charter
-            elif tlp_id not in ['attic', 'comdev', 'incubator', 'labs']:
+            else:
                 print("WARN: %s (%s) missing from http://www.apache.org/#projects-list" %
(project, homepage))
             # TODO tlp['retired'] not in committee-info.txt
             tlps.append(tlp)

Modified: comdev/projects.apache.org/site/json/foundation/tlps.json
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/json/foundation/tlps.json?rev=1678817&r1=1678816&r2=1678817&view=diff
==============================================================================
--- comdev/projects.apache.org/site/json/foundation/tlps.json (original)
+++ comdev/projects.apache.org/site/json/foundation/tlps.json Mon May 11 20:14:17 2015
@@ -764,6 +764,7 @@
 },
 {
 "chair": "bayard",
+"charter": "A home for dormant projects",
 "committers": {
 "bayard": "Henri Yandell",
 "brett": "Brett Porter",
@@ -2035,6 +2036,7 @@
 },
 {
 "chair": "uli",
+"charter": "Ressources to help people become involved with Apache projects",
 "committers": {
 "bdelacretaz": "Bertrand Delacretaz",
 "curcuru": "Shane Curcuru",
@@ -4302,6 +4304,7 @@
 },
 {
 "chair": "tdunning",
+"charter": "Entry path into The Apache Software Foundation (ASF) for projects and codebases
wishing to become part of the Foundation's efforts",
 "committers": {
 "aadamchik": "Andrus Adamchik",
 "aaf": "Alexei Fedotov",
@@ -6775,6 +6778,7 @@
 },
 {
 "chair": "jani",
+"charter": "A place for innovation where committers of the foundation can experiment with
new ideas",
 "committers": {
 "bayard": "Henri Yandell",
 "bdelacretaz": "Bertrand Delacretaz",



Mime
View raw message