sc-oa 0.7.0.12__tar.gz → 0.7.0.14__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of sc-oa might be problematic. Click here for more details.

Files changed (165) hide show
  1. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/.github/workflows/pypi.yml +29 -29
  2. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/.github/workflows/tests.yml +60 -60
  3. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/.gitignore +54 -54
  4. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/.gitmodules +3 -3
  5. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/.mailmap +1 -1
  6. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/.pre-commit-config.yaml +16 -16
  7. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/CHANGES +76 -76
  8. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/LICENSE +23 -23
  9. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/MANIFEST.in +12 -12
  10. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/PKG-INFO +36 -27
  11. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/README.rst +44 -44
  12. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/docs/conf.py +26 -26
  13. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/docs/index.rst +137 -137
  14. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/docs/specs/openapi.yml +134 -134
  15. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/pyproject.toml +8 -8
  16. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sc_oa.egg-info/PKG-INFO +36 -27
  17. sc_oa-0.7.0.14/sc_oa.egg-info/SOURCES.txt +377 -0
  18. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sc_oa.egg-info/not-zip-safe +1 -1
  19. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sc_oa.egg-info/requires.txt +2 -1
  20. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/setup.cfg +51 -50
  21. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/__init__.py +10 -12
  22. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/__init__.py +93 -93
  23. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/__main__.py +86 -86
  24. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/_lib2to3.py +378 -378
  25. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/directive.py +58 -58
  26. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/locale/es_ES/LC_MESSAGES/openapi.po +170 -170
  27. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/locale/fr_FR/LC_MESSAGES/openapi.po +170 -170
  28. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/locale/openapi.pot +168 -168
  29. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/openapi20.py +263 -263
  30. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/openapi30.py +748 -732
  31. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/renderers/__init__.py +18 -18
  32. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/renderers/_description.py +26 -26
  33. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/renderers/_httpdomain.py +620 -620
  34. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/renderers/_httpdomain_old.py +59 -59
  35. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/renderers/_model.py +422 -412
  36. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/renderers/_toc.py +48 -48
  37. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/renderers/abc.py +46 -46
  38. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/schema_utils.py +137 -137
  39. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/utils.py +137 -137
  40. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/conftest.py +99 -99
  41. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/doc/conf.py +5 -5
  42. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/doc/index.rst +27 -27
  43. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/doc/petstore.yaml +121 -121
  44. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/lib2to3/conftest.py +12 -12
  45. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/lib2to3/test_convert.py +506 -506
  46. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/lib2to3/test_convert_operation.py +281 -281
  47. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/lib2to3/test_convert_parameter.py +427 -427
  48. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/lib2to3/test_convert_parameters.py +100 -100
  49. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/lib2to3/test_convert_path.py +230 -230
  50. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/lib2to3/test_convert_paths.py +190 -190
  51. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/lib2to3/test_convert_request_body.py +160 -160
  52. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/lib2to3/test_convert_request_body_formdata.py +378 -378
  53. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/lib2to3/test_convert_response.py +417 -417
  54. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/lib2to3/test_convert_responses.py +160 -160
  55. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/conftest.py +26 -26
  56. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/rendered/v2.0/api-with-examples.yaml.rst +93 -93
  57. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/rendered/v2.0/petstore-expanded.yaml.rst +71 -71
  58. {sc-oa-0.7.0.12/tests/renderers/httpdomain/rendered/v3.0 → sc_oa-0.7.0.14/tests/renderers/httpdomain/rendered/v2.0}/petstore.yaml.rst +52 -52
  59. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/rendered/v2.0/uber.json.rst +188 -188
  60. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/rendered/v2.0/uber.yaml.rst +188 -188
  61. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/rendered/v3.0/api-with-examples.yaml.rst +93 -93
  62. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/rendered/v3.0/petstore-expanded.yaml.rst +74 -74
  63. {sc-oa-0.7.0.12/tests/renderers/httpdomain/rendered/v2.0 → sc_oa-0.7.0.14/tests/renderers/httpdomain/rendered/v3.0}/petstore.yaml.rst +52 -52
  64. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/rendered/v3.0/uspto.yaml.rst +85 -85
  65. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/test_render.py +25 -25
  66. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/test_render_json_schema_description.py +1366 -1366
  67. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/test_render_operation.py +389 -389
  68. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/test_render_parameter.py +1021 -1021
  69. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/test_render_parameters.py +437 -437
  70. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/test_render_paths.py +460 -460
  71. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/test_render_request_body.py +106 -106
  72. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/test_render_request_body_example.py +595 -595
  73. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/test_render_response.py +755 -755
  74. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/test_render_response_example.py +636 -636
  75. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/test_render_responses.py +242 -242
  76. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/renderers/httpdomain/test_render_restructuredtext_markup.py +577 -577
  77. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/test_description.py +33 -33
  78. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/test_model.py +1228 -1225
  79. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/test_openapi.py +2757 -2759
  80. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/test_schema_utils.py +253 -253
  81. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/test_spec_examples.py +53 -53
  82. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/test_toc.py +101 -101
  83. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/testdata/foo.json +8 -8
  84. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/testdata/foo.yaml +5 -5
  85. {sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/yaml → sc_oa-0.7.0.14/tests/testspecs/v2.0}/api-with-examples.yaml +164 -164
  86. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/testspecs/v2.0/petstore-expanded.yaml +139 -139
  87. {sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/yaml → sc_oa-0.7.0.14/tests/testspecs/v2.0}/petstore.yaml +101 -101
  88. {sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/json → sc_oa-0.7.0.14/tests/testspecs/v2.0}/uber.json +370 -370
  89. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/testspecs/v2.0/uber.yaml +273 -273
  90. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/testspecs/v3.0/api-with-examples.yaml +167 -167
  91. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/testspecs/v3.0/petstore-expanded.yaml +155 -155
  92. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tests/testspecs/v3.0/petstore.yaml +109 -109
  93. {sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples → sc_oa-0.7.0.14/tests/testspecs}/v3.0/uspto.yaml +210 -210
  94. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/tox.ini +27 -27
  95. sc-oa-0.7.0.12/sc_oa.egg-info/SOURCES.txt +0 -163
  96. sc-oa-0.7.0.12/sc_oa.egg-info/namespace_packages.txt +0 -1
  97. sc-oa-0.7.0.12/setup.py +0 -4
  98. sc-oa-0.7.0.12/tests/OpenAPI-Specification/.git +0 -1
  99. sc-oa-0.7.0.12/tests/OpenAPI-Specification/.gitignore +0 -8
  100. sc-oa-0.7.0.12/tests/OpenAPI-Specification/.travis.yml +0 -6
  101. sc-oa-0.7.0.12/tests/OpenAPI-Specification/CONTRIBUTORS.md +0 -9
  102. sc-oa-0.7.0.12/tests/OpenAPI-Specification/DEVELOPMENT.md +0 -118
  103. sc-oa-0.7.0.12/tests/OpenAPI-Specification/GOVERNANCE.md +0 -31
  104. sc-oa-0.7.0.12/tests/OpenAPI-Specification/IMPLEMENTATIONS.md +0 -73
  105. sc-oa-0.7.0.12/tests/OpenAPI-Specification/LICENSE +0 -201
  106. sc-oa-0.7.0.12/tests/OpenAPI-Specification/MAINTAINERS.md +0 -11
  107. sc-oa-0.7.0.12/tests/OpenAPI-Specification/README.md +0 -62
  108. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/json/api-with-examples.json +0 -58
  109. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/json/petstore-expanded.json +0 -210
  110. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/json/petstore-minimal.json +0 -68
  111. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/json/petstore-separate/common/Error.json +0 -16
  112. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/json/petstore-separate/spec/NewPet.json +0 -19
  113. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/json/petstore-separate/spec/Pet.json +0 -19
  114. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/json/petstore-separate/spec/parameters.json +0 -21
  115. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/json/petstore-separate/spec/swagger.json +0 -146
  116. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/json/petstore-simple.json +0 -222
  117. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/json/petstore-with-external-docs.json +0 -233
  118. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/json/petstore.json +0 -153
  119. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-expanded.yaml +0 -139
  120. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-minimal.yaml +0 -47
  121. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-separate/common/Error.yaml +0 -10
  122. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-separate/spec/NewPet.yaml +0 -9
  123. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-separate/spec/Pet.yaml +0 -12
  124. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-separate/spec/parameters.yaml +0 -16
  125. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-separate/spec/swagger.yaml +0 -100
  126. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-simple.yaml +0 -157
  127. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/yaml/petstore-with-external-docs.yaml +0 -166
  128. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v2.0/yaml/uber.yaml +0 -273
  129. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v3.0/api-with-examples.yaml +0 -167
  130. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v3.0/callback-example.yaml +0 -60
  131. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v3.0/link-example.yaml +0 -203
  132. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v3.0/petstore-expanded.yaml +0 -155
  133. sc-oa-0.7.0.12/tests/OpenAPI-Specification/examples/v3.0/petstore.yaml +0 -109
  134. sc-oa-0.7.0.12/tests/OpenAPI-Specification/guidelines/EXTENSIONS.md +0 -1
  135. sc-oa-0.7.0.12/tests/OpenAPI-Specification/guidelines/v2.0/EXTENSIONS.md +0 -92
  136. sc-oa-0.7.0.12/tests/OpenAPI-Specification/guidelines/v2.0/README.md +0 -4
  137. sc-oa-0.7.0.12/tests/OpenAPI-Specification/guidelines/v2.0/REUSE.md +0 -372
  138. sc-oa-0.7.0.12/tests/OpenAPI-Specification/package.json +0 -31
  139. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v1.2/README.md +0 -5
  140. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v1.2/apiDeclaration.json +0 -61
  141. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v1.2/authorizationObject.json +0 -59
  142. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v1.2/dataType.json +0 -132
  143. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v1.2/dataTypeBase.json +0 -81
  144. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v1.2/infoObject.json +0 -16
  145. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v1.2/modelsObject.json +0 -36
  146. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v1.2/oauth2GrantType.json +0 -57
  147. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v1.2/operationObject.json +0 -65
  148. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v1.2/parameterObject.json +0 -37
  149. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v1.2/resourceListing.json +0 -16
  150. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v1.2/resourceObject.json +0 -11
  151. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v2.0/README.md +0 -13
  152. sc-oa-0.7.0.12/tests/OpenAPI-Specification/schemas/v2.0/schema.json +0 -1607
  153. sc-oa-0.7.0.12/tests/OpenAPI-Specification/versions/1.2.md +0 -1148
  154. sc-oa-0.7.0.12/tests/OpenAPI-Specification/versions/2.0.md +0 -2298
  155. sc-oa-0.7.0.12/tests/OpenAPI-Specification/versions/3.0.0.md +0 -3441
  156. sc-oa-0.7.0.12/tests/OpenAPI-Specification/versions/3.0.1.md +0 -3380
  157. sc-oa-0.7.0.12/tests/OpenAPI-Specification/versions/3.0.2.md +0 -3412
  158. sc-oa-0.7.0.12/tests/testspecs/v2.0/api-with-examples.yaml +0 -164
  159. sc-oa-0.7.0.12/tests/testspecs/v2.0/petstore.yaml +0 -101
  160. sc-oa-0.7.0.12/tests/testspecs/v2.0/uber.json +0 -370
  161. sc-oa-0.7.0.12/tests/testspecs/v3.0/uspto.yaml +0 -210
  162. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sc_oa.egg-info/dependency_links.txt +0 -0
  163. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sc_oa.egg-info/top_level.txt +0 -0
  164. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/locale/es_ES/LC_MESSAGES/openapi.mo +0 -0
  165. {sc-oa-0.7.0.12 → sc_oa-0.7.0.14}/sphinxcontrib/openapi/locale/fr_FR/LC_MESSAGES/openapi.mo +0 -0
@@ -1,29 +1,29 @@
1
- name: PyPI
2
-
3
- on:
4
- push:
5
- tags:
6
- - "[1-9]+.[0-9]+.[0-9]+"
7
-
8
- jobs:
9
- release:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v2
13
-
14
- - name: Set up Python 3.8
15
- uses: actions/setup-python@v1
16
- with:
17
- python-version: 3.8
18
-
19
- - name: Prepare artifacts
20
- run: |
21
- python setup.py sdist
22
-
23
- - name: Publish to PyPI
24
- env:
25
- TWINE_USERNAME: __token__
26
- TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
27
- run: |
28
- python -m pip install twine
29
- twine upload dist/*
1
+ name: PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "[1-9]+.[0-9]+.[0-9]+"
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+
14
+ - name: Set up Python 3.8
15
+ uses: actions/setup-python@v1
16
+ with:
17
+ python-version: 3.8
18
+
19
+ - name: Prepare artifacts
20
+ run: |
21
+ python setup.py sdist
22
+
23
+ - name: Publish to PyPI
24
+ env:
25
+ TWINE_USERNAME: __token__
26
+ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
27
+ run: |
28
+ python -m pip install twine
29
+ twine upload dist/*
@@ -1,60 +1,60 @@
1
- name: Tests
2
-
3
- on:
4
- - push
5
- - pull_request
6
-
7
- jobs:
8
- pre-commit:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@v1
12
-
13
- - name: Set up Python 3.8
14
- uses: actions/setup-python@v1
15
- with:
16
- python-version: 3.8
17
-
18
- - name: Run pre-commit
19
- run: |
20
- python -m pip install tox
21
- python -m tox -e pre-commit
22
-
23
- pytest:
24
- strategy:
25
- matrix:
26
- os: [ubuntu-latest, macos-latest]
27
- python-version: ["3.8", "3.9", "3.10", "3.11"]
28
-
29
- runs-on: ${{ matrix.os }}
30
- steps:
31
- - uses: actions/checkout@v2
32
-
33
- - name: Set up Python ${{ matrix.python-version }}
34
- uses: actions/setup-python@v1
35
- with:
36
- python-version: ${{ matrix.python-version }}
37
-
38
- - name: Pull OpenAPI specs for tests
39
- run: |
40
- git submodule update --init --recursive
41
-
42
- - name: Run pytest
43
- run: |
44
- python -m pip install tox
45
- python -m tox -e py
46
-
47
- docs:
48
- runs-on: ubuntu-latest
49
- steps:
50
- - uses: actions/checkout@v2
51
-
52
- - name: Set up Python 3.8
53
- uses: actions/setup-python@v1
54
- with:
55
- python-version: 3.8
56
-
57
- - name: Run sphinx
58
- run: |
59
- python -m pip install tox
60
- python -m tox -e docs
1
+ name: Tests
2
+
3
+ on:
4
+ - push
5
+ - pull_request
6
+
7
+ jobs:
8
+ pre-commit:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+
13
+ - name: Set up Python 3.11
14
+ uses: actions/setup-python@v4
15
+ with:
16
+ python-version: 3.11
17
+
18
+ - name: Run pre-commit
19
+ run: |
20
+ python -m pip install tox
21
+ python -m tox -e pre-commit
22
+
23
+ pytest:
24
+ strategy:
25
+ matrix:
26
+ os: [ubuntu-latest, macos-latest]
27
+ python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
28
+
29
+ runs-on: ${{ matrix.os }}
30
+ steps:
31
+ - uses: actions/checkout@v4
32
+
33
+ - name: Set up Python ${{ matrix.python-version }}
34
+ uses: actions/setup-python@v4
35
+ with:
36
+ python-version: ${{ matrix.python-version }}
37
+
38
+ - name: Pull OpenAPI specs for tests
39
+ run: |
40
+ git submodule update --init --recursive
41
+
42
+ - name: Run pytest
43
+ run: |
44
+ python -m pip install tox
45
+ python -m tox -e py
46
+
47
+ docs:
48
+ runs-on: ubuntu-latest
49
+ steps:
50
+ - uses: actions/checkout@v4
51
+
52
+ - name: Set up Python 3.11
53
+ uses: actions/setup-python@v4
54
+ with:
55
+ python-version: 3.11
56
+
57
+ - name: Run sphinx
58
+ run: |
59
+ python -m pip install tox
60
+ python -m tox -e docs
@@ -1,54 +1,54 @@
1
- # Backup files
2
- *.~
3
- .idea/
4
- # Byte-compiles / optimizied
5
- __pycache__/
6
- *.py[cod]
7
-
8
- # C extensions
9
- *.so
10
-
11
- # Distribution / packaging
12
- bin/
13
- build/
14
- develop-eggs/
15
- dist/
16
- eggs/
17
- .eggs/
18
- lib/
19
- lib64/
20
- parts/
21
- sdist/
22
- var/
23
- *.egg-info/
24
- .installed.cfg
25
- *.egg
26
- MANIFEST
27
-
28
- # Installer logs
29
- pip-log.txt
30
- pip-delete-this-directory.txt
31
-
32
- # Unit test / coverage reports
33
- .tox/
34
- .coverage
35
- .cache
36
- nosetests.xml
37
- coverage.xml
38
-
39
- # Sphinx documentation
40
- docs/_build/
41
-
42
- # Ignore sublime's project (for fans)
43
- .ropeproject/
44
- *.sublime-project
45
- *.sublime-workspace
46
-
47
- # Ignore VSCode folder
48
- /.vscode/
49
-
50
- # Ignore virtualenvs (who places it near)
51
- .venv/
52
-
53
- # Various shit from the OS itself
54
- .DS_Store
1
+ # Backup files
2
+ *.~
3
+ .idea/
4
+ # Byte-compiles / optimizied
5
+ __pycache__/
6
+ *.py[cod]
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # Distribution / packaging
12
+ bin/
13
+ build/
14
+ develop-eggs/
15
+ dist/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+ MANIFEST
27
+
28
+ # Installer logs
29
+ pip-log.txt
30
+ pip-delete-this-directory.txt
31
+
32
+ # Unit test / coverage reports
33
+ .tox/
34
+ .coverage
35
+ .cache
36
+ nosetests.xml
37
+ coverage.xml
38
+
39
+ # Sphinx documentation
40
+ docs/_build/
41
+
42
+ # Ignore sublime's project (for fans)
43
+ .ropeproject/
44
+ *.sublime-project
45
+ *.sublime-workspace
46
+
47
+ # Ignore VSCode folder
48
+ /.vscode/
49
+
50
+ # Ignore virtualenvs (who places it near)
51
+ .venv/
52
+
53
+ # Various shit from the OS itself
54
+ .DS_Store
@@ -1,3 +1,3 @@
1
- [submodule "OpenAPI-Specification"]
2
- path = tests/OpenAPI-Specification
3
- url = https://github.com/OAI/OpenAPI-Specification.git
1
+ [submodule "OpenAPI-Specification"]
2
+ path = tests/OpenAPI-Specification
3
+ url = https://github.com/OAI/OpenAPI-Specification.git
@@ -1 +1 @@
1
- Ihor Kalnytskyi <ihor@kalnytskyi.com> <igor@kalnitsky.org>
1
+ Ihor Kalnytskyi <ihor@kalnytskyi.com> <igor@kalnitsky.org>
@@ -1,16 +1,16 @@
1
- repos:
2
- - repo: https://github.com/pre-commit/pre-commit-hooks
3
- rev: v2.4.0
4
- hooks:
5
- - id: trailing-whitespace
6
- - id: end-of-file-fixer
7
- - id: check-docstring-first
8
- - id: check-json
9
- - id: check-yaml
10
- - id: debug-statements
11
-
12
- - repo: https://github.com/PyCQA/flake8
13
- rev: 3.7.9
14
- hooks:
15
- - id: flake8
16
- args: [--max-line-length=99]
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v2.4.0
4
+ hooks:
5
+ - id: trailing-whitespace
6
+ - id: end-of-file-fixer
7
+ - id: check-docstring-first
8
+ - id: check-json
9
+ - id: check-yaml
10
+ - id: debug-statements
11
+
12
+ - repo: https://github.com/PyCQA/flake8
13
+ rev: 3.7.9
14
+ hooks:
15
+ - id: flake8
16
+ args: [--max-line-length=99]
@@ -1,76 +1,76 @@
1
- =========
2
- Changes
3
- =========
4
-
5
- Here you can see the list of changes between each 'sphinxcontrib-openapi'
6
- release.
7
-
8
- 0.7.0 (2020-05-07)
9
- ==================
10
-
11
- - Drop Python 2.7 support because it reached its end-of-life.
12
- - Add support for examples defined in schema.
13
- - Add support for 'anyOf' during example generation based on schema.
14
- - Fix loading $ref in other YAML files.
15
- - Fix freeforom (property-less) obhect schema rendering.
16
- - Respect RFC7807 in example generation.
17
- - Add new experimental OpenAPI v3 renderer.
18
-
19
- 0.6.0 (2019-12-20)
20
- ==================
21
-
22
- - Add ``include`` and ``exclude`` options to exclude certain paths out from
23
- rendering.
24
- - Generate samples for ``GET`` requests.
25
- - When rendering by groups, preserve order of groups specified in the spec.
26
-
27
- 0.5.0 (2019-09-04)
28
- ==================
29
-
30
- - Fix example generation when a byte string is used in a schema.
31
- - Support CommonMark in spec where applied. ``m2r`` package is required.
32
- - Show "required" marker near required query parameters.
33
- - Show request body properties for OpenAPI v2 specs.
34
- - CLI command to render OpenAPI spec as reStructuredText is added.
35
-
36
- 0.4.0 (2019-01-17)
37
- ==================
38
-
39
- - Add OpenAPI 3.x support.
40
- - Drop Python 3.3 support because it reached its end-of-life.
41
- - Add Python 3.7 support.
42
- - Add sample request/response generation from schema for OpenAPI v3.
43
- - Add grouping by OpenAPI tags.
44
-
45
- 0.3.2 (2017-10-05)
46
- ==================
47
-
48
- - Do not crash on Python 2.x if non-ASCII character is met.
49
-
50
- 0.3.1 (2017-05-19)
51
- ==================
52
-
53
- - Make 'sphinxcontrib-openapi' compatible with Sphinx 1.6.
54
-
55
- 0.3.0 (2017-01-29)
56
- ==================
57
-
58
- - Add ``:paths:`` option to ``openapi`` directive that allows to render
59
- only specified endpoints.
60
- - Resolve references inside list objects.
61
- - Handle common ``parameters` specified at the endpoint's root.
62
-
63
- 0.2.1 (2017-01-10)
64
- ==================
65
-
66
- - Resolve relative JSON references.
67
-
68
- 0.2.0 (2016-11-16)
69
- ==================
70
-
71
- - Resolve JSON references in the spec before attempt to generate a doc.
72
-
73
- 0.1.0 (2016-10-03)
74
- ==================
75
-
76
- - First public release.
1
+ =========
2
+ Changes
3
+ =========
4
+
5
+ Here you can see the list of changes between each 'sphinxcontrib-openapi'
6
+ release.
7
+
8
+ 0.7.0 (2020-05-07)
9
+ ==================
10
+
11
+ - Drop Python 2.7 support because it reached its end-of-life.
12
+ - Add support for examples defined in schema.
13
+ - Add support for 'anyOf' during example generation based on schema.
14
+ - Fix loading $ref in other YAML files.
15
+ - Fix freeforom (property-less) obhect schema rendering.
16
+ - Respect RFC7807 in example generation.
17
+ - Add new experimental OpenAPI v3 renderer.
18
+
19
+ 0.6.0 (2019-12-20)
20
+ ==================
21
+
22
+ - Add ``include`` and ``exclude`` options to exclude certain paths out from
23
+ rendering.
24
+ - Generate samples for ``GET`` requests.
25
+ - When rendering by groups, preserve order of groups specified in the spec.
26
+
27
+ 0.5.0 (2019-09-04)
28
+ ==================
29
+
30
+ - Fix example generation when a byte string is used in a schema.
31
+ - Support CommonMark in spec where applied. ``m2r`` package is required.
32
+ - Show "required" marker near required query parameters.
33
+ - Show request body properties for OpenAPI v2 specs.
34
+ - CLI command to render OpenAPI spec as reStructuredText is added.
35
+
36
+ 0.4.0 (2019-01-17)
37
+ ==================
38
+
39
+ - Add OpenAPI 3.x support.
40
+ - Drop Python 3.3 support because it reached its end-of-life.
41
+ - Add Python 3.7 support.
42
+ - Add sample request/response generation from schema for OpenAPI v3.
43
+ - Add grouping by OpenAPI tags.
44
+
45
+ 0.3.2 (2017-10-05)
46
+ ==================
47
+
48
+ - Do not crash on Python 2.x if non-ASCII character is met.
49
+
50
+ 0.3.1 (2017-05-19)
51
+ ==================
52
+
53
+ - Make 'sphinxcontrib-openapi' compatible with Sphinx 1.6.
54
+
55
+ 0.3.0 (2017-01-29)
56
+ ==================
57
+
58
+ - Add ``:paths:`` option to ``openapi`` directive that allows to render
59
+ only specified endpoints.
60
+ - Resolve references inside list objects.
61
+ - Handle common ``parameters` specified at the endpoint's root.
62
+
63
+ 0.2.1 (2017-01-10)
64
+ ==================
65
+
66
+ - Resolve relative JSON references.
67
+
68
+ 0.2.0 (2016-11-16)
69
+ ==================
70
+
71
+ - Resolve JSON references in the spec before attempt to generate a doc.
72
+
73
+ 0.1.0 (2016-10-03)
74
+ ==================
75
+
76
+ - First public release.
@@ -1,23 +1,23 @@
1
- Copyright (c) 2016, Igor Kalnitsky <igor@kalnitsky.org>.
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
6
-
7
- * Redistributions of source code must retain the above copyright notice, this
8
- list of conditions and the following disclaimer.
9
-
10
- * Redistributions in binary form must reproduce the above copyright notice,
11
- this list of conditions and the following disclaimer in the documentation
12
- and/or other materials provided with the distribution.
13
-
14
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+ Copyright (c) 2016, Igor Kalnitsky <igor@kalnitsky.org>.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,12 +1,12 @@
1
- include README.rst LICENSE CHANGES
2
- include tox.ini
3
-
4
- recursive-include docs *
5
- recursive-include tests *
6
- recursive-include sphinxcontrib *.pot *.po *.mo
7
-
8
- prune docs/_build
9
-
10
- recursive-exclude * __pycache__
11
- recursive-exclude * *.py[co]
12
- recursive-exclude * .DS_Store
1
+ include README.rst LICENSE CHANGES
2
+ include tox.ini
3
+
4
+ recursive-include docs *
5
+ recursive-include tests *
6
+ recursive-include sphinxcontrib *.pot *.po *.mo
7
+
8
+ prune docs/_build
9
+
10
+ recursive-exclude * __pycache__
11
+ recursive-exclude * *.py[co]
12
+ recursive-exclude * .DS_Store
@@ -1,27 +1,36 @@
1
- Metadata-Version: 2.1
2
- Name: sc-oa
3
- Version: 0.7.0.12
4
- Summary: Fork of the OpenAPI (fka Swagger) spec renderer for Sphinx
5
- Home-page: https://github.com/olivier-heurtier/sphinxcontrib-openapi/tree/mymaster
6
- Author: Ihor Kalnytskyi
7
- Olivier Heurtier
8
- Author-email: ihor@kalnytskyi.com
9
- License: BSD
10
- Classifier: Topic :: Documentation
11
- Classifier: Topic :: Documentation :: Sphinx
12
- Classifier: License :: OSI Approved :: BSD License
13
- Classifier: Environment :: Console
14
- Classifier: Intended Audience :: Developers
15
- Classifier: Operating System :: OS Independent
16
- Classifier: Programming Language :: Python
17
- Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3 :: Only
19
- Classifier: Programming Language :: Python :: 3.8
20
- Classifier: Programming Language :: Python :: 3.9
21
- Classifier: Programming Language :: Python :: 3.10
22
- Classifier: Programming Language :: Python :: 3.11
23
- Classifier: Programming Language :: Python :: Implementation :: CPython
24
- Classifier: Framework :: Sphinx
25
- Classifier: Framework :: Sphinx :: Extension
26
- Requires-Python: >=3.8
27
- License-File: LICENSE
1
+ Metadata-Version: 2.1
2
+ Name: sc-oa
3
+ Version: 0.7.0.14
4
+ Summary: Fork of the OpenAPI (fka Swagger) spec renderer for Sphinx
5
+ Home-page: https://github.com/olivier-heurtier/sphinxcontrib-openapi/tree/mymaster
6
+ Author: Ihor Kalnytskyi
7
+ Olivier Heurtier
8
+ Author-email: ihor@kalnytskyi.com
9
+ License: BSD
10
+ Classifier: Topic :: Documentation
11
+ Classifier: Topic :: Documentation :: Sphinx
12
+ Classifier: License :: OSI Approved :: BSD License
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.8
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: Implementation :: CPython
25
+ Classifier: Framework :: Sphinx
26
+ Classifier: Framework :: Sphinx :: Extension
27
+ Requires-Python: >=3.8
28
+ License-File: LICENSE
29
+ Requires-Dist: sphinx
30
+ Requires-Dist: sphinxcontrib-httpdomain
31
+ Requires-Dist: PyYAML
32
+ Requires-Dist: jsonschema
33
+ Requires-Dist: m2r2
34
+ Requires-Dist: picobox
35
+ Requires-Dist: deepmerge
36
+ Requires-Dist: setuptools