import os
import sys

from pywikibot.tools import (
    PY2,
    PYTHON_VERSION,
    StringTypes,
)

from tests import join_root_path, unittest_print
from tests.aspects import (unittest, DefaultSiteTestCase, MetaTestCaseClass,
                           PwbTestCase)
from tests.utils import allowed_failure, execute_pwb, add_metaclass

scripts_path = join_root_path('scripts')

archive_path = join_root_path('scripts', 'archive')

# These dependencies are not always the package name which is in setup.py.
# e.g. 'PIL.ImageTk' is a object provided by several different pypi packages,
# and setup.py requests that 'Pillow' is installed to provide 'PIL.ImageTk'.
# Here, it doesnt matter which pypi package was requested and installed.
# Here, the name given to the module which will be imported is required.
script_deps = {
    'script_wui': ['crontab', 'lua'],
    # Note: package 'lunatic-python' provides module 'lua'
    'flickrripper': ['flickrapi'],
    'imageharvest': ['bs4'],
    'match_images': ['PIL.ImageTk'],
    'states_redirect': ['pycountry'],
Exemple #2
0
__version__ = '$Id: 090ebc12457bb9b972a6da72b3faa5c8876ccdf4 $'

import os
import sys

from pywikibot.tools import (
    PY2,
    PYTHON_VERSION,
    StringTypes,
)

from tests import join_root_path
from tests.aspects import unittest, DefaultSiteTestCase, MetaTestCaseClass, PwbTestCase
from tests.utils import allowed_failure, execute_pwb, add_metaclass

scripts_path = join_root_path('scripts')

if PY2:
    TK_IMPORT = 'Tkinter'
else:
    TK_IMPORT = 'tkinter'

# These dependencies are not always the package name which is in setup.py.
# e.g. 'PIL.ImageTk' is a object provided by several different pypi packages,
# and setup.py requests that 'Pillow' is installed to provide 'PIL.ImageTk'.
# Here, it doesnt matter which pypi package was requested and installed.
# Here, the name given to the module which will be imported is required.
script_deps = {
    'imagecopy': [TK_IMPORT],
    'imagecopy_self': [TK_IMPORT],
    'script_wui': ['crontab', 'lua'],
__version__ = '$Id: 5837e986443c7577b86b14a838666bef6da7dcca $'

import os
import sys

from pywikibot.tools import (
    PY2,
    PYTHON_VERSION,
    StringTypes,
)

from tests import join_root_path
from tests.aspects import unittest, DefaultSiteTestCase, MetaTestCaseClass, PwbTestCase
from tests.utils import allowed_failure, execute_pwb, add_metaclass

scripts_path = join_root_path('scripts')

archive_path = join_root_path('scripts', 'archive')

if PY2:
    TK_IMPORT = 'Tkinter'
else:
    TK_IMPORT = 'tkinter'

# These dependencies are not always the package name which is in setup.py.
# e.g. 'PIL.ImageTk' is a object provided by several different pypi packages,
# and setup.py requests that 'Pillow' is installed to provide 'PIL.ImageTk'.
# Here, it doesnt matter which pypi package was requested and installed.
# Here, the name given to the module which will be imported is required.
script_deps = {
    'imagecopy': [TK_IMPORT],
__version__ = '$Id: 68d394d9019d5c1471dd20e0765fa29b69f32aec $'

import os
import sys

from pywikibot.tools import (
    PY2,
    PYTHON_VERSION,
    StringTypes,
)

from tests import join_root_path
from tests.aspects import unittest, DefaultSiteTestCase, MetaTestCaseClass, PwbTestCase
from tests.utils import allowed_failure, execute_pwb, add_metaclass

scripts_path = join_root_path('scripts')

if PY2:
    TK_IMPORT = 'Tkinter'
else:
    TK_IMPORT = 'tkinter'

# These dependencies are not always the package name which is in setup.py.
# e.g. 'PIL.ImageTk' is a object provided by several different pypi packages,
# and setup.py requests that 'Pillow' is installed to provide 'PIL.ImageTk'.
# Here, it doesnt matter which pypi package was requested and installed.
# Here, the name given to the module which will be imported is required.
script_deps = {
    'imagecopy': [TK_IMPORT],
    'imagecopy_self': [TK_IMPORT],
    'script_wui': ['crontab', 'lua'],