def debug(argv=None):
    """Helper to debug the ListOfUnresolved command."""

    from packetary.cli.app import debug
    debug("unresolved", ListOfUnresolved, argv)
Example #2
0
def debug(argv=None):
    """Helper to debug the ListOfPackages command."""
    from packetary.cli.app import debug
    debug("packages", ListOfPackages, argv)
#    You should have received a copy of the GNU General Public License along
#    with this program; if not, write to the Free Software Foundation, Inc.,
#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

from packetary.cli.commands.base import BaseProduceOutputCommand
from packetary.cli.commands.base import RepositoriesMixin


class ListOfUnresolved(RepositoriesMixin, BaseProduceOutputCommand):
    """Gets the list of external dependencies for repository(es)."""

    columns = (
        "name",
        "version",
        "alternative",
    )

    def take_repo_action(self, repo_api, parsed_args):
        return repo_api.get_unresolved_dependencies(parsed_args.repositories)


def debug(argv=None):
    """Helper to debug the ListOfUnresolved command."""

    from packetary.cli.app import debug
    debug("unresolved", ListOfUnresolved, argv)


if __name__ == "__main__":
    debug()
Example #4
0
def debug(argv=None):
    """Helper to debug the Create command."""
    from packetary.cli.app import debug
    debug("create", CreateCommand, argv)
Example #5
0
            metavar='URL',
            help="Space separated list of repository`s URL to calculate list "
                 "of dependencies, that will be used to filter packages")

        requires_group.add_argument(
            '-R', '--requires-file',
            type=read_lines_from_file,
            dest='requires',
            metavar='FILENAME',
            help="The path to the file with list of repository`s URL "
                 "to calculate list of dependencies, "
                 "that will be used to filter packages")
        return parser

    def take_repo_action(self, api, parsed_args):
        return api.get_packages(
            parsed_args.origins,
            parsed_args.requires,
            parsed_args.bootstrap,
        )


def debug(argv=None):
    """Helper to debug the ListOfPackages command."""
    from packetary.cli.app import debug
    debug("packages", ListOfPackages, argv)


if __name__ == "__main__":
    debug()
Example #6
0
def debug(argv=None):
    """Helper to debug the Clone command."""
    from packetary.cli.app import debug
    debug("clone", CloneCommand, argv)
Example #7
0
def debug(argv=None):
    """Helper to debug the ListOfPackages command."""
    from packetary.cli.app import debug
    debug("packages", ListOfPackages, argv)
Example #8
0
def debug(argv=None):
    """Helper to debug the ListOfUnresolved command."""

    from packetary.cli.app import debug
    debug("unresolved", ListOfUnresolved, argv)
def debug(argv=None):
    """Helper to debug the Build command."""
    from packetary.cli.app import debug
    debug("build", BuildPackageCommand, argv)
Example #10
0
def debug(argv=None):
    """Helper to debug the Build command."""
    from packetary.cli.app import debug
    debug("build", BuildPackageCommand, argv)