Skip to content

Commit 40198bc

Browse files
committed
change lib name
1 parent 527fa12 commit 40198bc

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
Django REST Framework CamelCase magic
33
=====================================
44

5-
.. image:: https://badge.fury.io/py/drf-camel.png
6-
:target: http://badge.fury.io/py/drf-camel
5+
.. image:: https://badge.fury.io/py/django-rest-camel.png
6+
:target: http://badge.fury.io/py/django-rest-camel
77

8-
.. image:: https://img.shields.io/pypi/v/drf-camel.svg
9-
:target: https://img.shields.io/pypi/v/drf-camel.svg
8+
.. image:: https://img.shields.io/pypi/v/django-rest-camel.svg
9+
:target: https://img.shields.io/pypi/v/django-rest-camel.svg
1010

1111

1212
Camel case support for Django REST framework - right now only JSON is supported.
@@ -21,7 +21,7 @@ Installation
2121

2222
At the command line::
2323

24-
$ pip install drf-camel
24+
$ pip install django-rest-camel
2525

2626
Add the render and parser to your django settings file.
2727

@@ -31,12 +31,12 @@ Add the render and parser to your django settings file.
3131
REST_FRAMEWORK = {
3232
3333
'DEFAULT_RENDERER_CLASSES': (
34-
'drf_camel.render.CamelCaseJSONRenderer',
34+
'rest_camel.render.CamelCaseJSONRenderer',
3535
# Any other renders
3636
),
3737
3838
'DEFAULT_PARSER_CLASSES': (
39-
'drf_camel.parser.CamelCaseJSONParser',
39+
'rest_camel.parser.CamelCaseJSONParser',
4040
# Any other parsers
4141
),
4242
}

drf_camel/__init__.py renamed to rest_camel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
__author__ = 'Dominik Kozaczko'
55
__email__ = '[email protected]'
6-
__version__ = '0.3.2'
6+
__version__ = '0.3.3'

drf_camel/parser.py renamed to rest_camel/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from rest_framework.parsers import ParseError, six
55
from django.conf import settings
66

7-
from drf_camel.settings import rest_framework_settings
8-
from drf_camel.util import underscorize
7+
from rest_camel.settings import rest_framework_settings
8+
from rest_camel.util import underscorize
99

1010

1111
class CamelCaseJSONParser(rest_framework_settings.PARSER_CLASS):

drf_camel/render.py renamed to rest_camel/render.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
from drf_camel.settings import rest_framework_settings
3-
from drf_camel.util import camelize
2+
from rest_camel.settings import rest_framework_settings
3+
from rest_camel.util import camelize
44

55

66
class CamelCaseJSONRenderer(rest_framework_settings.RENDERER_CLASS):
File renamed without changes.
File renamed without changes.

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
long_description = '{}\n\n{}'.format(readme, history)
1515

1616
setup(
17-
name='drf-camel',
18-
version='0.3.2',
17+
name='django-rest-camel',
18+
version='0.3.3',
1919
description='Camel case support for Django REST Framework.',
2020
long_description=long_description,
2121
author='Dominik Kozaczko',
2222
author_email='[email protected]',
2323
url='https://github.com/dekoza/djangorestframework-camel-case',
2424
packages=find_packages(),
2525
license="BSD",
26-
keywords='djangorestframework_camel rest camelcase camel',
26+
keywords='djangorestframework_camel django rest camelcase camel',
2727
classifiers=[
2828
'Development Status :: 3 - Alpha',
2929
'Intended Audience :: Developers',

tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from unittest.case import TestCase
55

6-
from drf_camel.util import camelize, underscorize
6+
from rest_camel.util import camelize, underscorize
77

88

99
class UnderscoreToCamelTestCase(TestCase):

0 commit comments

Comments
 (0)