Commits

Michael Hall committed 8a28072 Merge

Setup files

Comments (0)

Files changed (5)

COPYING

-Copyright 2009 H. Lee Moffitt Cancer Center and Research Institute, Inc. 
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this 
-list of conditions and the following disclaimer. 
-
-2. 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. 
-
-3. Neither the name of H. Lee Moffitt Cancer Center and Research Institute, Inc.
-, a.k.a. Moffitt Cancer Center, nor the names of its contributors may be used to
-endorse or promote products derived from this software without specific prior
-written permission.
-
-THIS SOFTWARE IS PROVIDED BY MOFFITT CANCER CENTER .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 HOLDER 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, EVEN IF
-ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those
-of the authors and should not be interpreted as representing official policies,
-either expressed or implied, of Moffitt Cancer Center.
-
+Copyright 2009 H. Lee Moffitt Cancer Center and Research Institute, Inc. 
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this 
+list of conditions and the following disclaimer. 
+
+2. 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. 
+
+3. Neither the name of H. Lee Moffitt Cancer Center and Research Institute, Inc.
+, a.k.a. Moffitt Cancer Center, nor the names of its contributors may be used to
+endorse or promote products derived from this software without specific prior
+written permission.
+
+THIS SOFTWARE IS PROVIDED BY MOFFITT CANCER CENTER .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 HOLDER 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, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+The views and conclusions contained in the software and documentation are those
+of the authors and should not be interpreted as representing official policies,
+either expressed or implied, of Moffitt Cancer Center.
+
+How to use django-extauth
+-------------------------
+
+TODO: To be filled with the wiki information found at
+http://bitbucket.org/mhall119/django-extauth/wiki/Home
+Installing the latest development version of django-extauth
+-----------------------------------------------------------
+
+To install, first check out the latest version of the application from
+Mercurial:
+
+    hg clone ssh://hg@bitbucket.org/mhall119/django-extauth
+
+Now, link the inner `extauth` project to your Python path:
+
+    sudo ln -s `pwd`/extauth SITE_PACKAGES_DIR/extauth
+
+If you don't know the location of your site packages directory, this hack might
+do the trick for you:
+
+    sudo ln -s `pwd`/extauth `python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`/extauth
+
+Now it's installed!  Please see `readme.txt` for information on how to set up and use this
+application in your projects.
+
+Installing via setup.py
+-----------------------
+
+Included with this application is a file named `setup.py`.  It's possible to
+use this file to install this application to your system, by invoking the
+following command:
+
+    sudo python setup.py install
+
+Once that's done, you should be able to begin using django-extauth at will.
+
+Installing via setuptools
+-------------------------
+
+If you have setuptools_ installed, you can simply run the following command
+to install django-extauth:
+
+    sudo easy_install django-extauth
+
+import os
+from setuptools import setup, find_packages
+
+def read(fname):
+    return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+version = '1.0'
+
+setup(
+    name='django-extauth',
+    version=version,
+    description="Extended authorization framework for Django, including field-level permissions and role-based permissions",
+    long_description=read('docs/readme.txt'),
+    classifiers=[
+        "Programming Language :: Python",
+        "Framework :: Django",
+        "Environment :: Web Environment",
+    ],
+    keywords='django, extauth, role, permission',
+    author='Michael Hall',
+    author_email='mhall119@gmail.com',
+    url='http://bitbucket.org/mhall119/django-extauth',
+    license='BSD',
+    packages=find_packages(),
+    include_package_data=True,
+    zip_safe=False,
+)