From a3a5485e964f18e934b9b88671a18b28742510d5 Mon Sep 17 00:00:00 2001 From: Ludovic Viaud Date: Sun, 26 Oct 2014 23:49:09 +0100 Subject: [PATCH 1/2] clean the project directory --- .gitignore | 2 +- MANIFEST.in | 11 +++++++---- gooey/__init__.py | 7 ++++++- gooey/languages/__init__.py | 0 setup.py | 33 +++++++++++---------------------- test.py | 10 ---------- 6 files changed, 25 insertions(+), 38 deletions(-) delete mode 100644 gooey/languages/__init__.py delete mode 100644 test.py diff --git a/.gitignore b/.gitignore index d871ada..e17f89f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,6 @@ dist build eggs parts -bin var sdist develop-eggs @@ -34,6 +33,7 @@ nosetests.xml .mr.developer.cfg .project .pydevproject +*.sublime* # .idea diff --git a/MANIFEST.in b/MANIFEST.in index 9a0722e..35e8522 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,7 @@ -include *.txt -include *.md -include gooey\images\* -include gooey\languages\* +include README.md +include LICENSE.txt +include MANIFEST.in +recursive-include gooey/images * +recursive-include gooey/languages * +recursive-exclude * __pycache__ +recursive-exclude * *.py[co] diff --git a/gooey/__init__.py b/gooey/__init__.py index fff2c09..dacbfff 100644 --- a/gooey/__init__.py +++ b/gooey/__init__.py @@ -1 +1,6 @@ -from gooey_decorator import Gooey +try: + from gooey_decorator import Gooey +except: + pass + +__version__ = '0.1.0' diff --git a/gooey/languages/__init__.py b/gooey/languages/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/setup.py b/setup.py index da884cc..9d88fc2 100644 --- a/setup.py +++ b/setup.py @@ -1,35 +1,25 @@ -import os +"""Script for setuptools.""" + from setuptools import setup, find_packages with open('README.md') as readme: - long_description = readme.read() - -local_path = os.path.join(os.path.dirname(__file__), 'gooey') - -imagepath = os.path.join(local_path, 'images') -langpath = os.path.join(local_path, 'languages') - -images = [os.path.join(imagepath, image) for image in os.listdir(imagepath)] + long_description = readme.read() -languages = [os.path.join(langpath, lang) - for lang in os.listdir(langpath) - if '.py' not in lang] +version = __import__('gooey').__version__ setup( name='Gooey', - version='0.1.0', + version=version, + url='http://pypi.python.org/pypi/Gooey/', author='Chris Kiehl', author_email='audionautic@gmail.com', - package_data={ - '': ['*.txt', '*.png', '*.jpg', '*.json', '*.ico', '*.gif'] - }, + description=('Turn (almost) any command line program into a full GUI ' + 'application with one line'), + license='MIT', packages=find_packages(), - url='http://pypi.python.org/pypi/Gooey/', - dependency_links = [ - "http://www.wxpython.org/download.php" - ], - license='LICENSE.txt', + include_package_data=True, + dependency_links = ["http://www.wxpython.org/download.php"], classifiers = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', @@ -37,6 +27,5 @@ setup( 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7' ], - description='Turn (almost) any command line program into a full GUI application with one line', long_description=long_description ) diff --git a/test.py b/test.py deleted file mode 100644 index e61f713..0000000 --- a/test.py +++ /dev/null @@ -1,10 +0,0 @@ -''' -Created on Feb 9, 2014 - -@author: Chris -''' - -from gooey import Gooey - -if __name__ == '__main__': - pass \ No newline at end of file From 9e8b15a3d3fec1552ca8c5e31d0704b90d49109f Mon Sep 17 00:00:00 2001 From: Ludovic Viaud Date: Mon, 27 Oct 2014 00:20:45 +0100 Subject: [PATCH 2/2] todo extended --- TODO.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 TODO.md diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..32bccde --- /dev/null +++ b/TODO.md @@ -0,0 +1,27 @@ +TODO +==== + +- Update parser to catch all argparse import styles +- Investigate Docopt +- better graphics + +- Restart Button Change : + * need different strategy for everything added. + +- Fix vertical stacking of restart button +- system for supplying custom widgets to the GUI + -- e.g. a FileChooser, rather than just a TextBox +- Remove debug statements current printing from program +- add optional cancel button. +- allow NoConfig to run without argparse (Issue #43) + * display warning when this happens (could be a misfire on Gooey's end) + * add suppress warnings flag + +- Implemente a simple MVC pattern for isolate gui toolkit specifique code and + argparse specifique code (support for tkinter, qt etc ... and docopt or unix + cli as text) + +- Make a .io site for the presentation + +- More comments and basic api generation + some txt for explain the global + design fo the project