Skip to content

Commit

Permalink
added MANIFEST.in, updated README, PyPI stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
azhukov committed Sep 9, 2015
1 parent 1d7fd72 commit e0ff933
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
@@ -0,0 +1,2 @@
include *.txt
include *.md
4 changes: 1 addition & 3 deletions README.md
Expand Up @@ -14,9 +14,7 @@ $ pip install git+https://github.com/ZhukovAlexander/django-jsonp#egg=django_jso
## Usage

```python
from djsonp.decorators import jsonp
from djsonp.response import JSONPResponse
from djsonp.utils import get_callback
from djsonp import jsonp, JSONPResponse, get_callback

# decorate something that returns a dict-like object
@jsonp
Expand Down
6 changes: 5 additions & 1 deletion django_jsonp/__init__.py
@@ -1 +1,5 @@
__version__ = '1.2.0.dev1'
__version__ = '0.2'

from decorators import jsonp
from response import JSONPResponse
from utils import get_callback
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,3 +1,3 @@
Django>=1.7
Django
pep8
coveralls
11 changes: 9 additions & 2 deletions setup.py
@@ -1,12 +1,19 @@
from distutils.core import setup
import os
import re

import django_jsonp

with open('requirements.txt') as requirements:
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as requirements:
install_requires = requirements.readlines()

# <https://github.com/kennethreitz/requests/blob/master/setup.py#L32>
with open('django_jsonp/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)

setup(name='django_jsonp',
version=django_jsonp.__version__,
version=version,
description='Simple JSONP support for django',
long_description=open('README.md').read(),
author='Alexander Zhukov',
Expand Down

0 comments on commit e0ff933

Please sign in to comment.