From 1e660d1908223ccc4ef45fd7b602e2e489053042 Mon Sep 17 00:00:00 2001 From: chriskiehl Date: Fri, 20 Feb 2015 23:05:32 -0500 Subject: [PATCH] Added deploy tools --- gooey/__init__.py | 6 +++--- pip_deploy.py | 4 ++++ setup.py | 29 ++++++++++++++++++++++++++++- 3 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 pip_deploy.py diff --git a/gooey/__init__.py b/gooey/__init__.py index 3b8a58b..eb02fbd 100644 --- a/gooey/__init__.py +++ b/gooey/__init__.py @@ -1,8 +1,8 @@ +import os from gooey.python_bindings.gooey_decorator import Gooey from gooey.python_bindings.gooey_parser import GooeyParser -with open('version', 'r') as f: - version_num = f.read() +version_file = os.path.join(os.path.dirname(__file__), 'version') -__version__ = version_num +__version__ = '0.1.6' diff --git a/pip_deploy.py b/pip_deploy.py new file mode 100644 index 0000000..87c3f13 --- /dev/null +++ b/pip_deploy.py @@ -0,0 +1,4 @@ +import subprocess + +subprocess.call('python setup.py sdist') +subprocess.call('python setup.py sdist bdist_wheel upload') diff --git a/setup.py b/setup.py index 139e4c6..852dee0 100644 --- a/setup.py +++ b/setup.py @@ -29,5 +29,32 @@ setup( 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7' ], - long_description=long_description + long_description=''' +

Gooey (Beta)

+ +

Turn (almost) any Python Console Program into a GUI application with one line

+ +

+ +

+ + +

Quick Start

+ +

Gooey is attached to your code via a simple decorator on your `main` method.

+ +
+    from gooey import Gooey
+
+    @Gooey      <--- all it takes! :)
+    def main():
+      # rest of code
+
+
+ +With the decorator attached, run your program and the GUI will now appear! + +Note: PyPi's formatting is ancient, so checkout the full documentation, instructions, and source on github! + +



''' )