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

chore: drop six and refactor #329

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

MaferMazu
Copy link
Collaborator

@MaferMazu MaferMazu commented Nov 15, 2024

Description

This PR fully removes the six package and refactors some code.

Related to #326

Note

I think it is easier to review this PR by commit.

Details

How to test

Code

All the checks are passed.

Integration

Environment

  • Have a tutor environment with Tutor v18.1.4
  • Install codejail. You can follow the installation and usage process from the tutor-contrib-codejail README.
  • Perform a dev launch

Data

  • Import the MIT demo course running:
tutor dev do importdemocourse -r https://github.com/mitodl/mitx-grading-library -d course -v master

For more info: tutor dev do importdemocourse -h

  • Create an admin user
tutor dev do createuser --staff --superuser admin admin@example.com

Test

  1. Enter in Studio > MITx Grading Library > Content > Files
  2. Remove the python_lib.zip and add this one:
    python_lib.zip

Note

If you want to create your python_lib from this version, you can clone the repo, enter in it, and then:

find mitxgraders voluptuous -type f ! -path "*/__pycache__/*" | zip python_lib.zip -@
  1. Make sure the units are rendered and worked well.

Screencasts

Everything still works as expected.

Screencast.from.2024-11-15.17-20-41.webm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant