Move modules into lib subdir

This commit is contained in:
Stephan Kulow 2022-10-17 19:54:47 +02:00
parent 88322fffae
commit a82562b794
11 changed files with 29 additions and 25 deletions

View File

@ -8,7 +8,7 @@ import sys
import osc.core
from importer import Importer
from lib.importer import Importer
URL_OBS = "https://api.opensuse.org"
URL_IBS = "https://api.suse.de"

View File

View File

@ -1,10 +1,11 @@
import pathlib
import pygit2
import logging
import subprocess
import fnmatch
import logging
import pathlib
import subprocess
from binary import BINARY
import pygit2
from lib.binary import BINARY
LFS_SUFFIX = "filter=lfs diff=lfs merge=lfs -text"

View File

@ -1,8 +1,8 @@
import re
import logging
import itertools
import logging
import re
from revision import Revision
from lib.revision import Revision
class History:

View File

@ -1,11 +1,11 @@
import functools
import logging
from git import Git
from history import History
from binary import is_binary_or_large
from proxy_sha256 import ProxySHA256, md5, sha256
from obs import OBS
from lib.binary import is_binary_or_large
from lib.git import Git
from lib.history import History
from lib.obs import OBS
from lib.proxy_sha256 import ProxySHA256, md5, sha256
def _files_hash(hash_alg, dirpath):

View File

@ -1,12 +1,14 @@
import osc.core
import xml.etree.ElementTree as ET
import logging
import urllib.parse
from urllib.error import HTTPError
import time
import errno
import logging
import time
import urllib.parse
import xml.etree.ElementTree as ET
from urllib.error import HTTPError
import osc.core
from lib.request import Request
from request import Request
# Add a retry wrapper for some of the HTTP actions.
def retry(func):

View File

@ -1,8 +1,9 @@
import logging
import requests
import urllib
import functools
import hashlib
import logging
import urllib
import requests
def _hash(hash_alg, file_or_path):

View File

@ -1,8 +1,8 @@
import datetime
import logging
import re
from urllib.error import HTTPError
import xml.etree.ElementTree as ET
from urllib.error import HTTPError
class Revision: