kopia lustrzana https://github.com/jupyterhub/repo2docker
Add a __main__ and an entrypoint
rodzic
13226e1f27
commit
e3224392e0
|
@ -0,0 +1,5 @@
|
||||||
|
from .app import Repo2Docker
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
f = Repo2Docker()
|
||||||
|
f.run()
|
|
@ -186,7 +186,3 @@ class Repo2Docker(Application):
|
||||||
shutil.rmtree(checkout_path)
|
shutil.rmtree(checkout_path)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
f = Repo2Docker()
|
|
||||||
f.initialize()
|
|
||||||
f.run()
|
|
||||||
|
|
5
setup.py
5
setup.py
|
@ -12,4 +12,9 @@ setup(
|
||||||
author_email='yuvipanda@gmail.com',
|
author_email='yuvipanda@gmail.com',
|
||||||
license='BSD',
|
license='BSD',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
|
entry_points={
|
||||||
|
'console_scripts': [
|
||||||
|
'jupyter-repo2docker = repo2docker.__main__:main'
|
||||||
|
]
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
Ładowanie…
Reference in New Issue