Skip to content

Commit fdab812

Browse files
mariajgrimaldiormsbee
authored andcommitted
chore: make plugin compatible with py312
1 parent 132ddc4 commit fdab812

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

plugins/tutor-contrib-scout-apm/setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def load_about():
3838
long_description=load_readme(),
3939
packages=find_packages(exclude=["tests*"]),
4040
include_package_data=True,
41-
python_requires=">=3.8",
41+
python_requires=">=3.12",
4242
install_requires=["tutor"],
4343
extras_require={"dev": ["tutor[dev]>=16.0.0,<19.0.0"]},
4444
entry_points={
@@ -52,9 +52,6 @@ def load_about():
5252
"License :: OSI Approved :: GNU Affero General Public License v3",
5353
"Operating System :: OS Independent",
5454
"Programming Language :: Python",
55-
"Programming Language :: Python :: 3.9",
56-
"Programming Language :: Python :: 3.10",
57-
"Programming Language :: Python :: 3.11",
5855
"Programming Language :: Python :: 3.12",
5956
],
6057
)

plugins/tutor-contrib-scout-apm/tutor_scout_apm/plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from __future__ import annotations
22
from glob import glob
33
import os
4-
import pkg_resources
54
import uuid
65

6+
from importlib.resources import files
77
from tutor import hooks as tutor_hooks
88

99
from .__about__ import __version__
@@ -35,9 +35,10 @@
3535

3636
# For each file in tutor_media/patches,
3737
# apply a patch based on the file's name and contents.
38+
patches_dir = files("tutor_scout_apm") / "patches"
3839
patch_files = glob(
3940
os.path.join(
40-
pkg_resources.resource_filename("tutor_scout_apm", "patches"),
41+
str(patches_dir),
4142
"*",
4243
)
4344
)

0 commit comments

Comments
 (0)