-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Amertz08/test-django3
Django3 py>=3.6
- Loading branch information
Showing
12 changed files
with
104 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,5 @@ nosetests.xml | |
|
||
#PyCharm | ||
.idea/* | ||
venv | ||
.mypy_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
__author__ = "y.gavenchuk aka murminathor" | ||
__version__ = (1, 5, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[mypy] | ||
ignore_missing_imports = True | ||
plugins = mypy_django_plugin.main, mypy_drf_plugin.main | ||
strict_optional = True | ||
|
||
[mypy.plugins.django-stubs] | ||
django_settings_module = tests.settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,27 +2,43 @@ | |
|
||
from setuptools import setup, find_packages | ||
|
||
from drf_ujson import __version__ | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
name="drf_ujson2", | ||
version="1.4.1", | ||
python_requires=">=3.4", | ||
version=".".join([str(i) for i in __version__]), | ||
python_requires=">=3.6", | ||
description="Django Rest Framework UJSON Renderer", | ||
keywords="django,djangorestframework,ujson", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
author="Gizmag", | ||
author_email="[email protected]", | ||
url="https://github.com/Amertz08/drf-ujson2", | ||
packages=find_packages(exclude=["tests"]), | ||
install_requires=["django", "ujson>=1.35", "djangorestframework"], | ||
extras_require={"dev": ["pytest", "pytest-runner", "pytest-cov", "pytest-mock"]}, | ||
extras_require={ | ||
"dev": [ | ||
"pytest", | ||
"pytest-django", | ||
"pytest-runner", | ||
"pytest-cov", | ||
"pytest-mock", | ||
] | ||
}, | ||
classifiers=[ | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Development Status :: 5 - Production/Stable", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Framework :: Django :: 2.0", | ||
"Framework :: Django :: 2.1", | ||
"Framework :: Django :: 2.2", | ||
"Framework :: Django :: 3.0", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
from django.conf import settings | ||
|
||
settings.configure() | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SECRET_KEY = "blah" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
[tox] | ||
envlist = | ||
py34, | ||
py35, | ||
py36, | ||
py37, | ||
py38 | ||
py{36,37,38}-django{2,21,22,3} | ||
format | ||
typing | ||
|
||
[testenv] | ||
extras = dev | ||
deps = | ||
django2: django~=2.0 | ||
django21: django~=2.1 | ||
django22: django~=2.2 | ||
django3: django~=3.0 | ||
commands = | ||
pip list | ||
python setup.py test | ||
|
||
[testenv:format] | ||
skipsdist = true | ||
deps = | ||
black | ||
commands = | ||
black . --check | ||
|
||
[testenv:typing] | ||
skipsdist = true | ||
deps = | ||
mypy | ||
django-stubs | ||
djangorestframework-stubs | ||
commands = mypy . |