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: add init task to pip-install mounted edx-platform #25

Closed
wants to merge 25 commits into from

Conversation

kdmccormick
Copy link
Owner

@kdmccormick kdmccormick commented Jan 11, 2023

Implements "Option B" from openedx-unsupported/wg-developer-experience#152, specifically:

B. Init task:

  • Run ensure-setup in the LMS container as part of the do init job.
  • Update the documentation to explain that launch (or do init) should be called when first mounting an edx-platform, but remove pip install .... from the mounted edx-platform setup steps.

You can compare this with Option A here: #24

@kdmccormick kdmccormick force-pushed the kdmccormick/egg-info-init-task branch from c30b728 to 8b39340 Compare January 11, 2023 19:33
@kdmccormick kdmccormick force-pushed the kdmccormick/egg-info-init-task branch from 8b39340 to b903c69 Compare January 11, 2023 19:34
@kdmccormick kdmccormick reopened this Jan 11, 2023
@kdmccormick kdmccormick changed the title feat: add init task to pip-install mounted edx-platform eat: add init task to pip-install mounted edx-platform Jan 11, 2023
@kdmccormick kdmccormick changed the title eat: add init task to pip-install mounted edx-platform feat: add init task to pip-install mounted edx-platform Jan 11, 2023
@kdmccormick kdmccormick force-pushed the kdmccormick/egg-info-init-task branch 3 times, most recently from d68edcf to a143aa7 Compare January 11, 2023 20:14
Comment on lines +7 to +9
ENTRY_POINTS_INFO=Open_edX.egg-info/entry_points.txt
if [ ! -f "$ENTRY_POINTS_INFO" ] || [ "$ENTRY_POINTS_INFO" -ot setup.py ]; then
pip install -e .
fi
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note:

I took this block directly from the other PR: #24

In the context of do init, here's no harm in re-running pip install -e ., other than the ~2 seconds it take to run, so we could simplify this block to just:

Suggested change
ENTRY_POINTS_INFO=Open_edX.egg-info/entry_points.txt
if [ ! -f "$ENTRY_POINTS_INFO" ] || [ "$ENTRY_POINTS_INFO" -ot setup.py ]; then
pip install -e .
fi
pip install -e .

@kdmccormick kdmccormick force-pushed the kdmccormick/egg-info-init-task branch from a143aa7 to b1974a3 Compare January 11, 2023 20:39
Overhang.IO and others added 10 commits January 17, 2023 11:54
Adds `from __future__ import annotations` to the top of every module,
right below the module's docstring. Replaces any usages of t.List,
t.Dict, t.Set, t.Tuple, and t.Type with their built-in equivalents:
list, dict, set, tuple, and type. Ensures that make test still passes
under Python 3.7, 3.8 and 3.9.
* Remove redundant changelog line
* The change should NOT affect most developers ;)
@kdmccormick kdmccormick force-pushed the kdmccormick/egg-info-init-task branch from b1974a3 to dcec026 Compare March 10, 2023 19:27
@kdmccormick
Copy link
Owner Author

Closed in favor of overhangio#813, which includes the code from this PR, and then some.

@kdmccormick kdmccormick deleted the kdmccormick/egg-info-init-task branch March 17, 2023 16:09
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.

3 participants