Skip to content

Commit

Permalink
Fix compilation issue for old python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
xente committed Nov 18, 2024
1 parent 2a8345c commit 5fa5445
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ permissions:

jobs:
deploy:

runs-on: ubuntu-latest
#Fix version needed to use python 3.6 https://github.com/actions/setup-python/issues/544
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ on:

jobs:
test:
runs-on: ubuntu-latest
#Fix version needed to use python 3.6 https://github.com/actions/setup-python/issues/544
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout Code
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
requests==2.32.3
requests>=2.27.1; python_version < '3.7'
requests>=2.31.0; python_version == '3.7'
requests>=2.32.3; python_version >= '3.8'

0 comments on commit 5fa5445

Please sign in to comment.