Skip to content

Commit cc51279

Browse files
committed
change project name, modernize setup.py
1 parent 191a7b0 commit cc51279

File tree

11 files changed

+48
-36
lines changed

11 files changed

+48
-36
lines changed

AUTHORS.rst

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,23 @@
22
Credits
33
=======
44

5+
Founding Father
6+
---------------
7+
8+
* Vitaly Babiy <[email protected]>
9+
10+
511
Development Lead
612
----------------
713

8-
* Vitaly Babiy <[email protected]>
14+
* Dominik Kozaczko <[email protected]>
15+
916

1017
Contributors
1118
------------
1219

13-
None yet. Why not be the first?
20+
* Rense VanderHoek <[email protected]>
21+
* Jakob Oswald <[email protected]>
22+
* Yavor Atov <[email protected]>
23+
* Danilo Bargen <[email protected]>
24+
* Jevgenij Tsoi <[email protected]>

HISTORY.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
History
44
-------
55

6+
0.3.0 (2017-05-26)
7+
++++++++++++++++++
8+
9+
* Fork of the project to maintain development
10+
* Drop Py26, Py33 and Py34 support
11+
* Drop DRF<3.0 support
12+
613
0.1.0 (2013-12-20)
714
++++++++++++++++++
815

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
include AUTHORS.rst
22
include HISTORY.rst
33
include LICENSE
4-
include README.rst
4+
include README.rst
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
__author__ = 'Vitaly Babiy'
5-
__email__ = '[email protected]'
4+
__author__ = 'Dominik Kozaczko'
5+
__email__ = '[email protected]'
66
__version__ = '0.3.0'

djangorestframework_camel_case/parser.py renamed to drf_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 djangorestframework_camel_case.settings import rest_framework_settings
8-
from djangorestframework_camel_case.util import underscoreize
7+
from drf_camel.settings import rest_framework_settings
8+
from drf_camel.util import underscoreize
99

1010

1111
class CamelCaseJSONParser(rest_framework_settings.PARSER_CLASS):

djangorestframework_camel_case/render.py renamed to drf_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 djangorestframework_camel_case.settings import rest_framework_settings
3-
from djangorestframework_camel_case.util import camelize
2+
from drf_camel.settings import rest_framework_settings
3+
from drf_camel.util import camelize
44

55

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

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[bdist_wheel]
2+
# This flag says that the code is written to work on both Python 2 and Python
3+
# 3. If at all possible, it is good practice to do this. If you cannot, you
4+
# will need to generate wheels for each Python version that you support.
5+
universal=1

setup.py

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,31 @@
33

44
import os
55
import sys
6+
from codecs import open
67

8+
from setuptools import setup, find_packages
79

8-
try:
9-
from setuptools import setup
10-
except ImportError:
11-
from distutils.core import setup
10+
with open('README.rst') as r:
11+
readme = r.read()
1212

13-
if sys.argv[-1] == 'publish':
14-
os.system('python setup.py sdist upload')
15-
sys.exit()
13+
with open('HISTORY.rst') as h:
14+
history = h.read().replace('.. :changelog:', '')
1615

17-
readme = open('README.rst').read()
18-
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
16+
long_description = '{}\n\n{}'.format(readme, history)
1917

2018
setup(
21-
name='djangorestframework-camel-case',
19+
name='drf-camel',
2220
version='0.3.0',
2321
description='Camel case JSON support for Django REST framework.',
24-
long_description=readme + '\n\n' + history,
25-
author='Vitaly Babiy',
26-
author_email='[email protected]',
27-
url='https://github.com/vbabiy/djangorestframework-camel-case',
28-
packages=[
29-
'djangorestframework_camel_case',
30-
],
31-
package_dir={
32-
'djangorestframework_camel_case': 'djangorestframework_camel_case'
33-
},
34-
include_package_data=True,
35-
install_requires=[
36-
],
22+
long_description=long_description,
23+
author='Dominik Kozaczko',
24+
author_email='[email protected]',
25+
url='https://github.com/dekoza/djangorestframework-camel-case',
26+
packages=find_packages(),
3727
license="BSD",
38-
zip_safe=False,
39-
keywords='djangorestframework_camel_case',
28+
keywords='djangorestframework_camel rest camelcase camel',
4029
classifiers=[
41-
'Development Status :: 2 - Pre-Alpha',
30+
'Development Status :: 3 - Alpha',
4231
'Intended Audience :: Developers',
4332
'License :: OSI Approved :: BSD License',
4433
'Natural Language :: English',

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 djangorestframework_camel_case.util import camelize, underscorize
6+
from drf_camel.util import camelize, underscorize
77

88

99
class UnderscoreToCamelTestCase(TestCase):

0 commit comments

Comments
 (0)