Skip to content

Commit

Permalink
chore: providing basic quince support (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfavellar90 committed Apr 22, 2024
1 parent fa33fc1 commit 5afd613
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
5 changes: 2 additions & 3 deletions tutor-contrib-harmony-plugin/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def load_about():
long_description=load_readme(),
packages=find_packages(exclude=["tests*"]),
include_package_data=True,
python_requires=">=3.7",
install_requires=["tutor>=16.0.0,<17.0.0"],
python_requires=">=3.8",
install_requires=["tutor>=17.0.0,<18.0.0"],
entry_points={
"tutor.plugin.v1": [
"k8s_harmony = tutor_k8s_harmony_plugin.plugin",
Expand All @@ -52,7 +52,6 @@ def load_about():
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.0"
__version__ = "17.0.0"
12 changes: 6 additions & 6 deletions tutor-contrib-harmony-plugin/tutor_k8s_harmony_plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from glob import glob

import pkg_resources
from tutor import hooks
from tutor import hooks as tutor_hooks

from . import commands
from .__about__ import __version__
Expand Down Expand Up @@ -38,12 +38,12 @@
}

# Load all configuration entries
hooks.Filters.CONFIG_DEFAULTS.add_items(
tutor_hooks.Filters.CONFIG_DEFAULTS.add_items(
[(f"K8S_HARMONY_{key}", value) for key, value in config["defaults"].items()]
)

hooks.Filters.CONFIG_OVERRIDES.add_items(list(config["overrides"].items()))
hooks.Filters.CONFIG_UNIQUE.add_items(list(config["unique"].items()))
tutor_hooks.Filters.CONFIG_OVERRIDES.add_items(list(config["overrides"].items()))
tutor_hooks.Filters.CONFIG_UNIQUE.add_items(list(config["unique"].items()))

# Load all patches from the "patches" folder
for path in glob(
Expand All @@ -53,6 +53,6 @@
)
):
with open(path, encoding="utf-8") as patch_file:
hooks.Filters.ENV_PATCHES.add_item((os.path.basename(path), patch_file.read()))
tutor_hooks.Filters.ENV_PATCHES.add_item((os.path.basename(path), patch_file.read()))

hooks.Filters.CLI_COMMANDS.add_item(commands.harmony)
tutor_hooks.Filters.CLI_COMMANDS.add_item(commands.harmony)

0 comments on commit 5afd613

Please sign in to comment.