Skip to content

Allow runpy invocation of CLI tool (python -m gitlab) #713

@jaraco

Description

@jaraco

Description of the problem, including code/CLI snippet

I would like to be able to invoke the CLI without any console_script wrappers by using Python's built-in runpy module, i.e.:

python -m gitlab --help

Expected Behavior

Invoke the CLI.

Actual Behavior

Error is emitted:

No module named gitlab.__main__; 'gitlab' is a package and cannot be directly executed

Specifications

  • python-gitlab version: 1.8.0
  • API version you are using (v3/v4): n/a
  • Gitlab server version (or gitlab.com): n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions