Skip to content

Commit 1231b12

Browse files
authored
[python/cherrypy] Update python 3.13 (#10259)
increase queue_size for pass DB job
1 parent 2dafb0c commit 1231b12

File tree

5 files changed

+11
-49
lines changed

5 files changed

+11
-49
lines changed

frameworks/Python/cherrypy/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ def fortunes(self):
153153
cherrypy.tools.db = SATool()
154154
cherrypy.server.socket_host = '0.0.0.0'
155155
cherrypy.server.socket_port = 8080
156-
cherrypy.server.thread_pool = workers
157-
cherrypy.server.socket_queue_size = 25
156+
cherrypy.server.thread_pool = workers * 2
157+
cherrypy.server.socket_queue_size = 100
158158

159159
cherrypy.quickstart(CherryPyBenchmark(), '', {
160160
'/': {

frameworks/Python/cherrypy/benchmark_config.json

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,6 @@
22
"framework": "cherrypy",
33
"tests": [{
44
"default": {
5-
"json_url": "/json",
6-
"db_url": "/db",
7-
"query_url": "/queries?queries=",
8-
"fortune_url": "/fortunes",
9-
"update_url": "/updates?queries=",
10-
"plaintext_url": "/plaintext",
11-
"port": 8080,
12-
"approach": "Realistic",
13-
"classification": "Micro",
14-
"database": "MySQL",
15-
"framework": "None",
16-
"language": "Python",
17-
"flavor": "Python2",
18-
"orm": "Full",
19-
"platform": "None",
20-
"webserver": "None",
21-
"os": "Linux",
22-
"database_os": "Linux",
23-
"display_name": "CherryPy [py2]",
24-
"notes": "CPython 2.7",
25-
"tags": ["broken"]
26-
},
27-
"py3": {
285
"json_url": "/json",
296
"db_url": "/db",
307
"query_url": "/queries?queries=",
@@ -44,7 +21,7 @@
4421
"os": "Linux",
4522
"database_os": "Linux",
4623
"display_name": "CherryPy",
47-
"notes": "CPython 3.9"
24+
"notes": "CPython 3.13"
4825
}
4926
}]
5027
}

frameworks/Python/cherrypy/cherrypy-py3.dockerfile

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM python:2.7.15-stretch
1+
FROM python:3.13-bullseye
22

33
ADD ./ /cherrypy
44

55
WORKDIR /cherrypy
66

7-
RUN pip install -r /cherrypy/requirements.txt
7+
RUN pip3 install -r /cherrypy/requirements.txt
88

99
EXPOSE 8080
1010

11-
CMD python app.py
11+
CMD python3 app.py
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
cheroot==8.6.0
2-
CherryPy==17.4.2 ; python_version=='2.7'
31
CherryPy==18.8.0 ; python_version>'3.5'
4-
more-itertools==4.1.0
5-
mysqlclient==1.3.12
6-
portend==2.2
7-
pytz==2017.3
8-
six==1.11.0
9-
SQLAlchemy==1.4.47
10-
tempora==1.10
2+
mysqlclient==2.2.4
3+
pytz==2024.1
4+
SQLAlchemy==1.4.53
5+
six==1.17.0
6+
legacy-cgi==2.6.4

0 commit comments

Comments
 (0)