From 4072b67ae5309c92f93ad58f83ffbb696b9da3fd Mon Sep 17 00:00:00 2001 From: Wolfgang Fahl Date: Sat, 3 Aug 2024 19:56:13 +0200 Subject: [PATCH] release commit --- profiwiki/docker.py | 1 + profiwiki/patch.py | 1 + profiwiki/profiwiki_cmd.py | 1 + profiwiki/profiwiki_core.py | 9 ++++++--- profiwiki/version.py | 1 + tests/basetest.py | 1 + tests/test_patch.py | 1 + tests/test_profiwiki.py | 1 + 8 files changed, 13 insertions(+), 3 deletions(-) diff --git a/profiwiki/docker.py b/profiwiki/docker.py index 785def0..04b1003 100644 --- a/profiwiki/docker.py +++ b/profiwiki/docker.py @@ -3,6 +3,7 @@ @author: wf """ + import tempfile from mwdocker.docker import DockerContainer diff --git a/profiwiki/patch.py b/profiwiki/patch.py index c14fd13..3e88bd2 100644 --- a/profiwiki/patch.py +++ b/profiwiki/patch.py @@ -3,6 +3,7 @@ @author: wf """ + import re diff --git a/profiwiki/profiwiki_cmd.py b/profiwiki/profiwiki_cmd.py index 2514dac..f43a87b 100644 --- a/profiwiki/profiwiki_cmd.py +++ b/profiwiki/profiwiki_cmd.py @@ -3,6 +3,7 @@ @author: wf """ + # from pathlib import Path import sys import traceback diff --git a/profiwiki/profiwiki_core.py b/profiwiki/profiwiki_core.py index 31e876a..7e50952 100644 --- a/profiwiki/profiwiki_core.py +++ b/profiwiki/profiwiki_core.py @@ -3,6 +3,7 @@ @author: wf """ + import datetime import json import os @@ -45,7 +46,7 @@ def __init__( self.config.sql_port = port - 1 self.config.port = port self.config.versions = [mw_version] - self.config.version=mw_version + self.config.version = mw_version self.config.container_base_name = "pw" self.config.extensionNameList = [ "Admin Links", @@ -68,7 +69,7 @@ def __init__( "SyntaxHighlight", "Variables", "UserFunctions", - "YouTube" + "YouTube", ] self.config.logo = "https://wiki.bitplan.com/images/wiki/thumb/6/63/Profiwikiicon.png/96px-Profiwikiicon.png" self.config.__post_init__() @@ -173,7 +174,9 @@ def getMwApp(self, withGenerate: bool = True): """ mwCluster = self.getMwCluster(withGenerate) if not self.config.version in mwCluster.apps: - raise Exception(f"Mediawiki version {self.config.version} missing {mwCluster.apps.keys()}") + raise Exception( + f"Mediawiki version {self.config.version} missing {mwCluster.apps.keys()}" + ) mwApp = mwCluster.apps[self.config.version] return mwApp diff --git a/profiwiki/version.py b/profiwiki/version.py index 08b2bb5..283bee3 100644 --- a/profiwiki/version.py +++ b/profiwiki/version.py @@ -3,6 +3,7 @@ @author: wf """ + import profiwiki diff --git a/tests/basetest.py b/tests/basetest.py index 8fca7e7..4ab0419 100644 --- a/tests/basetest.py +++ b/tests/basetest.py @@ -3,6 +3,7 @@ @author: wf """ + import getpass import time from unittest import TestCase diff --git a/tests/test_patch.py b/tests/test_patch.py index 5dac433..65c773e 100644 --- a/tests/test_patch.py +++ b/tests/test_patch.py @@ -3,6 +3,7 @@ @author: wf """ + import tempfile from profiwiki.patch import Patch diff --git a/tests/test_profiwiki.py b/tests/test_profiwiki.py index 3e2565e..39d3b19 100644 --- a/tests/test_profiwiki.py +++ b/tests/test_profiwiki.py @@ -3,6 +3,7 @@ @author: wf """ + import json import os from argparse import ArgumentParser