Skip to content

Commit 679f02d

Browse files
committed
Add packaging information
1 parent 886f760 commit 679f02d

File tree

6 files changed

+90
-1
lines changed

6 files changed

+90
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ __pycache__/
88

99
# C extensions
1010
*.so
11+
12+
# Distribution
13+
dist/
14+
*.egg-info

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Namespace OÜ
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

MANIFEST.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include LICENSE
2+
include README.rst
3+
recursive-include rest_framework_sso/migrations *
4+
recursive-exclude * __pycache__
5+
recursive-exclude * *.py[co]

README.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
=====
2+
Django REST Framework SSO
3+
=====
4+
5+
Django REST Framework SSO is an extension to Django REST Framework that enables
6+
Single sign-on in a microservice-oriented environment using the JWT standard.
7+
8+
Quick start
9+
-----------
10+
11+
1. Add "rest_framework_sso" to your INSTALLED_APPS setting like this::
12+
13+
INSTALLED_APPS = [
14+
...
15+
'rest_framework_sso',
16+
]

rest_framework_sso/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from __future__ import absolute_import, unicode_literals
33

44
__title__ = 'djangorestframework-sso'
5-
__version__ = '0.0.1'
5+
__version__ = '0.0.2'
66
__author__ = 'Lenno Nagel'
77
__license__ = 'MIT'
88
__copyright__ = 'Copyright 2016 Namespace OÜ'

setup.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# coding: utf-8
2+
import os
3+
from setuptools import find_packages, setup
4+
5+
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
6+
README = readme.read()
7+
8+
# allow setup.py to be run from any path
9+
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
10+
11+
setup(
12+
name='djangorestframework-sso',
13+
version='0.0.2',
14+
packages=find_packages(),
15+
include_package_data=True,
16+
license='MIT License',
17+
description='Single sign-on extension to the Django REST Framework.',
18+
long_description=README,
19+
url='https://github.com/namespace-ee/django-rest-framework-sso',
20+
author='Lenno Nagel',
21+
author_email='[email protected]',
22+
classifiers=[
23+
'Development Status :: 3 - Alpha',
24+
'Environment :: Web Environment',
25+
'Framework :: Django',
26+
'Framework :: Django :: 1.9',
27+
'Intended Audience :: Developers',
28+
'License :: OSI Approved :: MIT License',
29+
'Operating System :: OS Independent',
30+
'Programming Language :: Python',
31+
'Programming Language :: Python :: 2',
32+
'Programming Language :: Python :: 2.7',
33+
'Programming Language :: Python :: 3',
34+
'Programming Language :: Python :: 3.4',
35+
'Programming Language :: Python :: 3.5',
36+
'Topic :: Internet :: WWW/HTTP',
37+
'Topic :: Internet :: WWW/HTTP :: Session',
38+
'Topic :: Software Development :: Libraries :: Python Modules',
39+
],
40+
install_requires=[
41+
'PyJWT>=1.4.0,<2.0.0',
42+
],
43+
)

0 commit comments

Comments
 (0)