Skip to content

Commit

Permalink
Update dependencies (#60)
Browse files Browse the repository at this point in the history
- Update dev requirements (fix broken packages)
- Update PyYAML from `PyYAML==5.4` to `PyYAML>=5.4` [issue-59](#59)
- Specify encoding in `tornado_swagger/setup.py::open`
  • Loading branch information
mrk-andreev authored Aug 4, 2022
1 parent bb94038 commit af3df5a
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 37 deletions.
34 changes: 19 additions & 15 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,17 @@ Inspired
by*\ `aiohttp-swagger <https://github.com/cr0hn/aiohttp-swagger>`__\ *package
(based on this package sources).*

+--------------------------------+------------------------------------+
| Documentation | https://github.co |
| | m/mrk-andreev/tornado-swagger/wiki |
+================================+====================================+
| Code | https://gith |
| | ub.com/mrk-andreev/tornado-swagger |
+--------------------------------+------------------------------------+
| Issues | https://github.com/ |
| | mrk-andreev/tornado-swagger/issues |
+--------------------------------+------------------------------------+
| Python version | Python 3.6, 3.7, 3.8, nightly |
+--------------------------------+------------------------------------+
| Swagger Language Specification | ht |
| | tps://swagger.io/specification/v2/ |
+--------------------------------+------------------------------------+
+--------------------------------+-------------------------------------------------------+
| Documentation | https://github.com/mrk-andreev/tornado-swagger/wiki |
+--------------------------------+-------------------------------------------------------+
| Code | https://github.com/mrk-andreev/tornado-swagger |
+--------------------------------+-------------------------------------------------------+
| Issues | https://github.com/mrk-andreev/tornado-swagger/issues |
+--------------------------------+-------------------------------------------------------+
| Python version | Python 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 nightly |
+--------------------------------+-------------------------------------------------------+
| Swagger Language Specification | https://swagger.io/specification/v2/ |
+--------------------------------+-------------------------------------------------------+

Installation
------------
Expand Down Expand Up @@ -113,6 +109,14 @@ APIs using Swagger show the Swagger-ui console ( default url /api/doc).
What’s new?
-----------


Version 1.4.2
~~~~~~~~~~~~~

- Update dev requirements (fix broken packages)
- Update PyYAML from `PyYAML==5.4` to `PyYAML>=5.4` [issue-59](https://github.com/mrk-andreev/tornado-swagger/issues/59)
- Specify encoding in `tornado_swagger/setup.py::open`

Version 1.4.1
~~~~~~~~~~~~~

Expand Down
29 changes: 13 additions & 16 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
-r requirements.txt
pytest==6.0.1
pytest==7.1.2
pytest-deadfixtures==2.2.1
black==20.8b1
black==22.6.0
autoflake==1.4
flake8==3.9.0
flake8-annotations-complexity==0.0.6
flake8-bandit==2.1.2
flake8==5.0.4
flake8-annotations-complexity==0.0.7
flake8-breakpoint==1.1.0
flake8-bugbear==21.4.3
flake8-bugbear==22.7.1
flake8-builtins==1.5.3
flake8-comprehensions==3.4.0
flake8-eradicate==1.0.0
flake8-comprehensions==3.10.0
flake8-eradicate==1.2.1
flake8-if-expr==1.0.4
flake8-isort==4.0.0
flake8-print==4.0.0
flake8-pytest==1.3
flake8-pytest-style==1.4.1
flake8-return==1.1.2
pep8-naming==0.11.1
pylint==2.7.4
safety==1.10.3
flake8-isort==4.1.2
flake8-print==5.0.0
flake8-return==1.1.3
pep8-naming==0.13.1
pylint==2.14.5
safety==2.1.1
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tornado>=5.0
PyYAML==5.4
PyYAML>=5.4
7 changes: 4 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,16 @@ extension-pkg-whitelist=
disable=
C0103, ; Constant name "api" doesn't conform to UPPER_CASE naming style (invalid-name)
C0111, ; Missing module docstring (missing-docstring)
C0330, ; Wrong hanging indentation before block (add 4 spaces)
R0201, ; Method could be a function (no-self-use)
R0901, ; Too many ancestors (m/n) (too-many-ancestors)
R0903, ; Too few public methods (m/n) (too-few-public-methods)
R0801, ; duplicate-code
W0703, ; Catching too general exception Exception (broad-except)
W1203, ; Use lazy formatting in logging functions (logging-fstring-interpolation)
R0914, ; Too many local variables
R0913 ; Too many arguments
R0913, ; Too many arguments
C0209, ; Formatting a regular string which could be a f-string
C0301, ; Line too long


ignored-classes=
contextlib.closing,
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
]

Expand Down
2 changes: 1 addition & 1 deletion tornado_swagger/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.4.1.1"
__version__ = "1.4.2"
2 changes: 1 addition & 1 deletion tornado_swagger/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def setup_swagger(

SwaggerSpecHandler.SWAGGER_SPEC = swagger_schema

with open(os.path.join(STATIC_PATH, "ui.html"), "r") as f:
with open(os.path.join(STATIC_PATH, "ui.html"), "r", encoding="utf-8") as f:
SwaggerUiHandler.SWAGGER_HOME_TEMPLATE = (
f.read().replace("{{ SWAGGER_URL }}", _swagger_spec_url).replace("{{ DISPLAY_MODELS }}", str(-1 if not display_models else 1))
)

0 comments on commit af3df5a

Please sign in to comment.