diff options
-rw-r--r-- | rbtools/__init__.py | 0 | ||||
-rwxr-xr-x | rbtools/postreview.py (renamed from scripts/post-review) | 6 | ||||
-rwxr-xr-x | setup.py | 11 |
3 files changed, 10 insertions, 7 deletions
diff --git a/rbtools/__init__.py b/rbtools/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/rbtools/__init__.py diff --git a/scripts/post-review b/rbtools/postreview.py index fb65e41..f266378 100755 --- a/scripts/post-review +++ b/rbtools/postreview.py @@ -2423,7 +2423,7 @@ def determine_client(): return (repository_info, tool) -def main(args): +def main(): if 'USERPROFILE' in os.environ: homepath = os.path.join(os.environ["USERPROFILE"], "Local Settings", "Application Data") @@ -2437,7 +2437,7 @@ def main(args): load_config_file(os.path.join(homepath, ".reviewboardrc")) cookie_file = os.path.join(homepath, ".post-review-cookies.txt") - args = parse_options(args) + args = parse_options(sys.argv[1:]) repository_info, tool = determine_client() @@ -2494,4 +2494,4 @@ def main(args): if __name__ == "__main__": - main(sys.argv[1:]) + main() @@ -40,14 +40,17 @@ else: setup(name="RBTools", version=VERSION, license="MIT", - description="Command line applications for use with Review Board", - scripts=[ - "scripts/post-review", - ], + description="Command line tools for use with Review Board", + entry_points = { + 'console_scripts': [ + 'post-review = rbtools.postreview:main', + ], + }, install_requires=['simplejson'], dependency_links = [ download_url, ], + packages=find_packages(), include_package_data=True, maintainer="Christian Hammond", maintainer_email="chipx86@chipx86.com", |