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

Suggestions for Redwood support #1

Open
wants to merge 4 commits into
base: redwood
Choose a base branch
from
Open

Conversation

fghaas
Copy link

@fghaas fghaas commented Aug 2, 2024

This is a small modification to citynetwork#44 that attempts to preserve compatibility with pre-Redwood Open edX releases.

In addition, it adds version dependency checking via pipdeptree, and slightly simplifies the test matrix by removing Python 3.10.

Maari Tamm and others added 4 commits August 2, 2024 10:34
* Update the import statement for xblock-utils

  The `xblock-utils` library has been deprecated as a separate package;
  the `utils` library has been moved into the `XBlock` and should now
  be imported from `xblock.utils` instead.
  (openedx/XBlock#675)

* Upgrade to XBlock 2
  Remove the use of deprecated `xblock.fragment` and direct
  id_generator parameters. 9openedx/XBlock#680)

* Add Python 3.11 to test matrix; Drop Python 3.8 from test matrix

* Add a version compatibility matrix to the README

Fixes: citynetwork#38
Support versions before and after 2 of the XBlock API.

Distinguish using the following logic:

* When using a Python version prior to 3.9, assume we need the pre-2
  API.
* For later Python versions, assume the latest API.

This way, we get the correct dependencies installed for Redwood (which
uses Python 3.11) and earlier releases (which use 3.8).
Having pipdeptree in the test environment is very helpful in
determining what versions of dependencies actually get installed,
particularly in a CI pipeline.

Add the pipdeptree and pipdeptree-requirements testenvs, and invoke
them from the GitHub Actions workflow.
We need to test this XBlock on Python 3.8 (for Open edX releases prior
to Redwood), 3.11 (for Redwood), and 3.12 (which is the current latest
Python release).

There is no real good reason to test on 3.10, so we might as well drop
it.
@mrtmm
Copy link
Owner

mrtmm commented Aug 2, 2024

Looks good to me! :)

@fghaas
Copy link
Author

fghaas commented Aug 2, 2024

Looks good to me! :)

OK, in that case please feel free to pull this into your topic branch, and squash the fixup commit. :)

@mrtmm mrtmm force-pushed the redwood branch 2 times, most recently from 260f17d to b79e6d8 Compare August 2, 2024 13:36
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.

2 participants