Commit 1ce73fcb authored by Bernhard M. Wiedemann's avatar Bernhard M. Wiedemann Committed by Holger Levsen
Browse files

Port make_graph to python3

because python2 will be EOL soon
and openSUSE only has python3-rpy2
parent f9791397
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ Your clone of the jenkins git (https://salsa.debian.org/qa/jenkins.debian.net) w

Some dependencies:
----
sudo apt install python3 python3-psycopg2 python3-yaml sqlite3 python-rpy2 dctrl-tools
sudo apt install python3 python3-psycopg2 python3-rpy2 python3-yaml sqlite3 dctrl-tools
----

Create a user jenkins for testing. Create the following directories:
+2 −2
Original line number Diff line number Diff line
#!/usr/bin/python
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# Copyright 2009-2019 Holger Levsen (holger@layer-acht.org)
@@ -12,7 +12,7 @@ from rpy2.robjects.packages import importr

def main():
    if len(sys.argv) != 8:
        print "we need exactly seven params: csv-file-in, png-out-file, color, mainlabel, ylabl, width, height"
        print("we need exactly seven params: csv-file-in, png-out-file, color, mainlabel, ylabl, width, height")
        return
    filein = sys.argv[1]
    fileout = sys.argv[2]
+1 −1
Original line number Diff line number Diff line
@@ -433,6 +433,7 @@ if [ -f /etc/debian_version ] ; then
				python3-debian 
				python3-pystache
				python3-requests
				python3-rpy2 
				python3-sqlalchemy
				python3-xdg
				python3-yaml
@@ -441,7 +442,6 @@ if [ -f /etc/debian_version ] ; then
				python-imaging 
				python-lzma 
				python-pip 
				python-rpy2 
				python-setuptools 
				python-twisted 
				python-yaml