Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fc253665dd | |||
| 33199aec59 | |||
| 9d1150f1ab | |||
| bc4037f721 |
@@ -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
@@ -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
@@ -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:
|
||||
|
||||
@@ -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**
|
||||
*********
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user