community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1728910 - in /comdev/projects.apache.org: STRUCTURE.txt scripts/README.txt scripts/cronjobs/parsechairs.py scripts/cronjobs/parsecommitteeinfo.py site/json/foundation/committees.json
Date Sun, 07 Feb 2016 01:30:38 GMT
Author: sebb
Date: Sun Feb  7 01:30:38 2016
New Revision: 1728910

URL: http://svn.apache.org/viewvc?rev=1728910&view=rev
Log:
foundation/chairs.json and foundation/pms.json are not needed anymore (they were only used
by reporter)

Modified:
    comdev/projects.apache.org/STRUCTURE.txt
    comdev/projects.apache.org/scripts/README.txt
    comdev/projects.apache.org/scripts/cronjobs/parsechairs.py
    comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py
    comdev/projects.apache.org/site/json/foundation/committees.json

Modified: comdev/projects.apache.org/STRUCTURE.txt
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/STRUCTURE.txt?rev=1728910&r1=1728909&r2=1728910&view=diff
==============================================================================
--- comdev/projects.apache.org/STRUCTURE.txt (original)
+++ comdev/projects.apache.org/STRUCTURE.txt Sun Feb  7 01:30:38 2016
@@ -26,7 +26,6 @@ N.B. The directory structure should be o
 This is because at least one of the scripts (parsecommitteeinfo.py) may invoke SVN commands
 
 Suggested cron setup:
-    scripts/cronjobs/parsechairs.py - daily
     scripts/cronjobs/parsecomitters.py - daily/hourly (whatever we need/want)
     scripts/cronjobs/podlings.py - daily
     scripts/cronjobs/countaccounts.py - weekly
@@ -50,7 +49,7 @@ crontab -l -u www-data:
 # m h  dom mon dow   command
 00 00 * * * cd /var/www/projects.apache.org/scripts/cronjobs && ./python3logger.sh
podlings.py
 00 00 * * * cd /var/www/projects.apache.org/scripts/cronjobs && ./python3logger.sh
parsecommitters.py
-00 00 * * * cd /var/www/projects.apache.org/scripts/cronjobs && ./python3logger.sh
parsechairs.py
+# no longer needed 00 00 * * * cd /var/www/projects.apache.org/scripts/cronjobs &&
./python3logger.sh parsechairs.py
 00 00 * * * cd /var/www/projects.apache.org/scripts/cronjobs && ./python3logger.sh
countaccounts.py
 00 00 * * * cd /var/www/projects.apache.org/scripts/cronjobs && ./python3logger.sh
parsereleases.py
 00 01 * * * cd /var/www/projects.apache.org/scripts/cronjobs && ./python3logger.sh
parsecommitteeinfo.py

Modified: comdev/projects.apache.org/scripts/README.txt
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/README.txt?rev=1728910&r1=1728909&r2=1728910&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/README.txt (original)
+++ comdev/projects.apache.org/scripts/README.txt Sun Feb  7 01:30:38 2016
@@ -7,10 +7,6 @@ various sources:
   in:  site/json/foundation/accounts-evolution.json + ldapsearch
   out: site/json/foundation/accounts-evolution.json (updated)
 
-- parsechairs.py
-  in:  data/cache/committee-info.json (from whimsy, via committee_info module)
-  out: site/json/foundation/chairs.json - (used by reporter.a.o only)
-
 - parsecommitteeinfo.py: Parses committee-info.json to detect new and retired committees
   and imports PMC data (RDF) from PMC data files
   in: site/json/foundation/committees.json
@@ -20,7 +16,6 @@ various sources:
     + data/committees/*.rdf - local PMC description RDF files
   out: site/json/foundation/committees.json (updated)
      + site/json/foundation/committees-retired.json (updated)
-     + site/json/foundation/pmcs.json - (used by reporter.a.o only)
 
 - parsecommitters.py: extracts the committer & group details as follows:
   in: https://whimsy.apache.org/public/member_info.json

Modified: comdev/projects.apache.org/scripts/cronjobs/parsechairs.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parsechairs.py?rev=1728910&r1=1728909&r2=1728910&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parsechairs.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parsechairs.py Sun Feb  7 01:30:38 2016
@@ -1,22 +1,2 @@
-import errtee
-import sys
-sys.path.append("..") # module committee_info is in parent directory
-import committee_info
-import json
-
-"""
-Reads committee-info.json via committee_info module
-
-Creates:
-../../site/json/foundation/chairs.json
-
-"""
-
-chairs = committee_info.chairs()
-
-print("Writing chairs.json")
-with open("../../site/json/foundation/chairs.json", "w", encoding='utf-8') as f:
-    json.dump(chairs, f, sort_keys = True, indent=0, ensure_ascii=False)
-    f.close()
-
-print("All done!")
\ No newline at end of file
+# No longer needed, can be deleted when the cron jobs have been updated
+print("Nothing doing ...")
\ No newline at end of file

Modified: comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py?rev=1728910&r1=1728909&r2=1728910&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/parsecommitteeinfo.py Sun Feb  7 01:30:38
2016
@@ -27,9 +27,6 @@ Updates:
 ../../site/json/foundation/committees.json
 ../../site/json/foundation/committees-retired.json
 
-Writes:
-../../site/json/foundation/pmcs.json - for all PMCs
-
 SVN changes (if a PMC retires):
 Deletes the project files: site/json/projects/%s.json % PMC|PMC-*
 
@@ -86,7 +83,7 @@ with open("../../data/committees.xml", "
     xmldoc = minidom.parseString(f.read())
     f.close()
 
-print("Extracting PMC DOAP file data for json/foundation/pmcs.json")
+print("Extracting PMC DOAP file data for json/foundation/committees.json")
 for loc in xmldoc.getElementsByTagName('location') :
     url = loc.childNodes[0].data
     try:
@@ -268,8 +265,4 @@ with open("../../site/json/foundation/co
     json.dump(committeesRetired, f, sort_keys=True, indent=0)
     f.close()
 
-print("Writing json/foundation/pmcs.json...")
-with open ("../../site/json/foundation/pmcs.json", "w") as f:
-    json.dump(pmcs, f, sort_keys=True, indent=0)
-    f.close()
 print("All done")
\ No newline at end of file

Modified: comdev/projects.apache.org/site/json/foundation/committees.json
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/json/foundation/committees.json?rev=1728910&r1=1728909&r2=1728910&view=diff
==============================================================================
--- comdev/projects.apache.org/site/json/foundation/committees.json (original)
+++ comdev/projects.apache.org/site/json/foundation/committees.json Sun Feb  7 01:30:38 2016
@@ -2998,10 +2998,6 @@
 "date": "2007-06-20",
 "name": "Torsten Curdt"
 },
-"tn": {
-"date": "2012-09-21",
-"name": "Thomas Neidhart"
-},
 "tv": {
 "date": "2011-10-08",
 "name": "Thomas Vandahl"



Mime
View raw message