update eit imports + minor rename in entropy_path_loader
This commit is contained in:
@@ -18,3 +18,6 @@ sys.modules['_entropy.solo'] = solo
|
||||
|
||||
import magneto
|
||||
sys.modules['_entropy.magneto'] = magneto
|
||||
|
||||
import eit
|
||||
sys.modules['_entropy.eit'] = eit
|
||||
|
||||
@@ -20,15 +20,15 @@ base_dir = osp.dirname(osp.dirname(osp.realpath(__file__)))
|
||||
in_checkout = osp.isfile(osp.join(base_dir, "entropy-in-vcs-checkout"))
|
||||
|
||||
|
||||
def add_import_path(mod):
|
||||
def add_import_path(path):
|
||||
if not in_checkout:
|
||||
raise RuntimeError(
|
||||
"entropy_path_loader used when not in checkout")
|
||||
lib = osp.join(base_dir, mod)
|
||||
lib = osp.join(base_dir, path)
|
||||
sys.path.insert(0, lib)
|
||||
|
||||
|
||||
mods = (
|
||||
mod_paths = (
|
||||
"client",
|
||||
"server",
|
||||
"lib",
|
||||
@@ -36,5 +36,5 @@ mods = (
|
||||
"entropy_path_loader/compat"
|
||||
)
|
||||
|
||||
for mod in mods:
|
||||
add_import_path(mod)
|
||||
for path in mod_paths:
|
||||
add_import_path(path)
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ if os.path.isfile(osp.join(_base, "entropy-in-vcs-checkout")):
|
||||
import entropy_path_loader
|
||||
del osp
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
|
||||
MAN_HEADER="""\
|
||||
EIT(1)
|
||||
|
||||
+1
-1
@@ -11,6 +11,6 @@ if os.path.isfile(osp.join(_base, "entropy-in-vcs-checkout")):
|
||||
import entropy_path_loader
|
||||
del osp
|
||||
|
||||
from eit.main import main
|
||||
from _entropy.eit.main import main
|
||||
sys.argv[0] = "eit"
|
||||
main()
|
||||
|
||||
@@ -21,7 +21,7 @@ for py_file in os.listdir(_cur_dir):
|
||||
if py_file.startswith("_"):
|
||||
continue
|
||||
# strip .py
|
||||
_mod = "eit.commands." + py_file[:-3]
|
||||
_mod = "_entropy.eit.commands." + py_file[:-3]
|
||||
if _mod in _excluded_mods:
|
||||
continue
|
||||
try:
|
||||
|
||||
@@ -15,8 +15,8 @@ import argparse
|
||||
|
||||
from entropy.i18n import _
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.commit import EitCommit
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.commit import EitCommit
|
||||
|
||||
|
||||
class EitAdd(EitCommit):
|
||||
|
||||
@@ -18,8 +18,8 @@ from entropy.output import bold, purple, darkgreen, blue, teal
|
||||
|
||||
import entropy.tools
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitBranch(EitCommand):
|
||||
|
||||
@@ -15,8 +15,8 @@ import argparse
|
||||
from entropy.output import darkgreen, blue
|
||||
from entropy.i18n import _
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitBump(EitCommand):
|
||||
|
||||
@@ -16,8 +16,8 @@ import argparse
|
||||
from entropy.output import darkgreen, blue
|
||||
from entropy.i18n import _
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitCheckout(EitCommand):
|
||||
|
||||
@@ -16,8 +16,8 @@ import argparse
|
||||
from entropy.output import darkgreen, blue, purple
|
||||
from entropy.i18n import _
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitCleanup(EitCommand):
|
||||
|
||||
@@ -20,8 +20,8 @@ from entropy.output import darkgreen, teal, brown, \
|
||||
|
||||
import entropy.tools
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitCommit(EitCommand):
|
||||
|
||||
@@ -16,8 +16,8 @@ import argparse
|
||||
from entropy.output import darkgreen, blue, brown, bold, red, purple, teal
|
||||
from entropy.i18n import _
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitCp(EitCommand):
|
||||
|
||||
@@ -16,8 +16,8 @@ from entropy.i18n import _
|
||||
from entropy.const import etpConst
|
||||
from entropy.output import purple, darkgreen, brown, teal, blue
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitDeps(EitCommand):
|
||||
|
||||
@@ -15,8 +15,8 @@ import argparse
|
||||
from entropy.i18n import _
|
||||
from entropy.output import bold, purple, darkgreen, blue, brown, teal
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitFiles(EitCommand):
|
||||
|
||||
@@ -14,9 +14,9 @@ import argparse
|
||||
|
||||
from entropy.i18n import _
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from eit.utils import graph_packages
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
from _entropy.eit.utils import graph_packages
|
||||
|
||||
class EitGraph(EitCommand):
|
||||
"""
|
||||
|
||||
@@ -14,9 +14,9 @@ import argparse
|
||||
from entropy.i18n import _
|
||||
from entropy.output import teal, purple, darkgreen
|
||||
|
||||
from eit.colorful import ColorfulFormatter
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.colorful import ColorfulFormatter
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
class EitHelp(EitCommand):
|
||||
"""
|
||||
|
||||
@@ -16,8 +16,8 @@ import argparse
|
||||
from entropy.i18n import _
|
||||
from entropy.output import darkgreen, teal
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitInit(EitCommand):
|
||||
|
||||
@@ -17,8 +17,8 @@ from entropy.const import const_file_readable
|
||||
from entropy.i18n import _
|
||||
from entropy.output import teal, purple
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitInject(EitCommand):
|
||||
|
||||
@@ -19,8 +19,8 @@ from entropy.i18n import _
|
||||
from entropy.security import Repository
|
||||
from entropy.tools import convert_unix_time_to_human_time
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitKey(EitCommand):
|
||||
|
||||
@@ -17,8 +17,8 @@ from entropy.output import brown, teal, purple, darkgreen
|
||||
|
||||
import entropy.dep
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitList(EitCommand):
|
||||
|
||||
@@ -16,8 +16,8 @@ from entropy.i18n import _
|
||||
from entropy.output import darkgreen, brown, purple, blue, darkred
|
||||
from entropy.transceivers import EntropyTransceiver
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitLock(EitCommand):
|
||||
|
||||
@@ -17,8 +17,8 @@ import argparse
|
||||
from entropy.const import const_file_readable
|
||||
from entropy.i18n import _
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitLog(EitCommand):
|
||||
|
||||
@@ -15,9 +15,9 @@ import argparse
|
||||
from entropy.i18n import _
|
||||
from entropy.output import purple
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from eit.utils import print_package_info
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
from _entropy.eit.utils import print_package_info
|
||||
|
||||
|
||||
class EitMatch(EitCommand):
|
||||
|
||||
@@ -15,8 +15,8 @@ import argparse
|
||||
|
||||
from entropy.i18n import _
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitMerge(EitCommand):
|
||||
|
||||
@@ -15,8 +15,8 @@ import argparse
|
||||
|
||||
from entropy.i18n import _
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.cp import EitCp
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.cp import EitCp
|
||||
|
||||
|
||||
class EitMv(EitCp):
|
||||
|
||||
@@ -19,8 +19,8 @@ from entropy.i18n import _
|
||||
from entropy.output import blue, darkred, darkgreen, purple, brown, teal
|
||||
from entropy.const import const_mkstemp
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitNotice(EitCommand):
|
||||
|
||||
@@ -16,9 +16,9 @@ import argparse
|
||||
from entropy.i18n import _
|
||||
from entropy.output import purple, darkgreen, teal, bold
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from eit.utils import print_package_info
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
from _entropy.eit.utils import print_package_info
|
||||
|
||||
|
||||
class EitOwn(EitCommand):
|
||||
|
||||
@@ -19,8 +19,8 @@ from entropy.i18n import _
|
||||
from entropy.output import purple, teal
|
||||
from entropy.const import const_mkstemp
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitPkgmove(EitCommand):
|
||||
|
||||
@@ -27,9 +27,9 @@ from entropy.client.interfaces.db import InstalledPackagesRepository
|
||||
|
||||
import entropy.tools
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from eit.commands.push import EitPush
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.push import EitPush
|
||||
|
||||
|
||||
class EitPull(EitCommand):
|
||||
|
||||
@@ -27,8 +27,8 @@ from entropy.client.interfaces.db import InstalledPackagesRepository
|
||||
|
||||
import entropy.tools
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitPush(EitCommand):
|
||||
|
||||
@@ -16,9 +16,9 @@ from entropy.output import purple, darkgreen, bold, brown, teal
|
||||
from entropy.const import etpConst
|
||||
from entropy.i18n import _
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from eit.utils import print_package_info
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
from _entropy.eit.utils import print_package_info
|
||||
|
||||
class EitQuery(EitCommand):
|
||||
"""
|
||||
|
||||
@@ -22,8 +22,8 @@ from entropy.server.interfaces.main import ServerSystemSettingsPlugin
|
||||
|
||||
import entropy.tools
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
class EitRemote(EitCommand):
|
||||
"""
|
||||
|
||||
@@ -15,8 +15,8 @@ import argparse
|
||||
from entropy.i18n import _
|
||||
from entropy.output import purple, darkgreen, brown, teal
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitRemove(EitCommand):
|
||||
|
||||
@@ -14,8 +14,8 @@ import argparse
|
||||
|
||||
from entropy.i18n import _
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.commit import EitCommit
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.commit import EitCommit
|
||||
|
||||
|
||||
class EitRepack(EitCommit):
|
||||
|
||||
@@ -16,9 +16,9 @@ from entropy.i18n import _
|
||||
from entropy.output import blue, darkgreen, purple, teal
|
||||
from entropy.server.interfaces import RepositoryConfigParser
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from eit.utils import print_table
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
from _entropy.eit.utils import print_table
|
||||
|
||||
|
||||
class EitRepo(EitCommand):
|
||||
|
||||
@@ -15,8 +15,8 @@ import argparse
|
||||
from entropy.i18n import _
|
||||
from entropy.output import darkgreen
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.pull import EitPull
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.pull import EitPull
|
||||
|
||||
|
||||
class EitReset(EitPull):
|
||||
|
||||
@@ -14,9 +14,9 @@ import argparse
|
||||
|
||||
from entropy.i18n import _
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from eit.utils import revgraph_packages
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
from _entropy.eit.utils import revgraph_packages
|
||||
|
||||
|
||||
class EitRevgraph(EitCommand):
|
||||
|
||||
@@ -15,9 +15,9 @@ import argparse
|
||||
from entropy.i18n import _
|
||||
from entropy.output import purple
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from eit.utils import print_package_info
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
from _entropy.eit.utils import print_package_info
|
||||
|
||||
|
||||
class EitSearch(EitCommand):
|
||||
|
||||
@@ -18,9 +18,9 @@ from entropy.i18n import _
|
||||
from entropy.output import darkgreen, teal, brown, darkred, \
|
||||
bold, purple, blue
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from eit.utils import print_table
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
from _entropy.eit.utils import print_table
|
||||
|
||||
|
||||
class EitStatus(EitCommand):
|
||||
|
||||
@@ -16,8 +16,8 @@ from entropy.i18n import _
|
||||
from entropy.output import teal, purple
|
||||
from entropy.server.interfaces import Server
|
||||
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from eit.commands.command import EitCommand
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.command import EitCommand
|
||||
|
||||
|
||||
class EitTest(EitCommand):
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ from entropy.output import print_error
|
||||
import entropy.tools
|
||||
|
||||
from entropy.exceptions import OnlineMirrorError
|
||||
from eit.commands.descriptor import EitCommandDescriptor
|
||||
from _entropy.eit.commands.descriptor import EitCommandDescriptor
|
||||
|
||||
|
||||
def handle_exception(exc_class, exc_instance, exc_tb):
|
||||
|
||||
Reference in New Issue
Block a user