Skip to content

Commit

Permalink
Merge pull request #181
Browse files Browse the repository at this point in the history
* chore: compatible py3.10 3.11,upgrade image to 3.11

* docs: python version

* Merge branch 'master' into chore/py3.10-3.11
  • Loading branch information
lihuacai168 authored Feb 22, 2024
1 parent 280ec85 commit a333f09
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-buster as Base
FROM python:3.11-buster as Base



Expand All @@ -21,7 +21,7 @@ RUN apt-get update && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*

FROM python:3.9-buster
FROM python:3.11-buster
ENV TZ=Asia/Shanghai

ARG DEBIAN_REPO="deb.debian.org"
Expand All @@ -39,7 +39,7 @@ RUN apt-get update && \
echo $TZ > /etc/timezone && \
rm -rf /var/lib/apt/lists/*

COPY --from=Base /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
COPY --from=Base /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
WORKDIR /app
COPY . /app
RUN chmod +x /app/start.sh
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@


# 注意
> 只能使用`python3.9`版本
> python版本需要>=3.9
>
> 3.9, 3.10和3.11都经过测试
# 文档
- 使用文档 https://www.yuque.com/lihuacai/fasterunner
Expand Down
2 changes: 1 addition & 1 deletion httprunner/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import time
import unittest
from base64 import b64encode
from collections import Iterable
from typing import Iterable
from datetime import datetime

from jinja2 import Template, escape
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ requests-toolbelt==0.9.1
simplejson==3.17.0
six==1.15.0
sqlparse==0.3.1
tornado==6.4
uritemplate==3.0.1
urllib3==1.25.7
#uWSGI==2.0.18
Expand Down

0 comments on commit a333f09

Please sign in to comment.