Compare commits

..

4 Commits

Author SHA1 Message Date
Cristi Vîjdea fc253665dd Release 1.2.2 2018-01-12 09:44:42 +01: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 9d1150f1ab Fix travis deployment 2018-01-12 04:38:30 +01:00
Cristi Vîjdea bc4037f721 Fix coverage problems 2018-01-12 04:36:04 +01:00
7 changed files with 24 additions and 8 deletions
+3
View File
@@ -20,7 +20,10 @@ exclude_lines =
raise TypeError
raise NotImplementedError
warnings.warn
logger.debug
logger.info
logger.warning
logger.error
return NotHandled
# Don't complain if non-runnable code isn't run:
+2 -4
View File
@@ -24,10 +24,8 @@ jobs:
- stage: publish
python: '3.6'
before_script: skip
script: skip
after_success: skip
env:
env: PYPI_DEPLOY=true
deploy: &pypi
provider: pypi
user: cvijdea
@@ -49,7 +47,7 @@ install:
before_script:
- coverage erase
- |
[[ -z "$TOXENV" ]] && REPORT_COVERAGE="yes" || REPORT_COVERAGE="no";
[[ -z "$TOXENV" && -z "$PYPI_DEPLOY" ]] && REPORT_COVERAGE="yes" || REPORT_COVERAGE="no";
echo "Reporting coverage: ${REPORT_COVERAGE}"
- |
[[ -z "$TOXENV" && ! -z "$DRF" && "$DRF" != "master" ]] && USE_DETOX="yes" || USE_DETOX="no";
+2 -2
View File
@@ -11,8 +11,8 @@ Generate **real** Swagger/OpenAPI 2.0 specifications from a Django Rest Framewor
Compatible with
- **Django Rest Framework**: 3.7
- **Django**: 1.11, 2.0
- **Django Rest Framework**: 3.7.7
- **Django**: 1.11.x, 2.0.x
- **Python**: 2.7, 3.4, 3.5, 3.6
Resources:
+13
View File
@@ -2,6 +2,19 @@
Changelog
#########
*********
**1.2.2**
*********
- **FIXED:** djangorestframework>=3.7.7 is now required because of breaking changes
(:issue:`44`, :pr:`45`, thanks to :ghuser:`h-hirokawa`)
*********
**1.2.1**
*********
- Fixed deployment issues
*********
**1.2.0**
*********
+1 -1
View File
@@ -7,6 +7,6 @@ future>=0.16.0
six>=1.11.0
uritemplate>=3.0.0
djangorestframework>=3.7.0
djangorestframework>=3.7.7
Django>=1.11.7,<2.0; python_version <= "2.7"
Django>=1.11.7; python_version >= "3.4"
+2
View File
@@ -97,6 +97,8 @@ class EndpointEnumerator(_EndpointEnumerator):
namespace="%s:%s" % (namespace, pattern.namespace) if namespace else pattern.namespace
)
api_endpoints.extend(nested_endpoints)
else:
logger.warning("unknown pattern type {}".format(type(pattern)))
api_endpoints = sorted(api_endpoints, key=endpoint_ordering)
+1 -1
View File
@@ -15,7 +15,7 @@ deps =
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
drf37: djangorestframework>=3.7.3,<3.8
drf37: djangorestframework>=3.7.7,<3.8
# test with the latest build of Django and django-rest-framework to get early warning of compatibility issues
drfmaster: https://github.com/encode/django-rest-framework/archive/master.tar.gz