Skip to content

Commit

Permalink
Add packaging information
Browse files Browse the repository at this point in the history
  • Loading branch information
lnagel committed Jun 21, 2016
1 parent 886f760 commit 679f02d
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ __pycache__/

# C extensions
*.so

# Distribution
dist/
*.egg-info
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 Namespace OÜ

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.
5 changes: 5 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include LICENSE
include README.rst
recursive-include rest_framework_sso/migrations *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
16 changes: 16 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
=====
Django REST Framework SSO
=====

Django REST Framework SSO is an extension to Django REST Framework that enables
Single sign-on in a microservice-oriented environment using the JWT standard.

Quick start
-----------

1. Add "rest_framework_sso" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = [
...
'rest_framework_sso',
]
2 changes: 1 addition & 1 deletion rest_framework_sso/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import absolute_import, unicode_literals

__title__ = 'djangorestframework-sso'
__version__ = '0.0.1'
__version__ = '0.0.2'
__author__ = 'Lenno Nagel'
__license__ = 'MIT'
__copyright__ = 'Copyright 2016 Namespace OÜ'
Expand Down
43 changes: 43 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# coding: utf-8
import os
from setuptools import find_packages, setup

with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

setup(
name='djangorestframework-sso',
version='0.0.2',
packages=find_packages(),
include_package_data=True,
license='MIT License',
description='Single sign-on extension to the Django REST Framework.',
long_description=README,
url='https://github.com/namespace-ee/django-rest-framework-sso',
author='Lenno Nagel',
author_email='[email protected]',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Session',
'Topic :: Software Development :: Libraries :: Python Modules',
],
install_requires=[
'PyJWT>=1.4.0,<2.0.0',
],
)

0 comments on commit 679f02d

Please sign in to comment.