Skip to content

Commit

Permalink
Add Python 3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Jul 2, 2024
1 parent b49fbeb commit 59fc3a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 3 additions & 4 deletions src/kinto_http/constants.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import re
import sys
import importlib.metadata

import pkg_resources


kinto_http_version = pkg_resources.get_distribution("kinto_http").version
requests_version = pkg_resources.get_distribution("requests").version
kinto_http_version = importlib.metadata.version("kinto_http")
requests_version = importlib.metadata.version("requests")
python_version = ".".join(map(str, sys.version_info[:3]))

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

0 comments on commit 59fc3a3

Please sign in to comment.