Skip to content

Commit 9ed38c8

Browse files
authored
Merge pull request #559 from leancloud/release/3.0.2
chore: Pin requests/urllib version on Python 3.7+
2 parents 6fd43b5 + 9d0c5d4 commit 9ed38c8

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
runs-on: ubuntu-20.04
2323
steps:
2424
- uses: actions/checkout@v2
25-
- name: Set up Python
25+
- name: Set up Python
2626
uses: actions/setup-python@v2
2727
with:
28-
python-version: '3.6'
28+
python-version: '3.9'
2929
- name: Install dependencies
3030
run: |
3131
python -m pip install --upgrade pip
@@ -43,10 +43,10 @@ jobs:
4343
strategy:
4444
max-parallel: 1
4545
matrix:
46-
python-version: [3.6, 3.9]
46+
python-version: [3.6, 3.7, 3.9]
4747
steps:
4848
- uses: actions/checkout@v2
49-
- name: Set up Python
49+
- name: Set up Python
5050
uses: actions/setup-python@v2
5151
with:
5252
python-version: ${{ matrix.python-version }}
@@ -63,4 +63,3 @@ jobs:
6363
USE_REGION: US
6464
run:
6565
nosetests -v
66-

changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [3.0.2] - 2024-07-03
2+
3+
## Chore
4+
5+
- Pin requests/urllib version on Python 3.7+
6+
17
## [3.0.1] - 2024-06-25
28

39
## Fixed

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ arrow>=1.0.0,<2.0.0; python_version >= '3.6'
33
iso8601>=0.1.14
44
six>=1.11.0
55
qiniu>=7.3.1
6-
requests<=2.31.0
7-
urllib3<=1.26.18
6+
requests<=2.31.0; python_version >= '3.7'
7+
urllib3<=1.26.18; python_version >= '3.7'
88
requests-toolbelt==1.0.0
99
Werkzeug>=0.16.0,<2.0.0
1010
secure-cookie>=0.1.0,<1.0.0

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
'iso8601>=0.1.14',
1212
'six>=1.11.0',
1313
'qiniu==7.3.1',
14-
'requests>=2.25.1',
14+
"requests<=2.31.0; python_version >= '3.7'",
15+
"urllib3<=1.26.18; python_version >= '3.7'",
1516
'requests-toolbelt>=1.0.0',
1617
'Werkzeug>=0.16.0,<2.0.0',
1718
'secure-cookie>=0.1.0,<1.0.0',
@@ -22,7 +23,7 @@
2223

2324
setup(
2425
name='leancloud',
25-
version='3.0.1',
26+
version='3.0.2',
2627
description='LeanCloud Python SDK',
2728
url='https://leancloud.cn/',
2829
author='asaka',

0 commit comments

Comments
 (0)