Skip to content

Commit 2ba5c5b

Browse files
authored
Merge pull request #77 from python-ellar/python_updates
fix: Dropped py3.8 and py3.9
2 parents 4a03fe8 + 53e00af commit 2ba5c5b

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Python
1414
uses: actions/setup-python@v5
1515
with:
16-
python-version: 3.8
16+
python-version: '3.12'
1717
- name: Install Flit
1818
run: pip install flit
1919
- name: Install Dependencies

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Python
1515
uses: actions/setup-python@v5
1616
with:
17-
python-version: 3.8
17+
python-version: '3.12'
1818
- name: Install Flit
1919
run: pip install flit
2020
- name: Install Dependencies

.github/workflows/test_full.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
13+
python-version: ['3.10', '3.11', '3.12', '3.13']
1414

1515
steps:
1616
- uses: actions/checkout@v4
@@ -32,7 +32,7 @@ jobs:
3232
- name: Set up Python
3333
uses: actions/setup-python@v5
3434
with:
35-
python-version: 3.8
35+
python-version: '3.12'
3636
- name: Install Flit
3737
run: pip install flit
3838
- name: Install Dependencies

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ help:
55
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
66

77
clean: ## Removing cached python compiled files
8-
find . -name \*pyc | xargs rm -fv
9-
find . -name \*pyo | xargs rm -fv
10-
find . -name \*~ | xargs rm -fv
8+
find . -name "*.pyc" -type f -delete
9+
find . -name "*.pyo" -type f -delete
10+
find . -name "*~" -type f -delete
1111
find . -name __pycache__ | xargs rm -rfv
1212
find . -name .ruff_cache | xargs rm -rfv
1313

tests/test_module_options.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ def test_jwt_module_configuration_case_1():
2121
)
2222
jwt_service: JWTService = tm.get(JWTService)
2323

24-
token = jwt_service.sign({"sub": 23})
24+
token = jwt_service.sign({"sub": "23"})
2525
payload = jwt_service.decode(token)
2626

27-
assert payload["sub"] == 23
27+
assert payload["sub"] == "23"
2828

2929

3030
def test_jwt_module_configuration_case_2():
@@ -42,10 +42,10 @@ def test_jwt_module_configuration_case_2():
4242
)
4343
jwt_service: JWTService = tm.get(JWTService)
4444

45-
token = jwt_service.sign({"sub": 23})
45+
token = jwt_service.sign({"sub": "23"})
4646
payload = jwt_service.decode(token)
4747

48-
assert payload["sub"] == 23
48+
assert payload["sub"] == "23"
4949

5050

5151
def test_jwt_module_configuration_case_2_fails():

0 commit comments

Comments
 (0)