diff --git a/docs/source/genapi.py b/docs/source/genapi.py index 52d51a8151a9ef5754d28c64a95f2ab7852ae74c..dad1d56e489197ccf67a744fc8bd8e822acf1f49 100755 --- a/docs/source/genapi.py +++ b/docs/source/genapi.py @@ -7,7 +7,7 @@ def genapi(): os.system('rm -rf api') os.system('mkdir api') os.chdir('api') - for root, dirs, files in os.walk('../../../weboob/'): + for root, dirs, files in os.walk('../../../woob/'): root = root.split('/', 4)[-1] if root.startswith('applications') or root.startswith('__'): continue diff --git a/modules/axabanque/pages/bank.py b/modules/axabanque/pages/bank.py index 3225e9fcde48060d28693e47fbe546c33fd3ef83..94804e91a66304ecbcd76ad92a90f4e9ebce2cb3 100644 --- a/modules/axabanque/pages/bank.py +++ b/modules/axabanque/pages/bank.py @@ -73,7 +73,7 @@ def js2args(self, s): sub = re.search('oamSubmitForm.+?,\'([^:]+).([^\']+)', s) args['%s:_idcl' % sub.group(1)] = "%s:%s" % (sub.group(1), sub.group(2)) args['%s_SUBMIT' % sub.group(1)] = 1 - args['_form_name'] = sub.group(1) # for weboob only + args['_form_name'] = sub.group(1) # for woob only return args diff --git a/modules/dlfp/test.py b/modules/dlfp/test.py index 4de3c72a91e0a29b5f4c6f7f2deb5b6e93db74e4..cd5df248ece6b6cd32514698350ce3f38bfc6417 100644 --- a/modules/dlfp/test.py +++ b/modules/dlfp/test.py @@ -48,7 +48,7 @@ def test_get_content(self): def test_push_content(self): content = self.backend.get_content(u"Ceci-est-un-test") content.content = "test " + str(datetime.now()) - self.backend.push_content(content, message="test weboob", minor=True) + self.backend.push_content(content, message="test woob", minor=True) @skip_without_config("username") def test_content_preview(self): diff --git a/modules/github/test.py b/modules/github/test.py index e33da618dfec7deb5862a9e3351aae7fefd1709c..4075f5706495e1782d4f8e74ea5b413196b7b669 100644 --- a/modules/github/test.py +++ b/modules/github/test.py @@ -29,14 +29,14 @@ class GithubTest(BackendTest): MODULE = 'github' def test_project(self): - project = self.backend.get_project('weboobie/testing') + project = self.backend.get_project('test-woob/testing') assert project self.assertEqual(project.name, 'testing') - self.assertEqual(project.id, 'weboobie/testing') + self.assertEqual(project.id, 'test-woob/testing') assert all(isinstance(user, User) for user in project.members) - assert any(user.name == 'weboobie' for user in project.members) + assert any(user.name == 'test-woob' for user in project.members) assert all(isinstance(version, Version) for version in project.versions) assert any(version.name == u'1.0' for version in project.versions) @@ -45,10 +45,10 @@ def test_project(self): assert project.find_status('closed').value == Status.VALUE_RESOLVED def test_get_issue(self): - issue = self.backend.get_issue('weboobie/testing/1') + issue = self.backend.get_issue('test-woob/testing/1') assert issue - self.assertEqual(issue.id, 'weboobie/testing/1') + self.assertEqual(issue.id, 'test-woob/testing/1') self.assertEqual(issue.title, 'an open issue') assert 'Hello' in issue.body assert issue.creation @@ -57,7 +57,7 @@ def test_get_issue(self): def test_search(self): query = Query() - query.project = 'weboobie/testing' + query.project = 'test-woob/testing' query.status = 'closed' query.title = 'fix' issues = iter(self.backend.iter_issues(query)) @@ -67,7 +67,7 @@ def test_search(self): @skip_without_config('username', 'password') def test_post_issue(self): - project = self.backend.get_project('weboobie/testing') + project = self.backend.get_project('test-woob/testing') assert project issue = self.backend.create_issue(project.id) @@ -85,7 +85,7 @@ def test_post_issue(self): @skip_without_config('username', 'password') def test_post_comment(self): - issue = self.backend.get_issue('weboobie/testing/26') + issue = self.backend.get_issue('test-woob/testing/26') assert issue ts = str(int(time())) @@ -93,12 +93,12 @@ def test_post_comment(self): update.message = "Yes! It's now %s" % ts self.backend.update_issue(issue, update) - new = self.backend.get_issue('weboobie/testing/26') + new = self.backend.get_issue('test-woob/testing/26') assert any(ts in upd.message for upd in new.history) @skip_without_config('username', 'password') def test_change_status(self): - issue = self.backend.get_issue('weboobie/testing/30') + issue = self.backend.get_issue('test-woob/testing/30') assert issue closing = (issue.status.name != 'closed') @@ -109,7 +109,7 @@ def test_change_status(self): self.backend.post_issue(issue) - new = self.backend.get_issue('weboobie/testing/30') + new = self.backend.get_issue('test-woob/testing/30') if closing: self.assertEqual(new.status.name, 'closed') else: diff --git a/modules/mediawiki/test.py b/modules/mediawiki/test.py index 68bedc76350dce0a5543fd2ca81007ebf7be17c4..c7673bcfed77a2089c6a9db7aa7eb72564475841 100644 --- a/modules/mediawiki/test.py +++ b/modules/mediawiki/test.py @@ -37,7 +37,7 @@ def test_push_content(self): content = self.backend.get_content(u"Project:Sandbox") content.content = "%s\nhello %s" % (content.content, datetime.now()) # ^ warning: wikipedia seems to have blocked lines starting with "test"... - self.backend.push_content(content, message="test weboob", minor=True) + self.backend.push_content(content, message="test woob", minor=True) new_content = self.backend.get_content(u"Project:Sandbox") self.assertEquals(content.content, new_content.content) diff --git a/modules/pastealacon/test.py b/modules/pastealacon/test.py index 193f3d4c21b46976138c545de6ac95a439db4b32..4b79c949f6394b403ac2917bfa31c521a1b6d353 100644 --- a/modules/pastealacon/test.py +++ b/modules/pastealacon/test.py @@ -46,7 +46,7 @@ def _get_paste(self, _id): @skip_without_config() def test_post(self): - p = self.backend.new_paste(None, title=u'ouiboube', contents=u'Weboob Test héhéhé') + p = self.backend.new_paste(None, title=u'ouiboube', contents=u'Woob Test héhéhé') self.backend.post_paste(p, max_age=3600*24) assert p.id self.backend.fill_paste(p, ['title']) diff --git a/modules/pastebin/test.py b/modules/pastebin/test.py index 9fde488b7411e8f42c48ed9aa279362175013723..0062c0f839ea64ac905628ee1c3d9f119c5b2fc0 100644 --- a/modules/pastebin/test.py +++ b/modules/pastebin/test.py @@ -49,7 +49,7 @@ def test_get_paste(self): def test_post(self): # we cannot test public pastes, as the website sometimes forces them as private # there seems to be a very low post per day limit, even when logged in - p = self.backend.new_paste(None, title=u'ouiboube', contents=u'Weboob Test', public=False) + p = self.backend.new_paste(None, title=u'ouiboube', contents=u'Woob Test', public=False) try: self.backend.post_paste(p, max_age=600) except LimitExceeded: @@ -63,7 +63,7 @@ def test_post(self): def test_specialchars(self): # post a paste and get the contents through the HTML response - p1 = self.backend.new_paste(None, title=u'ouiboube', contents=u'Weboob ¿¡', public=False) + p1 = self.backend.new_paste(None, title=u'ouiboube', contents=u'Woob ¿¡', public=False) try: self.backend.post_paste(p1, max_age=600) except LimitExceeded: diff --git a/modules/rmll/test.py b/modules/rmll/test.py index 367ef40de0a82ae7addfa4d1f50e463ad8bf2202..e040b54edb4d6e4abfc2fea41c1248658412daf1 100644 --- a/modules/rmll/test.py +++ b/modules/rmll/test.py @@ -57,7 +57,7 @@ def test_browse(self): self.assertTrue(video.id, 'ID for video not found') def test_missing_duration(self): - videos = self.backend.search_videos('weboob') + videos = self.backend.search_videos('woob') self.assertTrue(videos) for video in videos: self.assertTrue(video.id, 'ID for video not found') diff --git a/modules/s2e/module.py b/modules/s2e/module.py index 9cb5cd34af6a2785117da1a8c090514b38e7720c..3b8e64f03a74a1c95a53c4cc9eff48320b55dd42 100644 --- a/modules/s2e/module.py +++ b/modules/s2e/module.py @@ -55,7 +55,7 @@ def iter_pocket(self, account): def get_profile(self): return self.browser.get_profile() - # From weboob.capabilities.bill.CapDocument + # From woob.capabilities.bill.CapDocument def iter_subscription(self): """Fake subscription - documents are attached to a subscription.""" sub = Subscription() @@ -63,19 +63,19 @@ def iter_subscription(self): sub.label = u'Relevés électroniques / e-statements' yield sub - # From weboob.capabilities.bill.CapDocument + # From woob.capabilities.bill.CapDocument def get_subscription(self, _id): return find_object(self.iter_subscription(), id=_id, error=SubscriptionNotFound) - # From weboob.capabilities.bill.CapDocument + # From woob.capabilities.bill.CapDocument def iter_documents(self, subscription): return self.browser.iter_documents() - # From weboob.capabilities.bill.CapDocument + # From woob.capabilities.bill.CapDocument def get_document(self, _id): return find_object(self.iter_documents(None), id=_id, error=DocumentNotFound) - # From weboob.capabilities.bill.CapDocument + # From woob.capabilities.bill.CapDocument def download_document(self, document): if not isinstance(document, Document): document = self.get_document(document) @@ -83,7 +83,7 @@ def download_document(self, document): return return self.browser.open(document.url).content - # From weboob.capabilities.collection.CapCollection + # From woob.capabilities.collection.CapCollection def iter_resources(self, objs, split_path): """Merging implementation from CapDocument and CapBank.""" if Account in objs: diff --git a/modules/sprunge/test.py b/modules/sprunge/test.py index 201f904a78699e10bd6cbcc0e1fb28bbc533a394..47cfaae5270e43595c3ed565fec2f6e84c125a36 100644 --- a/modules/sprunge/test.py +++ b/modules/sprunge/test.py @@ -35,7 +35,7 @@ def _get_paste(self, _id): assert p.public is False def test_post(self): - p = self.backend.new_paste(None, contents=u'Weboob Test héhéhé') + p = self.backend.new_paste(None, contents=u'Woob Test héhéhé') self.backend.post_paste(p, max_age=False) assert p.id self.backend.fill_paste(p, ['title']) diff --git a/modules/twitter/test.py b/modules/twitter/test.py index eba9921576c51c17f59dbbc940c6961e78e8eb68..e0c10f13884b649bec4f6438eec31f9d5d824c9e 100644 --- a/modules/twitter/test.py +++ b/modules/twitter/test.py @@ -51,13 +51,13 @@ def test_ls_me(self): raise SkipTest("User credentials not defined") def test_ls_search(self): - l = list(itertools.islice(self.backend.iter_resources([BaseObject], ['search', 'weboob']), 0, 20)) + l = list(itertools.islice(self.backend.iter_resources([BaseObject], ['search', 'woob']), 0, 20)) assert len(l) thread = self.backend.get_thread(l[0].id) assert len(thread.root.content) def test_ls_hashtag(self): - l = list(itertools.islice(self.backend.iter_resources([BaseObject], ['hashtags', 'weboob']), 0, 20)) + l = list(itertools.islice(self.backend.iter_resources([BaseObject], ['hashtags', 'woob']), 0, 20)) assert len(l) thread = self.backend.get_thread(l[0].id) assert len(thread.root.content) diff --git a/modules/zerobin/test.py b/modules/zerobin/test.py index 44c1801051786c3637b3d92503a7083b543a9cf0..f8c6fec497e4aa12e461a02724500e2882ebeedd 100644 --- a/modules/zerobin/test.py +++ b/modules/zerobin/test.py @@ -25,7 +25,7 @@ class ZerobinTest(BackendTest): MODULE = 'zerobin' def test_writeread(self): - p = self.backend.new_paste(_id=None, contents='weboob test') + p = self.backend.new_paste(_id=None, contents='woob test') self.backend.browser.post_paste(p, 86400) assert p.url @@ -33,7 +33,7 @@ def test_writeread(self): assert p.title p2 = self.backend.get_paste(p.id) - self.assertEqual(p2.contents, 'weboob test') + self.assertEqual(p2.contents, 'woob test') assert p.url.startswith(self.backend.browser.BASEURL) self.assertEqual(p.url, p2.url) self.assertEqual(p.id, p2.id) diff --git a/setup.py b/setup.py index b3247458c349641571d7ad7da32e12f510304f37..d8d893d59c0459f5157e5d54932552d0eb0297e3 100755 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ PY3 = sys.version_info.major >= 3 -def install_weboob(): +def install_woob(): packages = set(find_packages(exclude=['modules', 'modules.*'])) data_files = [ @@ -63,11 +63,11 @@ def install_weboob(): ) -if os.getenv('WEBOOB_SETUP'): - args = os.getenv('WEBOOB_SETUP').split() +if os.getenv('WOOB_SETUP'): + args = os.getenv('WOOB_SETUP').split() else: args = sys.argv[1:] sys.argv = [sys.argv[0]] + args -install_weboob() +install_woob() diff --git a/tools/hooks/checkerlib.py b/tools/hooks/checkerlib.py index 132de28c12741b0161e4000e38b0b7a1c954fc18..15a79a79551eac87b0b315c8f4712f44d705e7f6 100644 --- a/tools/hooks/checkerlib.py +++ b/tools/hooks/checkerlib.py @@ -30,7 +30,7 @@ def files_to_check(args, pattern=None): to_check = get_lines([ 'git', 'grep', '-l', pattern, git_root / 'modules/**/*.py', # git will interpret wildcards by itself - git_root / 'weboob/**/*.py', + git_root / 'woob/**/*.py', ]) except subprocess.CalledProcessError as exc: if exc.returncode != 1: diff --git a/tools/release.py b/tools/release.py index e6453033cde9f1c8698044daa4dc3d39bd8e907d..90be9975ba0b49d985f2ee179ce8ba1295b2311a 100755 --- a/tools/release.py +++ b/tools/release.py @@ -8,7 +8,7 @@ import datetime from subprocess import check_call, check_output -from weboob.tools.misc import to_unicode +from woob.tools.misc import to_unicode WORKTREE = 'release_tmp' diff --git a/tools/stable_backport.py b/tools/stable_backport.py index dfb863c60ff81faac3b7f50144221ab6b1f144dd..cb3c61d389a90bd5b9617684ec02b3c741883393 100755 --- a/tools/stable_backport.py +++ b/tools/stable_backport.py @@ -14,8 +14,8 @@ from termcolor import colored -STABLE_VERSION = getenv('WEBOOB_BACKPORT_STABLE', '1.3') -DEVEL_BRANCH = getenv('WEBOOB_BACKPORT_DEVEL', 'master') +STABLE_VERSION = getenv('WOOB_BACKPORT_STABLE', '1.3') +DEVEL_BRANCH = getenv('WOOB_BACKPORT_DEVEL', 'master') @contextmanager @@ -43,7 +43,7 @@ def create_compat_dir(name): MANUAL_PORTS = [ - 'weboob.tools.captcha.virtkeyboard', + 'woob.tools.captcha.virtkeyboard', ] MANUAL_PORT_DIR = path.join(path.dirname(__file__), 'stable_backport_data') @@ -60,8 +60,8 @@ def __repr__(self): return '<%s filename=%r linenum=%s message=%r>' % (type(self).__name__, self.filename, self.linenum, self.message) def reimport_module(self, module): - # not a weboob module, probably a false positive. - if not module.startswith('weboob'): + # not a woob module, probably a false positive. + if not module.startswith('woob'): return dirname = module.replace('.', '/') @@ -102,8 +102,8 @@ def reimport_module(self, module): fp.write('%s\n' % line) # Particular case, in devel some imports have been added to - # weboob/browser/__init__.py - system(r'sed -i -e "s/from weboob.browser import/from weboob.browser.browsers import/g" %s' + # woob/browser/__init__.py + system(r'sed -i -e "s/from woob.browser import/from woob.browser.browsers import/g" %s' % self.filename) # Replace import to this module by a relative import to the copy in # compat/