Cristi Vîjdea
3a37c4a019
Drop Django 2.0 and DRF 3.7 support
2019-06-13 16:49:46 +03:00
Cristi Vîjdea
db154d196a
Drop Python 3.4 support
2019-06-13 02:37:04 +03:00
Cristi Vîjdea
64d9d42aa9
Remove pygments test dependency
2019-06-13 01:54:22 +03:00
elliott-omosheye
b5aba7243d
Fix unicode attribute error if typing installed on py2.7 ( #363 )
2019-06-13 00:51:47 +03:00
johnthagen
59e86ff72f
Support Django 2.2 ( #346 )
2019-04-05 23:32:33 +03:00
Cristi Vijdea
298a9745df
Add `is_list_view` and `has_list_response` methods
2019-03-22 14:27:15 +02:00
Cristi Vîjdea
db61c39ab1
Fix union types in sphinx docstrings
2018-12-21 15:04:25 +02:00
Cristi Vîjdea
cf4106f8f7
Use twine check instead of setup.py check
2018-12-19 21:46:49 +02:00
Cristi Vîjdea
1fc454fcfa
Enable isolated_build for tox
...
This enables tox support for PEP517 and PEP518.
2018-12-19 21:46:48 +02:00
Cristi Vîjdea
1946a1204d
Remove requirements/setup.txt and setup_requires
2018-12-19 20:29:42 +02:00
Cristi Vîjdea
acfb0c5442
Remove default xdist argument to pytest
2018-12-12 12:21:16 +02:00
Cristi Vîjdea
543a1ade5e
Test with Django REST Framework 3.9
2018-12-11 23:25:16 +02:00
Cristi Vîjdea
161a2e1b89
Ignore schizophrenic flake8 error
2018-11-29 02:24:03 +02:00
Cristi Vîjdea
81fa4b44c8
Remove setup requirements from lint tox env
2018-10-09 01:16:58 +03:00
Cristi Vîjdea
3ac6c9ec3a
Remove dependency on future
...
Sole use was raise_from.
six.raise_from loses exception detail on Python 2, so god help the programmers of the past.
Fixes #196 .
2018-09-09 22:29:11 +03:00
Cristi Vîjdea
dc78dfdad8
Shrink tox envlist
2018-08-08 01:53:24 +03:00
Cristi Vîjdea
37c00ab3fb
Make swagger_schema_fields work on serializer Fields
...
Closes #167 .
2018-08-07 22:54:24 +03:00
John Carter
748b5d3c2f
Add support for SerializerMethodField ( #179 )
...
Closes #137 , #179 .
2018-08-07 21:23:36 +03:00
Cristi Vîjdea
16b6ed7fd6
Test with Django 2.1 and Python 3.7 ( #176 )
...
* Test with Django 2.1 and Python 3.7
* Fix lint errors
* Remove setuptools-scm hack
* Factor out coverage script
* Cache .tox in travis
* Update README & docs
2018-08-06 12:24:56 +03:00
Cristi Vîjdea
94f6ca8c89
Ignore python tests in node_modules
2018-05-14 18:57:29 +03:00
Roman Sichny
979ec84630
Django rest framework recursive support ( #110 )
...
* add get_serializer_ref_name utility function
* implement RecursiveFieldInspector
* add option to allow non-existing reference in SchemaRef
* add examples and README
* Update changelog and docs
2018-04-27 01:51:10 +03:00
Cristi Vîjdea
7270154828
Test with Django Rest Framework 3.8 ( #96 )
...
* Add djangorestframework 3.8 to tox and travis
* Add @action tests
* Limit tox to <3.0.0
2018-04-04 22:59:57 +03:00
Cristi Vîjdea
a9cdf6d561
Fix type of properties in Schema docstring
...
Fixes #87 .
2018-03-21 13:39:14 +02:00
Cristi Vîjdea
7fa0cc0639
Make DRF master test run with stable Django
2018-02-04 14:36:16 +02:00
h-hirokawa
33199aec59
Update the minimum required version of DRF to 3.7.7
...
Closes #44 , #45 .
2018-01-12 09:40:26 +01:00
Cristi Vîjdea
757d47e1c0
Add py3-django111 testing combination
...
Tests are also now run in parallel using detox and pytest-xdist.
2018-01-12 03:35:36 +01:00
Cristi Vîjdea
c4379dc6a7
Run testproj in a Heroku demo app ( #38 )
...
* Add Heroku configuration
* Add links in API description
* Read database connection string from DATABASE_URL environment variable
* Restructure settings files for production
* Run server using gunicorn and servce static files with whitenoise
* Install drf-yasg from source instead of pypi in testproj
* Add readme links to demo app
2018-01-10 10:18:22 +01:00
Cristi Vîjdea
15c67891c6
Optimize requirements ( #35 )
2018-01-03 23:11:27 +01:00
Cristi Vîjdea
917ccd1f56
Restructure travis & tox configuration ( #34 )
...
Also removed useless python 3.7-dev build
2018-01-03 20:30:17 +01:00
Cristi Vîjdea
74fcd47047
Refactor setup requirements
2018-01-01 19:16:28 +01:00
Cristi Vîjdea
eba228a114
Prepare release 1.1.1
2017-12-27 21:05:07 +01:00
Cristi Vîjdea
ee4789776a
Fix isort inconsistency
2017-12-27 20:47:32 +01:00
Cristi Vîjdea
d39764d383
Add isort
2017-12-27 20:23:05 +01:00
Nicolas Delaby
f05889292a
Add type inspection for PrimaryKeyRelatedField ( #26 )
...
Guess the type for PrimaryKeyRelatedField from the related ModelField.
2017-12-22 21:00:13 +01:00
Cristi Vîjdea
c66f7e8e01
Rename to drf-yasg
...
drf-swagger was already taken
2017-12-13 10:22:03 +01:00
Cristi Vîjdea
53ac55a24b
Add dcumentation ( #12 )
...
* added sphinx documentation
* filled in most missing docstrings
* updated README and setup.py, added CONTRIBUTING
* added docs build target
2017-12-12 11:14:33 +01:00
Cristi Vîjdea
bfced82ae4
Add suport for Response schemas ( #10 )
...
Schemas generated from Serializers will now be added to the `definitions` section by default, and used as `$ref` objects where needed.
The Schema definition name is based on the serializer class name, and can be overriden by specifying a `__ref_name__` property on the Serializer. If this property is set to None, the schema will not be added to `definitions` and will be forced inline.
Closes #6 , #7 .
2017-12-10 03:06:49 +01:00
Cristi Vîjdea
dce00156d5
Rewrite schema generation ( #1 )
...
* Completeley rewritten schema generation
* Added support for python 2.7 and 3.4
* Restructured testing and build configuration
* Added nested request schemas
This rewrite completely replaces the public interface of the django rest schema generation library, so
further changes will be needed to re-enable and further extend the customization points one might want.
2017-12-05 19:46:02 +01:00
Cristi Vîjdea
93c51b992d
Fix python 3.7 -> 3.7-dev and add flake8 testing
...
Also fixed flake8 errors.
2017-12-02 23:48:58 +01:00
Cristi Vîjdea
2b0d80dc0f
Restructure project to add test support
...
* separated drf_swagger and testproj modules, moved both out of project root
* added testing support via pytest and tox
* enabled Travis CI
* integrated coverage & Coveralls
2017-12-02 22:48:29 +01:00