Commit graph

176 commits

Author SHA1 Message Date
Romain Bignon
5bd70c564f os.isatty is now forbidden (as stream.fileno() is not implemented by StringIO)
Use stream.isatty() instead.
2014-10-07 09:39:12 +02:00
Romain Bignon
d61e15cf84 rename things related to browsers
weboob.tools.browser -> weboob.deprecated.browser
weboob.tools.parsers -> weboob.deprecated.browser.parsers
weboob.tools.mech -> weboob.deprecated.mech
weboob.browser2 -> weboob.browser
weboob.core.exceptions -> weboob.exceptions

Also, the new tree for browser2 is:

weboob.browser: import weboob.browser.browsers.* and weboob.browser.url.*
weboob.browser.browsers: all browsers (including PagesBrowser and LoginBrowser)
weboob.browser.url: the URL class
weboob.browser.profiles: all Profile classes
weboob.browser.sessions: WeboobSession and FuturesSession
weboob.browser.cookies: that's a cookies thing
weboob.browser.pages: all Page and derivated classes, and Form class
weboob.browser.exceptions: specific browser exceptions
weboob.browser.elements: AbstractElement classes, and 'method' decorator
weboob.browser.filters.*: all filters
2014-10-07 00:30:07 +02:00
Romain Bignon
be7d49312d add check to prevent prints in weboob modules 2014-10-06 17:22:37 +02:00
Laurent Bachelier
a64787f7f7 Add some previous fixes to pyflakes.sh checks 2014-10-06 17:00:26 +02:00
Laurent Bachelier
74a4ef6723 Use the print function everywhere
python modernize.py --no-six -f libmodernize.fixes.fix_print -w

With manual fixes as the import was put always on top.
2014-10-06 17:00:17 +02:00
Laurent Bachelier
d22656308a debpydep: Use Python3-compatible syntax 2014-10-06 14:05:03 +02:00
Florent
a019819f9d Move browser2 from weboob/tools/b2 to weboob/browser2 2014-10-02 11:01:34 +02:00
Laurent Bachelier
ada65e8143 tests: Allow changing modules path and adding to PYTHONPATH
This way run_tests.sh follows what local_run.sh can do.
2014-10-01 16:23:04 +02:00
Florent
0b58c9a26b Rename filenames in boilerplate 2014-09-26 11:09:35 +02:00
Florent
a64c9f2edb Rename BaseApplication to Application 2014-09-26 10:18:12 +02:00
Florent
5a1d83b567 Rename BaseModule to Module and Module to LoadedModule 2014-09-26 10:18:12 +02:00
Florent
f3aeddffbc Rename backend.py to module.py 2014-09-26 10:18:12 +02:00
Florent
ac5b410b0d Update weboob_lint 2014-09-26 10:18:12 +02:00
Florent
9370b2fae7 s/Backend/Module 2014-09-26 10:18:11 +02:00
Florent
5fe0092c2c Move base_backend.py to base_module.py 2014-09-26 10:18:11 +02:00
Florent
3ecb491c1c s/BACKEND/MODULE/ 2014-09-26 10:18:11 +02:00
Florent
8559af3d6a s/BaseBackend/BaseModule 2014-09-26 10:18:11 +02:00
Laurent Bachelier
174b5674c1 boilerplate: Remove useless __all__ 2014-09-09 18:50:24 +02:00
François Revol
e25d8cabc4 Use XDG_CONFIG_HOME as fallback 2014-09-05 08:37:55 +02:00
Florent
432f97e95c bump to 1.0 2014-09-03 17:14:10 +02:00
Florent
d479a86c4d Add a simple script to help generating changelog 2014-09-02 15:48:52 +02:00
Florent
6de2ed66b1 Upgrade the error message in boilerplate 2014-07-07 16:30:57 +02:00
Laurent Bachelier
36a4b78e67 make_man: Tell that it was generated automatically
So people don't waste time altering them, but alter the source instead.
2014-06-20 17:58:51 +02:00
Oleg Plakhotniuk
a2bbd19a75 Fix call of test.py
close #1403
2014-06-18 15:00:50 +02:00
Oleg Plakhotniuk
0572b710c3 Fix call of pyflakes on Archlinux
close #1404
2014-06-18 14:58:54 +02:00
Laurent Bachelier
da611a08f8 local_run: Allow customizing where the modules are 2014-05-26 20:07:41 +02:00
Florent
9ca0bbae6a bump to 0.j 2014-05-19 22:45:35 +02:00
Florent
1db6406e08 Run tools/stale_pyc.py before local installation 2014-04-15 10:41:44 +02:00
Vincent A
7f159cf20d Fix missing URL import in base boilerplate 2014-04-04 00:56:29 +02:00
Romain Bignon
08adb2a63e use browser2 in boilerplate 2014-03-22 12:43:53 +01:00
Romain Bignon
12470c1b8f ignore 'except' in a comment 2014-03-13 22:06:48 +01:00
Vincent A
43ec8a8a00 boilerplate: fix variable misuse in 'cap' recipe 2014-03-02 21:32:43 +01:00
Vincent A
7b6c5e8544 boilerplate: add 'cap' recipe to prepare methods 2014-03-02 20:57:28 +01:00
Florent
e91d05b207 Espace more "-" in man pages 2014-02-19 14:57:24 +01:00
Florent
a82f57512c bump to 0.i 2014-01-08 23:40:16 +01:00
Florent
c045c34379 Revert "Trailing whitespace"
Python does not like """"

This reverts commit ff34cc7b66.
2014-01-08 23:38:27 +01:00
Florent
ff34cc7b66 Trailing whitespace 2014-01-08 23:29:55 +01:00
Laurent Bachelier
665e19b80b local_run: Augment existing PYTHONPATH 2013-12-30 02:47:07 +01:00
Laurent Bachelier
513567b6f8 Fix some typos and better wording on conditions documentation 2013-12-16 16:46:54 +01:00
Florent
920e8edc44 Add documentation on conditions 2013-12-16 16:40:14 +01:00
Laurent Bachelier
531e93999a Use more common syntax, perhaps fixing a bug
refs #1299
2013-12-10 19:48:31 +01:00
Florent
6d82bed915 Remove tests for pyflakes 2013-08-12 17:07:50 +02:00
Laurent Bachelier
57d38783b6 pyflakes.sh: Explicit errors 2013-08-12 15:32:09 +02:00
Laurent Bachelier
9ccc3eb338 Get absolute path without readlink
Because of BSD.
2013-08-12 15:32:09 +02:00
Florent
9b022b2ebe bump to 0.h 2013-08-03 14:31:13 +02:00
Laurent Bachelier
230e9bba59 run_tests: Force copied name to be "backends"
It would cause issues if we had a different filename for WEBOOB_BACKENDS.
2013-08-03 13:31:03 +02:00
Romain Bignon
eba6f828e3 fix encoding issue 2013-08-03 12:31:22 +02:00
Laurent Bachelier
2acb5a586d Disable colors while making manpages 2013-08-03 01:19:05 +02:00
Florent
5dc8438366 Revert "Fix encoding error in make_man"
This reverts commit fc9a503f6c.
It breaks manpage
2013-08-02 23:36:18 +02:00
Florent
7e6c4f0bf9 Use C local 2013-08-02 23:34:20 +02:00