* [gentoo-commits] gentoo commit in src/gwn: get_portage_stats.py
@ 2013-10-13 9:35 Markos Chandras (hwoarang)
0 siblings, 0 replies; 6+ messages in thread
From: Markos Chandras (hwoarang) @ 2013-10-13 9:35 UTC (permalink / raw
To: gentoo-commits
hwoarang 13/10/13 09:35:41
Modified: get_portage_stats.py
Log:
get_portage_stats.py: Restructure table
Revision Changes Path
1.2 src/gwn/get_portage_stats.py
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?r1=1.1&r2=1.2
Index: get_portage_stats.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/get_portage_stats.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- get_portage_stats.py 13 Oct 2013 09:12:45 -0000 1.1
+++ get_portage_stats.py 13 Oct 2013 09:35:41 -0000 1.2
@@ -59,10 +59,11 @@
f.close()
os.remove("pkgstats.txt")
-print "[table]"
-print "Architectures, Categories, Packages, Ebuilds"
-print gen_stats_num[0] + ", " + gen_stats_num[1] + ", " + \
- gen_stats_num[2] + ", " + gen_stats_num[3]
+print "[table th=\"0\"]"
+print "Architectures, " + gen_stats_num[0]
+print "Categories, " + gen_stats_num[1]
+print "Packages, " + gen_stats_num[2]
+print "Ebuilds, " + gen_stats_num[3]
print "[/table]\n"
print "[table]"
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: get_portage_stats.py
@ 2013-10-13 9:37 Markos Chandras (hwoarang)
0 siblings, 0 replies; 6+ messages in thread
From: Markos Chandras (hwoarang) @ 2013-10-13 9:37 UTC (permalink / raw
To: gentoo-commits
hwoarang 13/10/13 09:37:50
Modified: get_portage_stats.py
Log:
get_portage_stats.py: Add text
Revision Changes Path
1.3 src/gwn/get_portage_stats.py
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?r1=1.2&r2=1.3
Index: get_portage_stats.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/get_portage_stats.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- get_portage_stats.py 13 Oct 2013 09:35:41 -0000 1.2
+++ get_portage_stats.py 13 Oct 2013 09:37:50 -0000 1.3
@@ -59,6 +59,8 @@
f.close()
os.remove("pkgstats.txt")
+print "This section summarizes the current state of the portage tree.\n"
+
print "[table th=\"0\"]"
print "Architectures, " + gen_stats_num[0]
print "Categories, " + gen_stats_num[1]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: get_portage_stats.py
@ 2013-12-30 10:45 Markos Chandras (hwoarang)
0 siblings, 0 replies; 6+ messages in thread
From: Markos Chandras (hwoarang) @ 2013-12-30 10:45 UTC (permalink / raw
To: gentoo-commits
hwoarang 13/12/30 10:45:58
Modified: get_portage_stats.py
Log:
get_portage_stats.py: Add img line to output
Revision Changes Path
1.4 src/gwn/get_portage_stats.py
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?r1=1.3&r2=1.4
Index: get_portage_stats.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/get_portage_stats.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- get_portage_stats.py 13 Oct 2013 09:37:50 -0000 1.3
+++ get_portage_stats.py 30 Dec 2013 10:45:58 -0000 1.4
@@ -1,5 +1,9 @@
#!/usr/bin/env python
-import os
+import os, time
+
+endtime = time.gmtime(time.time())
+datefor = time.strftime("%Y/%m", endtime)
+dateimg = time.strftime("%Y-%m", endtime)
arch = [
'alpha',
@@ -59,6 +63,7 @@
f.close()
os.remove("pkgstats.txt")
+print "<h1>Portage</h1>"
print "This section summarizes the current state of the portage tree.\n"
print "[table th=\"0\"]"
@@ -88,9 +93,15 @@
if i != len(svals) - 1:
string1 += ','
string2 += ','
+
+print """<p style="text-align: center"><img class=" wp-image-216 aligncenter"
+style="line-height: 24px" alt="gmn-portage-stats-2013-11"
+src="http://blogs.gentoo.org/news/files/%s/gmn-portage-stats-%s.png"
+width="800" height="350" /></p>
+""" % (datefor, dateimg)
#print string1
#print string2
-print "\n== Chart URL == \n"
+print "\n== Chart URL == (save it as \"gmn-portage-stats-%s.png\")\n\n" %dateimg
base = 'http://chart.apis.google.com/chart?cht=bhs&chs=800x350&chd=t:'
tail = '&chco=45347B,6A5C95&chbh=15&chxt=x,y&chxr=0,0,12250&chdl=Stable|Testing'
labx = '&chxl=0:1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|'
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: get_portage_stats.py
@ 2014-04-05 17:51 David Abbott (dabbott)
0 siblings, 0 replies; 6+ messages in thread
From: David Abbott (dabbott) @ 2014-04-05 17:51 UTC (permalink / raw
To: gentoo-commits
dabbott 14/04/05 17:51:41
Modified: get_portage_stats.py
Log:
added arm64 to portage stats
Revision Changes Path
1.5 src/gwn/get_portage_stats.py
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?r1=1.4&r2=1.5
Index: get_portage_stats.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/get_portage_stats.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- get_portage_stats.py 30 Dec 2013 10:45:58 -0000 1.4
+++ get_portage_stats.py 5 Apr 2014 17:51:41 -0000 1.5
@@ -10,6 +10,7 @@
'amd64',
'amd64-fbsd',
'arm',
+'arm64',
'hppa',
'ia64',
'm68k',
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: get_portage_stats.py
@ 2014-04-29 19:21 Markos Chandras (hwoarang)
0 siblings, 0 replies; 6+ messages in thread
From: Markos Chandras (hwoarang) @ 2014-04-29 19:21 UTC (permalink / raw
To: gentoo-commits
hwoarang 14/04/29 19:21:11
Modified: get_portage_stats.py
Log:
Multiple fixes
- Expand the X axis limit to match the one of the architecture with the most
packages
- Fix alternative name for the image file
Revision Changes Path
1.6 src/gwn/get_portage_stats.py
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?r1=1.5&r2=1.6
Index: get_portage_stats.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/get_portage_stats.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- get_portage_stats.py 5 Apr 2014 17:51:41 -0000 1.5
+++ get_portage_stats.py 29 Apr 2014 19:21:11 -0000 1.6
@@ -86,6 +86,8 @@
tvals.append(round(testing[i] / 123.81, 2))
tot.append(stable[i]+testing[i])
+max_arch=max(tot)
+
string1 = ''
string2 = ''
for i in range(0, len(svals)):
@@ -96,15 +98,14 @@
string2 += ','
print """<p style="text-align: center"><img class=" wp-image-216 aligncenter"
-style="line-height: 24px" alt="gmn-portage-stats-2013-11"
+style="line-height: 24px" alt="gmn-portage-stats-%s"
src="http://blogs.gentoo.org/news/files/%s/gmn-portage-stats-%s.png"
width="800" height="350" /></p>
-""" % (datefor, dateimg)
-#print string1
-#print string2
+""" % (dateimg, datefor, dateimg)
+
print "\n== Chart URL == (save it as \"gmn-portage-stats-%s.png\")\n\n" %dateimg
base = 'http://chart.apis.google.com/chart?cht=bhs&chs=800x350&chd=t:'
-tail = '&chco=45347B,6A5C95&chbh=15&chxt=x,y&chxr=0,0,12250&chdl=Stable|Testing'
+tail = '&chco=45347B,6A5C95&chbh=15&chxt=x,y&chxr=0,0,%s&chdl=Stable|Testing' % (max_arch)
labx = '&chxl=0:1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|1000|'
laby = '1:'
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: get_portage_stats.py
@ 2014-11-11 21:23 Markos Chandras (hwoarang)
0 siblings, 0 replies; 6+ messages in thread
From: Markos Chandras (hwoarang) @ 2014-11-11 21:23 UTC (permalink / raw
To: gentoo-commits
hwoarang 14/11/11 21:23:43
Modified: get_portage_stats.py
Log:
get_portage_stats: s/portage/ Gentoo ebuild/ when talking about the Gentoo
packages
Revision Changes Path
1.7 src/gwn/get_portage_stats.py
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/get_portage_stats.py?r1=1.6&r2=1.7
Index: get_portage_stats.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/get_portage_stats.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- get_portage_stats.py 29 Apr 2014 19:21:11 -0000 1.6
+++ get_portage_stats.py 11 Nov 2014 21:23:43 -0000 1.7
@@ -65,7 +65,7 @@
os.remove("pkgstats.txt")
print "<h1>Portage</h1>"
-print "This section summarizes the current state of the portage tree.\n"
+print "This section summarizes the current state of the Gentoo ebuild tree.\n"
print "[table th=\"0\"]"
print "Architectures, " + gen_stats_num[0]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-11-11 21:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-30 10:45 [gentoo-commits] gentoo commit in src/gwn: get_portage_stats.py Markos Chandras (hwoarang)
-- strict thread matches above, loose matches on Subject: below --
2014-11-11 21:23 Markos Chandras (hwoarang)
2014-04-29 19:21 Markos Chandras (hwoarang)
2014-04-05 17:51 David Abbott (dabbott)
2013-10-13 9:37 Markos Chandras (hwoarang)
2013-10-13 9:35 Markos Chandras (hwoarang)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox