Skip to content

Commit af3df5a

Browse files
authored
Update dependencies (#60)
- 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`
1 parent bb94038 commit af3df5a

File tree

7 files changed

+43
-37
lines changed

7 files changed

+43
-37
lines changed

README.rst

+19-15
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,17 @@ Inspired
2121
by*\ `aiohttp-swagger <https://github.com/cr0hn/aiohttp-swagger>`__\ *package
2222
(based on this package sources).*
2323

24-
+--------------------------------+------------------------------------+
25-
| Documentation | https://github.co |
26-
| | m/mrk-andreev/tornado-swagger/wiki |
27-
+================================+====================================+
28-
| Code | https://gith |
29-
| | ub.com/mrk-andreev/tornado-swagger |
30-
+--------------------------------+------------------------------------+
31-
| Issues | https://github.com/ |
32-
| | mrk-andreev/tornado-swagger/issues |
33-
+--------------------------------+------------------------------------+
34-
| Python version | Python 3.6, 3.7, 3.8, nightly |
35-
+--------------------------------+------------------------------------+
36-
| Swagger Language Specification | ht |
37-
| | tps://swagger.io/specification/v2/ |
38-
+--------------------------------+------------------------------------+
24+
+--------------------------------+-------------------------------------------------------+
25+
| Documentation | https://github.com/mrk-andreev/tornado-swagger/wiki |
26+
+--------------------------------+-------------------------------------------------------+
27+
| Code | https://github.com/mrk-andreev/tornado-swagger |
28+
+--------------------------------+-------------------------------------------------------+
29+
| Issues | https://github.com/mrk-andreev/tornado-swagger/issues |
30+
+--------------------------------+-------------------------------------------------------+
31+
| Python version | Python 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 nightly |
32+
+--------------------------------+-------------------------------------------------------+
33+
| Swagger Language Specification | https://swagger.io/specification/v2/ |
34+
+--------------------------------+-------------------------------------------------------+
3935

4036
Installation
4137
------------
@@ -113,6 +109,14 @@ APIs using Swagger show the Swagger-ui console ( default url /api/doc).
113109
What’s new?
114110
-----------
115111

112+
113+
Version 1.4.2
114+
~~~~~~~~~~~~~
115+
116+
- Update dev requirements (fix broken packages)
117+
- Update PyYAML from `PyYAML==5.4` to `PyYAML>=5.4` [issue-59](https://github.com/mrk-andreev/tornado-swagger/issues/59)
118+
- Specify encoding in `tornado_swagger/setup.py::open`
119+
116120
Version 1.4.1
117121
~~~~~~~~~~~~~
118122

requirements-dev.txt

+13-16
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
-r requirements.txt
2-
pytest==6.0.1
2+
pytest==7.1.2
33
pytest-deadfixtures==2.2.1
4-
black==20.8b1
4+
black==22.6.0
55
autoflake==1.4
6-
flake8==3.9.0
7-
flake8-annotations-complexity==0.0.6
8-
flake8-bandit==2.1.2
6+
flake8==5.0.4
7+
flake8-annotations-complexity==0.0.7
98
flake8-breakpoint==1.1.0
10-
flake8-bugbear==21.4.3
9+
flake8-bugbear==22.7.1
1110
flake8-builtins==1.5.3
12-
flake8-comprehensions==3.4.0
13-
flake8-eradicate==1.0.0
11+
flake8-comprehensions==3.10.0
12+
flake8-eradicate==1.2.1
1413
flake8-if-expr==1.0.4
15-
flake8-isort==4.0.0
16-
flake8-print==4.0.0
17-
flake8-pytest==1.3
18-
flake8-pytest-style==1.4.1
19-
flake8-return==1.1.2
20-
pep8-naming==0.11.1
21-
pylint==2.7.4
22-
safety==1.10.3
14+
flake8-isort==4.1.2
15+
flake8-print==5.0.0
16+
flake8-return==1.1.3
17+
pep8-naming==0.13.1
18+
pylint==2.14.5
19+
safety==2.1.1

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
tornado>=5.0
2-
PyYAML==5.4
2+
PyYAML>=5.4

setup.cfg

+4-3
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,16 @@ extension-pkg-whitelist=
5151
disable=
5252
C0103, ; Constant name "api" doesn't conform to UPPER_CASE naming style (invalid-name)
5353
C0111, ; Missing module docstring (missing-docstring)
54-
C0330, ; Wrong hanging indentation before block (add 4 spaces)
55-
R0201, ; Method could be a function (no-self-use)
5654
R0901, ; Too many ancestors (m/n) (too-many-ancestors)
5755
R0903, ; Too few public methods (m/n) (too-few-public-methods)
5856
R0801, ; duplicate-code
5957
W0703, ; Catching too general exception Exception (broad-except)
6058
W1203, ; Use lazy formatting in logging functions (logging-fstring-interpolation)
6159
R0914, ; Too many local variables
62-
R0913 ; Too many arguments
60+
R0913, ; Too many arguments
61+
C0209, ; Formatting a regular string which could be a f-string
62+
C0301, ; Line too long
63+
6364

6465
ignored-classes=
6566
contextlib.closing,

setup.py

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
"Programming Language :: Python :: 3.5",
2323
"Programming Language :: Python :: 3.6",
2424
"Programming Language :: Python :: 3.7",
25+
"Programming Language :: Python :: 3.8",
26+
"Programming Language :: Python :: 3.9",
27+
"Programming Language :: Python :: 3.10",
28+
"Programming Language :: Python :: 3.11",
2529
"Topic :: Software Development :: Libraries :: Python Modules",
2630
]
2731

tornado_swagger/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.4.1.1"
1+
__version__ = "1.4.2"

tornado_swagger/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def setup_swagger(
8080

8181
SwaggerSpecHandler.SWAGGER_SPEC = swagger_schema
8282

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

0 commit comments

Comments
 (0)