Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,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]
django-version: [2.2, 3.2, 4.2]

steps:
Expand Down
4 changes: 2 additions & 2 deletions django_query_capture/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import typing

import inspect
import sysconfig
import time
from contextlib import ContextDecorator, ExitStack
from distutils.sysconfig import get_python_lib

from django.db import connection
from django.db.backends.dummy.base import DatabaseWrapper
Expand Down Expand Up @@ -94,7 +94,7 @@ def _save_queries(self, execute, sql, params, many, context):
Returns:
Returns the result of the exit for the basic operation of `connection.execute_wrapper`.
"""
python_library_directory = get_python_lib()
python_library_directory = sysconfig.get_path("purelib")
called_by = [
stack
for stack in inspect.stack()
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ classifiers = [ #! Update me
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Natural Language :: Korean",
Expand Down