Browse Source

Merge pull request #100 from coddingtonbear/add_entrypoint

Adding command-line script entrypoints to setup.
Arnau Sanchez 9 years ago
parent
commit
ebd85d8671
2 changed files with 10 additions and 0 deletions
  1. 5 0
      setup.py
  2. 5 0
      youtube_upload/cmdline.py

+ 5 - 0
setup.py

@@ -24,6 +24,11 @@ setup_kwargs = {
         'Programming Language :: Python',
         'Programming Language :: Python',
         'Topic :: Internet :: WWW/HTTP',
         'Topic :: Internet :: WWW/HTTP',
     ],
     ],
+    "entry_points": {
+        'console_scripts': [
+            'youtube-upload = youtube_upload.cmdline:cmdline_main'
+        ],
+    }
 }
 }
 
 
 setup(**setup_kwargs)
 setup(**setup_kwargs)

+ 5 - 0
youtube_upload/cmdline.py

@@ -0,0 +1,5 @@
+from youtube_upload import main
+
+
+def cmdline_main():
+    main()