Skip to content

Commit 158f9bb

Browse files
authored
Merge pull request #509 from leancloud/py39
feat: support python 3.9, drop python 3.5
2 parents e286cf9 + 1b3b7ac commit 158f9bb

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Maybe you need the `sudo` prefix depends on your OS environment.
2020

2121
## Supported Python Versions
2222

23-
Python 2.7 and Python 3.5+.
23+
Python 2.7 and Python 3.6+.
2424

2525
## Generate API document
2626

requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
arrow
2-
iso8601
1+
arrow>=0.17.0,<1.0.0; python_version < '3.6'
2+
arrow>=1.0.0,<2.0.0; python_version >= '3.6'
3+
iso8601>=0.1.14
34
six>=1.11.0
45
qiniu>=7.1.4,<7.2.4
5-
requests>=2.20.0,<=2.22.0
6-
urllib3>=1.24.3,<=1.25.3
7-
Werkzeug>=0.16.0
6+
requests>=2.25.1
7+
Werkzeug>=0.16.0,<=2.0.0
88
secure-cookie>=0.1.0,<1.0.0
9-
gevent>=1.0.2,<2.0.0
9+
gevent>=21.1.0,<22.0.0

setup.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@
66
here = path.abspath(path.dirname(__file__))
77

88
install_requires = [
9-
'arrow',
10-
'iso8601',
9+
'iso8601>=0.1.14',
1110
'six>=1.11.0',
1211
'qiniu>=7.1.4,<7.2.4',
13-
'requests>=2.20.0,<=2.22.0',
14-
'urllib3>=1.24.3,<=1.25.3',
15-
'Werkzeug>=0.16.0',
12+
'requests>=2.25.1',
13+
'Werkzeug>=0.16.0,<=2.0.0',
1614
'secure-cookie>=0.1.0,<1.0.0',
17-
'gevent>=1.0.2,<2.0.0'
15+
'gevent>=21.1.0,<22.0.0'
1816
]
1917

18+
if sys.version_info < (3, 6, 0):
19+
install_requires.append('arrow>=0.17.0,<1.0.0')
20+
else:
21+
install_requires.append('arrow>=1.0.0,<2.0.0')
22+
2023
if sys.version_info < (3, 5, 0):
2124
install_requires.append('typing')
2225

0 commit comments

Comments
 (0)