From 6b859d4b7833f4da7cb11d970e9f5d0b9e7b5f24 Mon Sep 17 00:00:00 2001 From: Roger Philibert Date: Sat, 13 Mar 2021 19:48:21 +0100 Subject: [PATCH] woob: more renames --- AUTHORS | 2 +- contrib/anonymiser.sh | 2 +- contrib/boobank_indicator/README.md | 10 +++++----- contrib/boobank_indicator/setup.py | 2 +- contrib/munin/boobank-munin | 8 ++++---- contrib/munin/freemobile-munin | 2 +- contrib/munin/weboob-generic | 6 +++--- contrib/webextension-session-importer/README | 12 ++++++------ contrib/webextension-session-importer/manifest.json | 8 ++++---- tools/boilerplate/recipe.py | 6 +++--- tools/check_xpath.py | 4 ++-- tools/har-to-old.py | 2 +- tools/make_man.py | 4 ++-- tools/modules_testing_grid.py | 6 +++--- tools/run_tests.sh | 6 +++--- .../weboob_tools_captcha_virtkeyboard.py | 6 +++--- tools/woob_lint.py | 2 +- 17 files changed, 44 insertions(+), 44 deletions(-) diff --git a/AUTHORS b/AUTHORS index c30c1eb540..c2fc994e5c 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,4 +1,4 @@ -Weboob is a free software written by: +Woob is a free software written by: Romain Bignon * Core team; diff --git a/contrib/anonymiser.sh b/contrib/anonymiser.sh index a34187a2df..5e6e740cde 100755 --- a/contrib/anonymiser.sh +++ b/contrib/anonymiser.sh @@ -12,7 +12,7 @@ then dossier=$1 else echo "Usage: $0 FOLDER" - echo "For example : $0 /tmp/weboob_session_NLSIls/freemobile/" + echo "For example : $0 /tmp/woob_session_NLSIls/freemobile/" exit 1 fi diff --git a/contrib/boobank_indicator/README.md b/contrib/boobank_indicator/README.md index b7882c1c9c..9dd5489f09 100644 --- a/contrib/boobank_indicator/README.md +++ b/contrib/boobank_indicator/README.md @@ -1,7 +1,7 @@ -Weboob +Woob ========== -Weboob is a project which provides a core library, modules and applications +Woob is a project which provides a core library, modules and applications such as boobank. Overview @@ -20,7 +20,7 @@ in a multi-threaded way. The core library provides base classes which help developers write modules and applications. -Weboob is written in Python and is distributed under the LGPLv3+ license. +Woob is written in Python and is distributed under the LGPLv3+ license. For more information, please go to the official website at http://woob.tech/ @@ -49,7 +49,7 @@ depending on your Ubuntu Version. Or put it in `~/.config/openbox/autostart` ###Dependencies - - weboob >= 1.0 + - woob >= 1.0 - gir1.2-appindicator3 >= 0.1 - gir1.2-notify >= 0.7 @@ -58,7 +58,7 @@ depending on your Ubuntu Version. Or put it in `~/.config/openbox/autostart` If the app indicator fails to show in Ubuntu versions, consider installing python-appindicator with -`sudo apt-get install python-appindicator` weboob gir1.2-appindicator3 gir1.2-notify` +`sudo apt-get install python-appindicator` woob gir1.2-appindicator3 gir1.2-notify` ##Author Information - Bezleputh () diff --git a/contrib/boobank_indicator/setup.py b/contrib/boobank_indicator/setup.py index a9bb043e36..70848ac66e 100644 --- a/contrib/boobank_indicator/setup.py +++ b/contrib/boobank_indicator/setup.py @@ -5,7 +5,7 @@ version='2.1', description='show your bank accounts in your System Tray', long_description='boobank_indicator will show you bank accounts and associated transactions in your system tray. Your bank accounts should be configured in boobank', - keywords='weboob boobank tray icon', + keywords='woob bank tray icon', url='http://woob.tech/', license='GNU LGPL 3', author='Bezleputh', diff --git a/contrib/munin/boobank-munin b/contrib/munin/boobank-munin index 6153fbb979..424937c456 100755 --- a/contrib/munin/boobank-munin +++ b/contrib/munin/boobank-munin @@ -4,20 +4,20 @@ # Copyright(C) 2010-2011 Romain Bignon # -# This file is part of weboob. +# This file is part of woob. # -# weboob is free software: you can redistribute it and/or modify +# woob is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # -# weboob is distributed in the hope that it will be useful, +# woob is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License -# along with weboob. If not, see . +# along with woob. If not, see . from __future__ import print_function diff --git a/contrib/munin/freemobile-munin b/contrib/munin/freemobile-munin index 36a72db838..258c57ed21 100755 --- a/contrib/munin/freemobile-munin +++ b/contrib/munin/freemobile-munin @@ -182,7 +182,7 @@ sub fetch { } } } - # execute weboob + # execute woob open my $data, q(-|), $weboob or croak "Couldn't execute program: $ERRNO"; my @lines = <$data>; close $data or carp "unable to close: $ERRNO"; diff --git a/contrib/munin/weboob-generic b/contrib/munin/weboob-generic index bc25703e65..99e26a141c 100755 --- a/contrib/munin/weboob-generic +++ b/contrib/munin/weboob-generic @@ -25,16 +25,16 @@ ### Configuration ### ## Mandatory options ## -# env.capa: The Weboob capability to load +# env.capa: The Woob capability to load # Example: env.capa CapBank # -# env.do: The Weboob command to call. It can take more than one argument. +# env.do: The Woob command to call. It can take more than one argument. # With two argument, the second is used as parameter for the command. # The third is used to restrict backends. # Example: env.do get_balance # # env.import: The import line to import the capabilities -# Example: from weboob.capabilities.bank import CapBank +# Example: from woob.capabilities.bank import CapBank # # env.attribvalue: The attribut name of objects returned by the do command. # For example, the "balance" member of Account objects diff --git a/contrib/webextension-session-importer/README b/contrib/webextension-session-importer/README index aa43c33fa9..feafae1dbf 100644 --- a/contrib/webextension-session-importer/README +++ b/contrib/webextension-session-importer/README @@ -1,7 +1,7 @@ -Weboob session importer -======================= +Woob session importer +===================== -This is a webextension to export a weboob session URL and cookies and load it in +This is a webextension to export a woob session URL and cookies and load it in a real browser. Build @@ -16,7 +16,7 @@ To build a package, `web-ext build` can be used. Use --- -To export the session with weboob-debug for example: +To export the session with woob-debug for example: >>> print(json.dumps(browser.export_session())) @@ -24,5 +24,5 @@ Copy the JSON output (sample): {"url": "https://example.com/foo", "cookies": [{"name": "foo", "value": "bar"}]} -Then click on the Weboob toolbar button of your browser and paste the JSON. -The browser will set the cookies from weboob and go to the same URL. +Then click on the Woob toolbar button of your browser and paste the JSON. +The browser will set the cookies from woob and go to the same URL. diff --git a/contrib/webextension-session-importer/manifest.json b/contrib/webextension-session-importer/manifest.json index 9c4220b62f..e569aa07f1 100644 --- a/contrib/webextension-session-importer/manifest.json +++ b/contrib/webextension-session-importer/manifest.json @@ -1,10 +1,10 @@ { "manifest_version": 2, - "name": "Weboob session importer", + "name": "Woob session importer", "version": "0.0.1", - "description": "Import Weboob session URL and cookies", - "homepage_url": "http://weboob.org", + "description": "Import Woob session URL and cookies", + "homepage_url": "http://woob.tech", "icons": { "48": "logo.png" @@ -19,7 +19,7 @@ "browser_action": { "browser_style": true, "default_icon": "logo.png", - "default_title": "Import Weboob session", + "default_title": "Import Woob session", "default_popup": "popup.html" } } diff --git a/tools/boilerplate/recipe.py b/tools/boilerplate/recipe.py index 33b4581b85..df85120d29 100644 --- a/tools/boilerplate/recipe.py +++ b/tools/boilerplate/recipe.py @@ -29,8 +29,8 @@ from woob import __version__ -WEBOOB_MODULES = os.getenv( - 'WEBOOB_MODULES', +WOOB_MODULES = os.getenv( + 'WOOB_MODULES', os.path.realpath(os.path.join(os.path.dirname(__file__), '../../modules'))) BOILERPLATE_PATH = os.getenv( 'BOILERPLATE_PATH', @@ -68,7 +68,7 @@ def __init__(self, args): self.login = False def write(self, filename, contents): - return write(os.path.join(WEBOOB_MODULES, self.name, filename), contents) + return write(os.path.join(WOOB_MODULES, self.name, filename), contents) def template(self, name, **kwargs): if '.' not in name: diff --git a/tools/check_xpath.py b/tools/check_xpath.py index 3e25a9e1dd..2e295dc25d 100755 --- a/tools/check_xpath.py +++ b/tools/check_xpath.py @@ -25,7 +25,7 @@ import traceback import lxml.etree -from weboob.browser.filters import standard +from woob.browser.filters import standard class Error(SyntaxError): @@ -141,7 +141,7 @@ def search_py(root): parser.add_argument('-w', '--warnings', action='store_true') args = parser.parse_args() - modpath = os.getenv('WEBOOB_MODULES', os.path.normpath(os.path.dirname(__file__) + '/../modules')) + modpath = os.getenv('WOOB_MODULES', os.path.normpath(os.path.dirname(__file__) + '/../modules')) for fn in search_py(modpath): with open(fn) as fd: try: diff --git a/tools/har-to-old.py b/tools/har-to-old.py index 3c15a722a8..f26811d5ce 100755 --- a/tools/har-to-old.py +++ b/tools/har-to-old.py @@ -23,7 +23,7 @@ def write_request(entry, fd): if 'postData' in entry: if entry['postData'].get('x-binary'): - # non-standard key emitted by weboob + # non-standard key emitted by woob body = entry['postData']['text'].encode('latin-1') else: body = entry['postData']['text'].encode() diff --git a/tools/make_man.py b/tools/make_man.py index cf69fb2789..27c30dc731 100755 --- a/tools/make_man.py +++ b/tools/make_man.py @@ -30,7 +30,7 @@ from datetime import datetime from textwrap import dedent -from weboob.tools.application.base import Application +from woob.tools.application.base import Application BASE_PATH = os.path.join(os.path.dirname(__file__), os.pardir) DEST_DIR = 'man' @@ -106,7 +106,7 @@ def format_option_strings(self, option): def main(): # TODO rename when apps have changed folder - scripts_path = os.path.join(BASE_PATH, 'weboob', 'applications') + scripts_path = os.path.join(BASE_PATH, 'woob', 'applications') files = sorted(os.listdir(scripts_path)) completions = dict() diff --git a/tools/modules_testing_grid.py b/tools/modules_testing_grid.py index 93f89bf99f..3a36b20f53 100755 --- a/tools/modules_testing_grid.py +++ b/tools/modules_testing_grid.py @@ -2,10 +2,10 @@ # -*- coding: utf-8 -*- """ Script to format XUNIT output from unittests as a JSON string ready to be sent -to a [Weboob-CI](https://github.com/Phyks/weboob-ci) instance. +to a [Woob-CI](https://github.com/Phyks/weboob-ci) instance. * `XUNIT` is the XUNIT file to handle. -* `ORIGIN` is an origin string as described in the Weboob-CI documentation +* `ORIGIN` is an origin string as described in the Woob-CI documentation (basically just a string to identify the source of the unittests results). """ from __future__ import print_function @@ -23,7 +23,7 @@ def main(xunit, origin): modules = {} other_testcases = [] for tc in ts: - if tc.classname.startswith("weboob."): + if tc.classname.startswith("woob."): other_testcases.append(repr(tc)) continue module = tc.classname.split(".")[0] diff --git a/tools/run_tests.sh b/tools/run_tests.sh index 086e41b028..bf3f6137a3 100755 --- a/tools/run_tests.sh +++ b/tools/run_tests.sh @@ -75,10 +75,10 @@ if [ ! -n "${XUNIT_OUT}" ]; then XUNIT_OUT="" fi -# Handle Weboob-CI variables +# Handle Woob-CI variables if [ -n "${WOOB_CI_TARGET}" ]; then if [ ! -n "${WOOB_CI_ORIGIN}" ]; then - WOOB_CI_ORIGIN="Weboob unittests run" + WOOB_CI_ORIGIN="Woob unittests run" fi # Set up xunit reporting XUNIT_OUT="${WOOB_TMPDIR}/xunit.xml" @@ -127,7 +127,7 @@ if [ -n "${BACKEND}" ]; then STATUS=$? else if [ $TEST_CORE = 1 ]; then - echo "=== Weboob ===" + echo "=== Woob ===" CORE_TESTS=$(mktemp) ${PYTHON} -m nose --cover-package woob -c ${WOOB_DIR}/setup.cfg --logging-level=DEBUG -sv 2>&1 | tee "${CORE_TESTS}" STATUS_CORE=$? diff --git a/tools/stable_backport_data/weboob_tools_captcha_virtkeyboard.py b/tools/stable_backport_data/weboob_tools_captcha_virtkeyboard.py index 3f29ddc260..6186a8aa7f 100644 --- a/tools/stable_backport_data/weboob_tools_captcha_virtkeyboard.py +++ b/tools/stable_backport_data/weboob_tools_captcha_virtkeyboard.py @@ -1,5 +1,5 @@ -import weboob.tools.captcha.virtkeyboard as OLD +import woob.tools.captcha.virtkeyboard as OLD # can't import *, __all__ is incomplete... for attr in dir(OLD): @@ -31,7 +31,7 @@ class SimpleVirtualKeyboard(object): (x0, y0, x1, y1) on grid image from left to right and top to down, European reading way. It's not symbols in the image. :type matching_symbols_coords: dict[str:4-tuple(int)] - :param browser: Browser of weboob session. + :param browser: Browser of woob session. Allow to dump tiles files in same directory than session folder :type browser: obj(Browser) @@ -81,7 +81,7 @@ def build_path(self, browser=None): if browser and browser.responses_dirname: return browser.responses_dirname else: - return tempfile.mkdtemp(prefix='weboob_session_') + return tempfile.mkdtemp(prefix='woob_session_') def load_image(self, file, margin=None, convert=None): self.image = Image.open(file) diff --git a/tools/woob_lint.py b/tools/woob_lint.py index f1068ee94a..dee4fd5194 100755 --- a/tools/woob_lint.py +++ b/tools/woob_lint.py @@ -5,7 +5,7 @@ import os import sys -from weboob.core import Woob +from woob.core import Woob # Hint: use this script with file:///path/to/local/modules/ in sources.list # if you want to correctly check all modules. -- GitLab