Initial commit

This commit is contained in:
Alen Mujezinovic 2012-01-18 17:03:41 +00:00
commit cb4e0b4b14
8 changed files with 74 additions and 0 deletions

22
LICENSE Normal file
View File

@ -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.

4
MANIFEST.in Normal file
View File

@ -0,0 +1,4 @@
include LICENSE
include README.rst
recursive-include provider/templates *.html
recursive-include provider/templates *.txt

0
README.md Normal file
View File

0
provider/__init__.py Normal file
View File

3
provider/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

16
provider/tests.py Normal file
View File

@ -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)

1
provider/views.py Normal file
View File

@ -0,0 +1 @@
# Create your views here.

28
setup.py Normal file
View File

@ -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,
)