Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add setup.py and LICENSE

  • Loading branch information...
commit 55ba05e3172ac415e3ec451b9689efa2ac2e8bf8 1 parent 5d66369
@jarus authored
Showing with 85 additions and 2 deletions.
  1. +5 −0 .gitignore
  2. +32 −0 LICENSE
  3. +7 −2 fabric_gunicorn.py
  4. +41 −0 setup.py
View
5 .gitignore
@@ -0,0 +1,5 @@
+*.orig
+*.pyc
+*.o
+*.DS_Store
+*.egg-info/
View
32 LICENSE
@@ -0,0 +1,32 @@
+Copyright (c) 2012 by Christoph Heer
+
+Some rights reserved.
+
+Redistribution and use in source and binary forms of the software as well
+as documentation, with or without modification, are permitted provided
+that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+* The names of the contributors may not be used to endorse or
+ promote products derived from this software without specific
+ prior written permission.
+
+THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
+NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
+OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
View
9 fabric_gunicorn.py
@@ -1,3 +1,8 @@
+# -*- coding: utf-8 -*-
+# MongoKit-Backref
+# Copyright: (c) 2012 Christoph Heer <Christoph.Heer@googlemail.com>
+# License: BSD, see LICENSE for more details.
+
from time import sleep
from fabric import colors
@@ -52,8 +57,8 @@ def start():
]
options_string = ' '.join(options)
- run('%sgunicorn %s %s' % (prefix_string, options_string,
- env.gunicorn_wsgi_app))
+ run('%s gunicorn %s %s' % (prefix_string, options_string,
+ env.gunicorn_wsgi_app))
if gunicorn_running():
puts(colors.green("gunicorn started"))
View
41 setup.py
@@ -0,0 +1,41 @@
+"""
+===============
+fabric-gunicorn
+===============
+
+This is a small fabric file to include in your fabfile.
+
+Links
+`````
+
+* `github <https://github.com/jarus/fabric-gunicorn>`_
+* `development version <https://github.com/jarus/fabric-gunicorn/zipball/master#egg=fabric-gunicorn>`_
+* `fabric <http://fabfile.org>`_
+
+"""
+
+from setuptools import setup
+
+
+setup(
+ name='fabric-gunicorn',
+ version='0.1',
+ url='http://github.com/jarus/fabric-gunicorn',
+ license='BSD',
+ author='Christoph Heer',
+ author_email='Christoph.Heer@googlemail.com',
+ description='fabric file with tasks to control a gunicorn process',
+ long_description=__doc__,
+ py_modules=['fabric_gunicorn'],
+ install_requires=[
+ 'fabric'
+ ],
+ classifiers=[
+ 'Development Status :: 4 - Beta',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: BSD License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Topic :: Software Development :: Libraries :: Python Modules'
+ ]
+)
Please sign in to comment.
Something went wrong with that request. Please try again.