From 8c572498127aa736e2ca974b4896c7d05d97c959 Mon Sep 17 00:00:00 2001 From: Vincent A Date: Sat, 27 Feb 2021 11:49:37 +0100 Subject: [PATCH] replace weboob.org URLs with woob.tech --- AUTHORS | 2 +- CONTRIBUTING.md | 12 ++++++------ INSTALL | 2 +- README.md | 4 ++-- docs/source/_templates/indexcontent.html | 2 +- docs/source/_templates/indexsidebar.html | 4 ++-- docs/source/guides/contribute.rst | 16 ++++++++-------- docs/source/guides/module.rst | 2 +- docs/source/guides/setup.rst | 4 ++-- docs/source/guides/tests.rst | 2 +- setup.cfg | 4 ++-- tools/make_man.py | 2 +- tools/setup-virtualenv.sh | 2 +- weboob/applications/bugtracker/bugtracker.py | 4 ++-- weboob/applications/repos/repos.py | 2 +- weboob/browser/browsers.py | 8 ++++---- weboob/browser/pages.py | 2 +- weboob/browser/tests/url.py | 18 +++++++++--------- weboob/core/ouiboube.py | 4 ++-- weboob/core/repositories.py | 2 +- 20 files changed, 49 insertions(+), 49 deletions(-) diff --git a/AUTHORS b/AUTHORS index 4552263bd2..c30c1eb540 100644 --- a/AUTHORS +++ b/AUTHORS @@ -417,4 +417,4 @@ Damien Cassou Discover how to contribute to this great software: -http://dev.weboob.org/guides/contribute +http://dev.woob.tech/guides/contribute diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b138f32118..6eb1249d69 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,9 +14,9 @@ a lot of duplicate work. Write a patch ------------- -Help yourself with the [documentation](http://docs.weboob.org/). +Help yourself with the [documentation](http://docs.woob.tech/). -Find an opened issue on [this website](https://git.weboob.org/weboob/weboob/issues), +Find an opened issue on [this website](https://git.woob.tech/weboob/weboob/issues), or write your own bugfix or feature. Then, once it is necessary, commit with: $ git commit -a @@ -36,14 +36,14 @@ You can run these scripts to be sure your patch doesn't break anything: $ tools/run_tests.sh yourmodulename # or without yourmodulename to test everything Perhaps you should also write or fix tests. These tests are automatically run by -[Gitlab CI](https://git.weboob.org/weboob/weboob/pipelines) at each commit and merge requests. +[Gitlab CI](https://git.woob.tech/weboob/weboob/pipelines) at each commit and merge requests. Create a merge request or send a patch -------------------------------------- The easiest way to send your patch is to create a fork on [the Weboob -Gitlab](https://git.weboob.org) and create a merge request from there. +Gitlab](https://git.woob.tech) and create a merge request from there. This way, the code review process is easier and continuous integration is run automatically (see previous section). @@ -53,7 +53,7 @@ If you prefer good old email patches, just use Then, send them with this command: - $ git send-email --to=weboob@weboob.org *.patch + $ git send-email --to=weboob@woob.tech *.patch You can also send the files by yourself if you haven't any configured MTA on your system. @@ -62,7 +62,7 @@ Notes on merging a merge request -------------------------------- Few people (members of the [Weboob group on this -repo](https://git.weboob.org/groups/weboob/group_members)) have the right to +repo](https://git.woob.tech/groups/weboob/group_members)) have the right to merge a MR. Anyone is welcome to review and comment pending merge requests. A merge diff --git a/INSTALL b/INSTALL index 26a2f58908..bd9bc6041a 100644 --- a/INSTALL +++ b/INSTALL @@ -2,7 +2,7 @@ Woob installation ================= Using the packages provided by your distribution is recommended. -See http://weboob.org/install for a list of available packages. +See http://woob.tech/install for a list of available packages. Since there are many dependencies, when you install from sources, you have to handle them by hand, according to your distribution. diff --git a/README.md b/README.md index 7353bac362..e7f68404b8 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Woob is written in Python and is distributed under the LGPLv3+ license. For more information, please go to [the official website](http://woob.tech/). Some extra info is available in the [Gitlab -wiki](https://git.weboob.org/weboob/devel/wikis/home). +wiki](https://git.woob.tech/weboob/devel/wikis/home). If you are a developper and looking for how to write a module or contribute to -Woob, you can have a look at the [developper documentation](http://dev.weboob.org/). +Woob, you can have a look at the [developper documentation](http://dev.woob.tech/). diff --git a/docs/source/_templates/indexcontent.html b/docs/source/_templates/indexcontent.html index f27fb07bed..4b769e6d08 100644 --- a/docs/source/_templates/indexcontent.html +++ b/docs/source/_templates/indexcontent.html @@ -9,7 +9,7 @@

Note

-

This is the developer documentation. If you are not a developer and you are looking for information about the project, check the official website.

+

This is the developer documentation. If you are not a developer and you are looking for information about the project, check the official website.

Hello world:

diff --git a/docs/source/_templates/indexsidebar.html b/docs/source/_templates/indexsidebar.html index ab5dfd30b7..27bd2e57fc 100644 --- a/docs/source/_templates/indexsidebar.html +++ b/docs/source/_templates/indexsidebar.html @@ -1,6 +1,6 @@

Other resources

diff --git a/docs/source/guides/contribute.rst b/docs/source/guides/contribute.rst index d5383f4498..c0be9ba6bd 100644 --- a/docs/source/guides/contribute.rst +++ b/docs/source/guides/contribute.rst @@ -7,9 +7,9 @@ By coding Write a patch ------------- -Help yourself with the `documentation `_. +Help yourself with the `documentation `_. -Find an opened issue on `this website `_, or write your own bugfix or feature. +Find an opened issue on `this website `_, or write your own bugfix or feature. Then, once it is necessary, commit with:: $ git commit -a @@ -31,12 +31,12 @@ To aid in verifying Python 3 compatibility, also run:: $ tools/run_tests.sh -3 yourmodulename Perhaps you should also write or fix tests. These tests are automatically run by -`Gitlab CI `_ at each commit and merge requests. +`Gitlab CI `_ at each commit and merge requests. Create a merge request or send a patch -------------------------------------- -The easiest way to send your patch is to create a fork on `the Weboob Gitlab `_ and create a merge +The easiest way to send your patch is to create a fork on `the Weboob Gitlab `_ and create a merge request from there. This way, the code review process is easier and continuous integration is run automatically (see previous section). @@ -45,11 +45,11 @@ previous section). Using the ``git+ssh`` protocol to clone the repository will only work when connected from an IPv6 compatible network: - `$ git clone gitlab@git.weboob.org:weboob/weboob.git` + `$ git clone gitlab@git.woob.tech:weboob/weboob.git` But it is possible to use the ``git+https`` protocol from everywhere (IPv4 and IPv6 networks): - `$ git clone https://git.weboob.org/weboob/weboob.git` + `$ git clone https://git.woob.tech/weboob/weboob.git` If you prefer good old email patches, just use @@ -59,7 +59,7 @@ If you prefer good old email patches, just use Then, send them with this command:: - $ git send-email --to=weboob@weboob.org *.patch + $ git send-email --to=weboob@woob.tech *.patch You can also send the files by yourself if you haven't any configured MTA on your system. @@ -76,4 +76,4 @@ You can `install a Gitlab runner `_ and it either by creating a dedicated Docker image with your credentials or running it in ``shell`` mode and making the backend file available to it). -Then, you should contact us at admin@weboob.org so that we could help you register your runner with our Gitlab. +Then, you should contact us at admin@woob.tech so that we could help you register your runner with our Gitlab. diff --git a/docs/source/guides/module.rst b/docs/source/guides/module.rst index 029a5b1e8a..f09df8d610 100644 --- a/docs/source/guides/module.rst +++ b/docs/source/guides/module.rst @@ -1,7 +1,7 @@ Write a new module ================== -This guide aims to learn how to write a new module for `Weboob `_. +This guide aims to learn how to write a new module for `Weboob `_. Before read it, you should :doc:`setup your development environment `. diff --git a/docs/source/guides/setup.rst b/docs/source/guides/setup.rst index df30f04f97..4ae1320ffb 100644 --- a/docs/source/guides/setup.rst +++ b/docs/source/guides/setup.rst @@ -8,7 +8,7 @@ Git installation Clone a git repository with this command:: - $ git clone https://git.weboob.org/weboob/weboob.git + $ git clone https://git.woob.tech/weboob/weboob.git We don't want to install Weboob on the whole system, so we create local directories where we will put symbolic links to sources:: @@ -28,7 +28,7 @@ If inside a virtualenv, no need to update the paths, they are all in the virtual Repositories setup ------------------ -As you may know, Weboob installs modules from `remote repositories `_. As you +As you may know, Weboob installs modules from `remote repositories `_. As you probably want to use modules in sources instead of stable ones, because you will change them, or create a new one, you have to add this line at end of ``~/.config/weboob/sources.list``:: diff --git a/docs/source/guides/tests.rst b/docs/source/guides/tests.rst index c075d77861..bd4a194467 100644 --- a/docs/source/guides/tests.rst +++ b/docs/source/guides/tests.rst @@ -21,7 +21,7 @@ Then, it run every method which name starts with ``test_``. .. note:: Some environment variables are available, to use specific backend file or send the test results. Refer to `the - comments in the script `_ for more infos on this. + comments in the script `_ for more infos on this. If a module name is passed as argument, only this module will be tested. For example, to only run ``lutim`` tests:: diff --git a/setup.cfg b/setup.cfg index 075a547d24..820aa25c7d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -52,9 +52,9 @@ description = Woob, Web Outside Of Browsers long_description = file:README.md author = Romain Bignon -author_email = weboob@weboob.org +author_email = woob@woob.tech maintainer = Romain Bignon -maintainer_email = romain@weboob.org +maintainer_email = romain@woob.tech url = https://woob.tech/ license = GNU LGPL 3 diff --git a/tools/make_man.py b/tools/make_man.py index 81a1fb23a9..2df21281e3 100755 --- a/tools/make_man.py +++ b/tools/make_man.py @@ -223,7 +223,7 @@ def analyze_application(app, script_name): footer += '\n\n "~/.config/woob/%s"' % app.APPNAME # Skip internal applications. - footer += "\n\n.SH SEE ALSO\nHome page: http://weboob.org/applications/%s" % application.APPNAME + footer += "\n\n.SH SEE ALSO\nHome page: http://woob.tech/applications/%s" % application.APPNAME mantext = u"%s\n%s\n%s\n%s\n%s\n%s\n%s" % (coding, comment, header, name, helptext, condition, footer) with open(os.path.join(BASE_PATH, DEST_DIR, "%s.1" % script_name), 'w+') as manfile: diff --git a/tools/setup-virtualenv.sh b/tools/setup-virtualenv.sh index de4049ee45..e04b4ded0c 100755 --- a/tools/setup-virtualenv.sh +++ b/tools/setup-virtualenv.sh @@ -12,7 +12,7 @@ VDIR= usage () { cat << EOF Usage: $0 [-s] [-d DIR] - -s point sources.list to $SRC/modules instead of updates.weboob.org + -s point sources.list to $SRC/modules instead of updates.woob.tech -d DIR install virtualenv in DIR instead of a new dir EOF } diff --git a/weboob/applications/bugtracker/bugtracker.py b/weboob/applications/bugtracker/bugtracker.py index 3ea888e0ec..9c5b0b6281 100644 --- a/weboob/applications/bugtracker/bugtracker.py +++ b/weboob/applications/bugtracker/bugtracker.py @@ -435,10 +435,10 @@ def send_notification(self, email_to, issue): """ % (issue.title, issue.id) msg = MIMEText(text, 'plain', 'utf-8') msg['Subject'] = 'Issue #%s reported' % issue.id - msg['From'] = 'Weboob ' + msg['From'] = 'Woob ' msg['To'] = email_to s = SMTP('localhost') - s.sendmail('weboob@weboob.org', [email_to], msg.as_string()) + s.sendmail('woob@woob.tech', [email_to], msg.as_string()) s.quit() def do_post(self, line): diff --git a/weboob/applications/repos/repos.py b/weboob/applications/repos/repos.py index 99268fd877..e8e16bec18 100644 --- a/weboob/applications/repos/repos.py +++ b/weboob/applications/repos/repos.py @@ -86,7 +86,7 @@ def do_build(self, line): Build backends contained in SOURCE to REPOSITORY. Example: - $ weboob-repos build $HOME/src/weboob/modules /var/www/updates.weboob.org/0.a/ + $ woob-repos build $HOME/src/woob/modules /var/www/updates.woob.tech/0.a/ """ source_path, repo_path = self.parse_command_args(line, 2, 2) index_file = os.path.join(repo_path, Repository.INDEX) diff --git a/weboob/browser/browsers.py b/weboob/browser/browsers.py index 00fb391461..32169c7ab9 100644 --- a/weboob/browser/browsers.py +++ b/weboob/browser/browsers.py @@ -707,13 +707,13 @@ class DomainBrowser(Browser): """ A browser that handles relative URLs and can have a base URL (usually a domain). - For instance self.location('/hello') will get http://weboob.org/hello - if BASEURL is 'http://weboob.org/'. + For instance self.location('/hello') will get http://woob.tech/hello + if BASEURL is 'http://woob.tech/'. """ BASEURL = None """ - Base URL, e.g. 'http://weboob.org/' or 'https://weboob.org/' + Base URL, e.g. 'http://woob.tech/' or 'https://woob.tech/' See absurl(). """ @@ -939,7 +939,7 @@ def pagination(self, func, *args, **kwargs): ... raise NextPage(next.attrib['href']) ... >>> class Browser(PagesBrowser): - ... BASEURL = 'https://weboob.org' + ... BASEURL = 'https://woob.tech' ... list = URL('/tests/list-(?P\d+).html', Page) ... >>> b = Browser() diff --git a/weboob/browser/pages.py b/weboob/browser/pages.py index 135824a697..ff31eedfc4 100644 --- a/weboob/browser/pages.py +++ b/weboob/browser/pages.py @@ -60,7 +60,7 @@ def pagination(func): >>> from .browsers import PagesBrowser >>> from .url import URL >>> class Browser(PagesBrowser): - ... BASEURL = 'https://weboob.org' + ... BASEURL = 'https://woob.tech' ... list = URL('/tests/list-(?P\d+).html', Page) ... >>> b = Browser() diff --git a/weboob/browser/tests/url.py b/weboob/browser/tests/url.py index ecc7e9b652..fcd60f0910 100644 --- a/weboob/browser/tests/url.py +++ b/weboob/browser/tests/url.py @@ -23,7 +23,7 @@ class MyMockBrowserWithoutBrowser(object): - BASEURL = "http://weboob.org/" + BASEURL = "http://woob.tech/" url = URL("http://test.org/") @@ -34,7 +34,7 @@ class MyMockPage(Page): # Mock that allows to represent a Browser class MyMockBrowser(PagesBrowser): - BASEURL = "http://weboob.org/" + BASEURL = "http://woob.tech/" # URL used by method match urlNotRegex = URL("http://test.org/", "http://test2.org/") @@ -48,7 +48,7 @@ class MyMockBrowser(PagesBrowser): urlSameParams = URL("http://test.com/(?P\d+)", "http://test.com\?id=(?P\d+)&name=(?P.+)") # URL used by method is_here - urlIsHere = URL('http://weboob.org/(?P)', MyMockPage) + urlIsHere = URL('http://woob.tech/(?P)', MyMockPage) urlIsHereDifKlass = URL('http://free.fr/', MyMockPage) @@ -64,14 +64,14 @@ def setUp(self): def test_match_base_none_browser_none(self): self.assertRaises(AssertionError, self.myBrowserWithoutBrowser.url.match, - "http://weboob.org/") + "http://woob.tech/") # Check that no assert is raised when browser is none and a base is indeed # instanciated when given as a parameter def test_match_base_not_none_browser_none(self): try: - self.myBrowserWithoutBrowser.url.match("http://weboob.org/news", - "http://weboob.org/") + self.myBrowserWithoutBrowser.url.match("http://woob.tech/news", + "http://woob.tech/") except AssertionError: self.fail("Method match returns an AssertionError while" + " base parameter is not none!") @@ -79,7 +79,7 @@ def test_match_base_not_none_browser_none(self): # Check that none is returned when none of the defined urls is a regex for # the given url def test_match_url_pasregex_baseurl(self): - res = self.myBrowser.urlNotRegex.match("http://weboob.org/news") + res = self.myBrowser.urlNotRegex.match("http://woob.tech/news") self.assertIsNone(res) # Check that true is returned when one of the defined urls is a regex @@ -90,13 +90,13 @@ def test_match_url_regex_baseurl(self): # Successful test with relatives url def test_match_url_without_http(self): - res = self.myBrowser.urlRegWithoutHttp.match("http://weboob.org/news") + res = self.myBrowser.urlRegWithoutHttp.match("http://woob.tech/news") self.assertTrue(res) # Unsuccessful test with relatives url def test_match_url_without_http_fail(self): browser = self.myBrowser - res = browser.urlNotRegWithoutHttp.match("http://weboob.org/news") + res = browser.urlNotRegWithoutHttp.match("http://woob.tech/news") self.assertIsNone(res) # Checks that build returns the right url when it needs to add diff --git a/weboob/core/ouiboube.py b/weboob/core/ouiboube.py index 23d9645fba..092c2d967a 100644 --- a/weboob/core/ouiboube.py +++ b/weboob/core/ouiboube.py @@ -70,10 +70,10 @@ def __init__(self, modules_path=None, storage=None, scheduler=None): if modules_path is None: import pkg_resources # Package weboob_modules is provided by - # https://git.weboob.org/weboob/modules + # https://git.woob.tech/weboob/modules # and should be pip-installed separately. # Note that Weboob users should rather install Weboob modules - # through https://updates.weboob.org/. + # through https://updates.woob.tech/. modules_path = pkg_resources.resource_filename('weboob_modules', '') if modules_path: diff --git a/weboob/core/repositories.py b/weboob/core/repositories.py index 400c127b71..bdad299402 100644 --- a/weboob/core/repositories.py +++ b/weboob/core/repositories.py @@ -438,7 +438,7 @@ def prompt(self, message): # The entries below override the entries above (with # backends of the same name). -https://updates.weboob.org/%(version)s/main/ +https://updates.woob.tech/%(version)s/main/ # DEVELOPMENT # If you want to hack on Woob modules, you may add a -- GitLab