-
Notifications
You must be signed in to change notification settings - Fork 0
/
redmine.py
51 lines (41 loc) · 2.49 KB
/
redmine.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import sublime
import sys
from imp import reload
reloader_name = 'redmine.redmine.reloader'
# Make sure all dependencies are reloaded on upgrade
if reloader_name in sys.modules:
reload(sys.modules[reloader_name])
try:
# Python 3
from .pyredminews.redmine.redmine import Redmine
from .redmine import reloader
from .redmine.commands.list_projects_command import RedmineListProjectsCommand
# from .redmine.commands.add_repository_command import AddRepositoryCommand
# from .redmine.commands.create_binary_package_command import CreateBinaryPackageCommand
# from .redmine.commands.create_package_command import CreatePackageCommand
# from .redmine.commands.disable_package_command import DisablePackageCommand
# from .redmine.commands.discover_packages_command import DiscoverPackagesCommand
# from .redmine.commands.enable_package_command import EnablePackageCommand
# from .redmine.commands.install_package_command import InstallPackageCommand
# from .redmine.commands.list_packages_command import ListPackagesCommand
# from .redmine.commands.remove_package_command import RemovePackageCommand
# from .redmine.commands.upgrade_all_packages_command import UpgradeAllPackagesCommand
# from .redmine.commands.upgrade_package_command import UpgradePackageCommand
# from .redmine.package_cleanup import PackageCleanup
except (ValueError):
# Python 2
from .pyredminews.redmine.redmine import Redmine
from redmine import reloader
from redmine.commands.list_projects_command import RedmineListProjectsCommand
# from redmine.commands.add_repository_command import AddRepositoryCommand
# from redmine.commands.create_binary_package_command import CreateBinaryPackageCommand
# from redmine.commands.create_package_command import CreatePackageCommand
# from redmine.commands.disable_package_command import DisablePackageCommand
# from redmine.commands.discover_packages_command import DiscoverPackagesCommand
# from redmine.commands.enable_package_command import EnablePackageCommand
# from redmine.commands.install_package_command import InstallPackageCommand
# from redmine.commands.list_packages_command import ListPackagesCommand
# from redmine.commands.remove_package_command import RemovePackageCommand
# from redmine.commands.upgrade_all_packages_command import UpgradeAllPackagesCommand
# from redmine.commands.upgrade_package_command import UpgradePackageCommand
# from redmine.package_cleanup import PackageCleanup