diff --git a/counterparty-core/counterpartycore/lib/__init__.py b/counterparty-core/counterpartycore/lib/__init__.py index e69de29bb2..a459613fbc 100644 --- a/counterparty-core/counterpartycore/lib/__init__.py +++ b/counterparty-core/counterpartycore/lib/__init__.py @@ -0,0 +1 @@ +from . import cli # noqa F401 diff --git a/counterparty-core/counterpartycore/lib/api/__init__.py b/counterparty-core/counterpartycore/lib/api/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/counterparty-core/counterpartycore/lib/cli/__init__.py b/counterparty-core/counterpartycore/lib/cli/__init__.py new file mode 100644 index 0000000000..c261c524ad --- /dev/null +++ b/counterparty-core/counterpartycore/lib/cli/__init__.py @@ -0,0 +1 @@ +from . import main # noqa F401 diff --git a/counterparty-core/counterpartycore/lib/cli/main.py b/counterparty-core/counterpartycore/lib/cli/main.py index e45a34d8bf..09938fff46 100755 --- a/counterparty-core/counterpartycore/lib/cli/main.py +++ b/counterparty-core/counterpartycore/lib/cli/main.py @@ -1,16 +1,15 @@ -#! /usr/bin/env python3 - import argparse import logging import os from urllib.parse import quote_plus as urlencode +from termcolor import cprint + from counterpartycore import server from counterpartycore.lib import config from counterpartycore.lib.api import dbbuilder from counterpartycore.lib.cli import bootstrap, setup from counterpartycore.lib.tools import sentry -from termcolor import cprint logger = logging.getLogger(config.LOGGER_NAME) diff --git a/counterparty-core/counterpartycore/lib/parser/__init__.py b/counterparty-core/counterpartycore/lib/parser/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/counterparty-core/counterpartycore/lib/telemetry/__init__.py b/counterparty-core/counterpartycore/lib/telemetry/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/counterparty-core/counterpartycore/lib/tools/__init__.py b/counterparty-core/counterpartycore/lib/tools/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/counterparty-core/pyproject.toml b/counterparty-core/pyproject.toml index 2d8283f586..925589529c 100644 --- a/counterparty-core/pyproject.toml +++ b/counterparty-core/pyproject.toml @@ -51,7 +51,7 @@ pre-install-commands = [ ] [project.scripts] -counterparty-server = "counterpartycore:cli.main.main" +counterparty-server = "counterpartycore:lib.cli.main.main" [tool.license_scanner] allowed-licences = [