Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix and upgrade to quince #10

Closed
Closed
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ __pycache__
*.egg-info/
/build/
/dist/
.DS_Store
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variables:
TUTOR_PLUGIN: webui
TUTOR_PYPI_PACKAGE: tutor-webui
OPENEDX_RELEASE: palm
OPENEDX_RELEASE: quince
GITHUB_REPO: overhangio/tutor-webui

include:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def load_about():
packages=find_packages(exclude=["tests*"]),
include_package_data=True,
python_requires=">=3.8",
install_requires=["tutor>=16.0.0,<17.0.0", "click_repl>=0.2.0"],
install_requires=["tutor>=17.0.0,<18.0.0", "click_repl>=0.3.0"],
entry_points={
"tutor.plugin.v1": ["webui = tutorwebui.plugin"],
},
Expand Down
2 changes: 1 addition & 1 deletion tutorwebui/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "16.0.0"
__version__ = "17.0.0"
__package_version__ = __version__

# Handle version suffix for nightly, just like tutor core.
Expand Down
8 changes: 3 additions & 5 deletions tutorwebui/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,10 @@ def shell() -> None:
Type "local launch" to configure and launch a new platform from scratch.
Type <ctrl-d> to exit."""
)
# We need to manually patch the TutorCli object because click_repl
# incorrectly calls the `commands` attribute. Note that this enables us to
# run shell within shell, which is cool but a little weird...
# Retrieve the current Click context. The context is used to manage the state
# and pass around internal objects within the Click framework.
ctx = click.get_current_context()
ctx.parent.command.commands = {}


while True:
try:
click_repl.repl(ctx)
Expand Down