From 4a14aa219fff710edee97ae645bafcea57a21846 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 22 Jan 2011 18:40:23 -0500 Subject: [PATCH] Basic start. --- .gitignore | 1 + AUTHORS | 13 +++++++++++++ HISTORY.rst | 8 ++++++++ LICENSE | 13 +++++++++++++ MANIFEST.in | 1 + README.rst | 17 +++++++++++++++++ TODO.rst | 1 + clint/__init__.py | 0 fabfile.py | 17 +++++++++++++++++ setup.py | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 117 insertions(+) create mode 100644 .gitignore create mode 100644 AUTHORS create mode 100644 HISTORY.rst create mode 100644 LICENSE create mode 100644 MANIFEST.in create mode 100644 README.rst create mode 100644 TODO.rst create mode 100644 clint/__init__.py create mode 100644 fabfile.py create mode 100644 setup.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..928e481 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,13 @@ +Wolfram is written and maintained by Kenneth Reitz and +various contributors: + +Development Lead +```````````````` + +- Kenneth Reitz + + +Patches and Suggestions +``````````````````````` + +- A lucky someone! :) \ No newline at end of file diff --git a/HISTORY.rst b/HISTORY.rst new file mode 100644 index 0000000..dc6204c --- /dev/null +++ b/HISTORY.rst @@ -0,0 +1,8 @@ +History +------- + +0.0.1 (2011-01-2?) +++++++++++++++++++ + +* Initial Release! + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e80b0ca --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2011, Kenneth Reitz + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..4506cce --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include HISTORY.rst README.rst LICENSE AUTHORS \ No newline at end of file diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..88ced84 --- /dev/null +++ b/README.rst @@ -0,0 +1,17 @@ +WolframAlpha API, v2, Wrapper for Python +========================================= + +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +To install: :: + + $ pip install wolfram + + +Influenced by ask/github2, hopefully. :: + + from wolfram import wolf + + wolf.api_key = WEIFHWIHF + + diff --git a/TODO.rst b/TODO.rst new file mode 100644 index 0000000..5592a8f --- /dev/null +++ b/TODO.rst @@ -0,0 +1 @@ +* Register on PyPi \ No newline at end of file diff --git a/clint/__init__.py b/clint/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/fabfile.py b/fabfile.py new file mode 100644 index 0000000..0138e4d --- /dev/null +++ b/fabfile.py @@ -0,0 +1,17 @@ +import os +from fabric.api import * + +os.f +def scrub(): + """ Death to the bytecode! """ + local('rm -fr dist build') + local("find . -name \"*.pyc\" -exec rm '{}' ';'") + +#def docs(): +# """Build docs.""" +# os.system('make html') +# os.chdir('_build/html') +# os.system('sphinxtogithub .') +# os.system('git add -A') +# os.system('git commit -m \'documentation update\'') +# os.system('git push origin gh-pages') \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e4f8a47 --- /dev/null +++ b/setup.py @@ -0,0 +1,46 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import os +import sys + +from distutils.core import setup + + +def publish(): + """Publish to PyPi""" + os.system("python setup.py sdist upload") + +if sys.argv[-1] == "publish": + publish() + sys.exit() + +required = [] + +setup( + name='wolfram', + version='0.0.1', + description='Python wrapper for the Wolfram Alpha API, v2', + long_description=open('README.rst').read() + '\n\n' + + open('HISTORY.rst').read(), + author='Kenneth Reitz', + author_email='me@kennethreitz.com', + url='https://github.com/kennethreitz/wolfram', + packages= [ + 'wolfram', + ], + install_requires=required, + license='MIT', + classifiers=( + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'Natural Language :: English', + 'License :: OSI Approved :: MIT License', + 'Programming Language :: Python', + # 'Programming Language :: Python :: 2.5', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + # 'Programming Language :: Python :: 3.0', + # 'Programming Language :: Python :: 3.1', + ), +)