diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index b599464..8ffa95b 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -22,10 +22,10 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - - name: Set up Python + - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.6' + python-version: '3.9' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -43,10 +43,10 @@ jobs: strategy: max-parallel: 1 matrix: - python-version: [3.6, 3.9] + python-version: [3.6, 3.7, 3.9] steps: - uses: actions/checkout@v2 - - name: Set up Python + - name: Set up Python uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} @@ -63,4 +63,3 @@ jobs: USE_REGION: US run: nosetests -v - diff --git a/changelog b/changelog index 7539ac0..c4b3561 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,9 @@ +## [3.0.2] - 2024-07-03 + +## Chore + +- Pin requests/urllib version on Python 3.7+ + ## [3.0.1] - 2024-06-25 ## Fixed diff --git a/requirements.txt b/requirements.txt index 023768a..4f12565 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,8 +3,8 @@ arrow>=1.0.0,<2.0.0; python_version >= '3.6' iso8601>=0.1.14 six>=1.11.0 qiniu>=7.3.1 -requests<=2.31.0 -urllib3<=1.26.18 +requests<=2.31.0; python_version >= '3.7' +urllib3<=1.26.18; python_version >= '3.7' requests-toolbelt==1.0.0 Werkzeug>=0.16.0,<2.0.0 secure-cookie>=0.1.0,<1.0.0 diff --git a/setup.py b/setup.py index 129a9e4..33a7a6c 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,8 @@ 'iso8601>=0.1.14', 'six>=1.11.0', 'qiniu==7.3.1', - 'requests>=2.25.1', + "requests<=2.31.0; python_version >= '3.7'", + "urllib3<=1.26.18; python_version >= '3.7'", 'requests-toolbelt>=1.0.0', 'Werkzeug>=0.16.0,<2.0.0', 'secure-cookie>=0.1.0,<1.0.0', @@ -22,7 +23,7 @@ setup( name='leancloud', - version='3.0.1', + version='3.0.2', description='LeanCloud Python SDK', url='https://leancloud.cn/', author='asaka',