Python3 port of openqa maintenance bot

This commit is contained in:
Stephan Kulow 2019-09-04 13:00:41 +02:00
parent f8d3603b2c
commit 89c98eb26b
4 changed files with 11 additions and 11 deletions

View File

@ -11,10 +11,10 @@ from openqa_client.client import OpenQA_Client
# from package itself
import osc
from openqabot import OpenQABot
from opensuse import openSUSEUpdate
from oqamaint.openqabot import OpenQABot
from oqamaint.opensuse import openSUSEUpdate
import ReviewBot
from suse import SUSEUpdate
from oqamaint.suse import SUSEUpdate
class CommandLineInterface(ReviewBot.CommandLineInterface):

View File

@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
import hashlib
from datetime import date
import md5
from pprint import pformat
from urllib2 import HTTPError
from urllib import quote_plus
from urllib.error import HTTPError
from urllib.parse import quote_plus
from osclib.comments import CommentAPI
import requests
@ -12,7 +12,7 @@ import osc.core
import ReviewBot
from suse import SUSEUpdate
from oqamaint.suse import SUSEUpdate
try:
from xml.etree import cElementTree as ET
@ -91,7 +91,7 @@ class OpenQABot(ReviewBot.ReviewBot):
# check a set of repos for their primary checksums
@staticmethod
def calculate_repo_hash(repos, incidents):
m = md5.new()
m = hashlib.md5()
# if you want to force it, increase this number
m.update('b')
for url in repos:

View File

@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
from update import Update
import re
from collections import namedtuple
import osc.core
from oqamaint.update import Update
try:
from xml.etree import cElementTree as ET

View File

@ -5,14 +5,14 @@ import requests
import osc.core
from update import Update
from oqamaint.update import Update
MINIMALS = {
x.rstrip()
for x in requests.get(
'https://gitlab.suse.de/qa-maintenance/metadata/raw/master/packages-to-be-tested-on-minimal-systems').iter_lines()
if len(x) > 0 and not(x.startswith("#") or x.startswith(' '))}
if len(x) > 0 and not(x.startswith(b"#") or x.startswith(b' '))}
class SUSEUpdate(Update):