From cb4e0b4b142c4aa003c87ab52c9f9949431ce1b0 Mon Sep 17 00:00:00 2001 From: Alen Mujezinovic Date: Wed, 18 Jan 2012 17:03:41 +0000 Subject: [PATCH] Initial commit --- LICENSE | 22 ++++++++++++++++++++++ MANIFEST.in | 4 ++++ README.md | 0 provider/__init__.py | 0 provider/models.py | 3 +++ provider/tests.py | 16 ++++++++++++++++ provider/views.py | 1 + setup.py | 28 ++++++++++++++++++++++++++++ 8 files changed, 74 insertions(+) create mode 100644 LICENSE create mode 100644 MANIFEST.in create mode 100644 README.md create mode 100644 provider/__init__.py create mode 100644 provider/models.py create mode 100644 provider/tests.py create mode 100644 provider/views.py create mode 100644 setup.py diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c68203d --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2012 Caffeinehit Ltd + +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. \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..43cdc77 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,4 @@ +include LICENSE +include README.rst +recursive-include provider/templates *.html +recursive-include provider/templates *.txt \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/provider/__init__.py b/provider/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/provider/models.py b/provider/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/provider/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/provider/tests.py b/provider/tests.py new file mode 100644 index 0000000..501deb7 --- /dev/null +++ b/provider/tests.py @@ -0,0 +1,16 @@ +""" +This file demonstrates writing tests using the unittest module. These will pass +when you run "manage.py test". + +Replace this with more appropriate tests for your application. +""" + +from django.test import TestCase + + +class SimpleTest(TestCase): + def test_basic_addition(self): + """ + Tests that 1 + 1 always equals 2. + """ + self.assertEqual(1 + 1, 2) diff --git a/provider/views.py b/provider/views.py new file mode 100644 index 0000000..60f00ef --- /dev/null +++ b/provider/views.py @@ -0,0 +1 @@ +# Create your views here. diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3480035 --- /dev/null +++ b/setup.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +from setuptools import setup, find_packages +import provider + +setup( + name='django-oauth2-provider', + version=provider.__version__, + description='Provide OAuth2 access to your app', + long_description=open('README.rst').read(), + author='Alen Mujezinovic', + author_email='alen@caffeinehit.com', + packages= filter( + lambda package: not package.startswith('testproject'), find_packages()), + classifiers=[ + 'Environment :: Web Environment', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: BSD License', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Framework :: Django', + ], + install_requires=[ + + ], + include_package_data=True, + zip_safe=False, +)