ready to rock

This commit is contained in:
Kenneth Reitz
2010-08-02 08:51:57 -04:00
commit 21670e1a42
13 changed files with 176 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
History
=======
0.1.1 (2010-06-14)
------------------
* Fixed some bug
0.1.0 (2010-05-16)
------------------
* Initial Release
+20
View File
@@ -0,0 +1,20 @@
Copyright (c) 2010 Kenneth Reitz
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+1
View File
@@ -0,0 +1 @@
include HISTORY.rst README.rst
+35
View File
@@ -0,0 +1,35 @@
Example
=======
This is an example Python project.
Example Usage
-------------
::
from gistapi import Gist, Gists
gist = Gist('d4507e882a07ac6f9f92')
gist.description # 'Example Gist for gist.py'
gist.files # {'exampleFile': 'Example file content.', 'exampleEmptyFile': ''}
Installation
------------
pip install example
Or, if you must:
easy_install example
Roadmap
-------
* List of various project goals
- Token based Authentication
* Possibly use other hacks in the meantime
* Possibly add nicer command line interface
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example Runner/Dipatch"""
import example
import example.cli
if __name__ == '__main__':
example.cli.start()
+14
View File
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
"""
"""
import cli
import packages
from core import *
__all__ = ['core', 'cli', 'packages']
+8
View File
@@ -0,0 +1,8 @@
# -*- coding: utf-8 -*-
from core import *
def start():
"""Example Dipatch"""
print('Example executed')
+20
View File
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
""" Example -- Core Package
"""
import packages.extlib
import packages.extlib2
__version__ = '0.1.1'
__lisence__ = 'MIT'
__author__ = 'Kenneth Reitz'
class model(object):
"""Generic class used throught application"""
def __init__(self):
pass
View File
View File
View File
Vendored
+21
View File
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
""" Example Fabfile, for project-related tasks.
"""
from fabric.api import *
def task():
"""Some random project-related task"""
print('Example task executed.')
def scrub():
"""Death to the bytecode!"""
local("rm -fr dist build")
local("find . -name \"*.pyc\" -exec rm '{}' ';'")
+35
View File
@@ -0,0 +1,35 @@
#!/usr/bin/env python
# encoding: utf-8
import os
import sys
import example
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()
setup(name='gistapi',
version=example.__version__,
description='Python Example Project',
long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(),
author='Kenneth Reitz',
author_email='me@kennethreitz.com',
url='http://github.com/kennethreitz/python_project',
packages=['example'],
license='MIT',
classifiers = (
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
)
)