Skip to content

Commit d1f8650

Browse files
authored
Add Python 3.12 support (#372)
* Add Python 3.12 support * Fix lint
1 parent b49fbeb commit d1f8650

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
python-version: ["3.8", "3.9", "3.10", "3.11"]
20+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
2121

2222
steps:
2323
- uses: actions/checkout@v4

src/kinto_http/constants.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1+
import importlib.metadata
12
import re
23
import sys
34

4-
import pkg_resources
55

6-
7-
kinto_http_version = pkg_resources.get_distribution("kinto_http").version
8-
requests_version = pkg_resources.get_distribution("requests").version
6+
kinto_http_version = importlib.metadata.version("kinto_http")
7+
requests_version = importlib.metadata.version("requests")
98
python_version = ".".join(map(str, sys.version_info[:3]))
109

1110
USER_AGENT = "kinto_http/{} requests/{} python/{}".format(

0 commit comments

Comments
 (0)