Skip to content
Merged
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 plugins/tutor-contrib-scout-apm/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def load_about():
long_description=load_readme(),
packages=find_packages(exclude=["tests*"]),
include_package_data=True,
python_requires=">=3.8",
python_requires=">=3.9",
install_requires=["tutor"],
extras_require={"dev": ["tutor[dev]>=16.0.0,<19.0.0"]},
entry_points={
Expand Down
5 changes: 3 additions & 2 deletions plugins/tutor-contrib-scout-apm/tutor_scout_apm/plugin.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from __future__ import annotations
from glob import glob
import os
import pkg_resources
import uuid

from importlib.resources import files
from tutor import hooks as tutor_hooks

from .__about__ import __version__
Expand Down Expand Up @@ -35,9 +35,10 @@

# For each file in tutor_media/patches,
# apply a patch based on the file's name and contents.
patches_dir = files("tutor_scout_apm") / "patches"
patch_files = glob(
os.path.join(
pkg_resources.resource_filename("tutor_scout_apm", "patches"),
str(patches_dir),
"*",
)
)
Expand Down