Skip to content

Commit

Permalink
Cleanup CLI naming
Browse files Browse the repository at this point in the history
Based on first review by @minrk

* bundlerextension for consistency
* Move CLI entry point into bundler package
* Add bundler/__main__.py

(c) Copyright IBM Corp. 2016
  • Loading branch information
parente committed Jul 2, 2016
1 parent 8fb6709 commit de77534
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions notebook/bundler/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

from .bundlerextensions import main

if __name__ == '__main__':
main()
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import sys
import os

from .nbextensions import (BaseNBExtensionApp, _get_config_dir)
from ._version import __version__
from ..nbextensions import (BaseNBExtensionApp, _get_config_dir)
from .._version import __version__

from traitlets.config.manager import BaseJSONConfigManager
from traitlets.utils.importstring import import_item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

from notebook.bundlerextensions import main
from notebook.bundler.bundlerextensions import main

if __name__ == '__main__':
main()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
'jupyter-notebook = notebook.notebookapp:main',
'jupyter-nbextension = notebook.nbextensions:main',
'jupyter-serverextension = notebook.serverextensions:main',
'jupyter-bundler = notebook.bundlerextensions:main',
'jupyter-bundlerextension = notebook.bundler.bundlerextensions:main',
]
}
setup_args.pop('scripts', None)
Expand Down

0 comments on commit de77534

Please sign in to comment.