You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/10/01 14:58:29 UTC

svn commit: r1706230 - in /comdev/reporter.apache.org/trunk/data: pmcdates.py reportingcycles.py

Author: sebb
Date: Thu Oct  1 12:58:28 2015
New Revision: 1706230

URL: http://svn.apache.org/viewvc?rev=1706230&view=rev
Log:
Move the scripts to the reporter area

Added:
    comdev/reporter.apache.org/trunk/data/pmcdates.py   (with props)
    comdev/reporter.apache.org/trunk/data/reportingcycles.py   (with props)

Added: comdev/reporter.apache.org/trunk/data/pmcdates.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/data/pmcdates.py?rev=1706230&view=auto
==============================================================================
--- comdev/reporter.apache.org/trunk/data/pmcdates.py (added)
+++ comdev/reporter.apache.org/trunk/data/pmcdates.py Thu Oct  1 12:58:28 2015
@@ -0,0 +1,24 @@
+import sys
+sys.path.append("../../projects.apache.org/scripts") # module committee_info is in p.a.o
+import committee_info
+import json
+
+"""
+
+Parse PMC start dates and member joining dates
+
+Reads committee-info.json via committee_info module
+
+Creates:
+pmcdates.json
+
+"""
+
+pmcdates = committee_info.pmcdates()
+
+print("Writing pmcdates.json")
+with open("pmcdates.json", "w", encoding='utf-8') as f:
+    json.dump(pmcdates, f, sort_keys = True, indent=1, ensure_ascii=False)
+    f.close()
+
+print("All done!")
\ No newline at end of file

Propchange: comdev/reporter.apache.org/trunk/data/pmcdates.py
------------------------------------------------------------------------------
    svn:eol-style = native

Added: comdev/reporter.apache.org/trunk/data/reportingcycles.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/data/reportingcycles.py?rev=1706230&view=auto
==============================================================================
--- comdev/reporter.apache.org/trunk/data/reportingcycles.py (added)
+++ comdev/reporter.apache.org/trunk/data/reportingcycles.py Thu Oct  1 12:58:28 2015
@@ -0,0 +1,21 @@
+import sys
+sys.path.append("../../projects.apache.org/scripts") # module committee_info is in p.a.o
+import committee_info
+import json
+
+"""
+Reads committee-info.json via committee_info module
+
+Creates:
+reportingcycles.json
+
+"""
+
+cycles = committee_info.cycles()
+
+print("Writing reportingcycles.json")
+with open("reportingcycles.json", "w", encoding='utf-8') as f:
+    json.dump(cycles, f, sort_keys = True, indent=1, ensure_ascii=False)
+    f.close()
+
+print("All done!")
\ No newline at end of file

Propchange: comdev/reporter.apache.org/trunk/data/reportingcycles.py
------------------------------------------------------------------------------
    svn:eol-style = native