-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor common to structures_pruning
- Loading branch information
Showing
14 changed files
with
67 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
Common Scripts | ||
============== | ||
Structures Pruning Scripts | ||
========================== | ||
|
||
`This <https://github.com/openedx/edx-platform/tree/master/scripts/structures_pruning>`_ directory contains mongo db structures pruning script that is migrated from the | ||
`tubular <https://github.com/openedx/tubular>`_ repository. | ||
|
||
`This <https://github.com/openedx/edx-platform/tree/master/scripts/common>`_ directory contains some common python scripts. Some of them are migrated from the other repositories. | ||
|
||
These scripts could be called from any automation/CD framework. | ||
This script could be called from any automation/CD framework. | ||
|
||
How to run the scripts | ||
====================== | ||
|
@@ -17,7 +19,7 @@ To download the scripts, you can perform a partial clone of the edx-platform rep | |
[email protected]:openedx/edx-platform.git | ||
branch=master | ||
directory=scripts/common | ||
directory=scripts/structures_pruning | ||
git clone --branch $branch --single-branch --depth=1 --filter=tree:0 $repo_url | ||
cd edx-platform | ||
|
@@ -41,7 +43,7 @@ Install the required pip packages using the provided requirements file: | |
|
||
.. code-block:: bash | ||
pip install -r scripts/common/requirements/base.txt | ||
pip install -r scripts/structures_pruning/requirements/base.txt | ||
Execute Script | ||
|
@@ -51,7 +53,7 @@ You can simply execute Python scripts with python command | |
|
||
.. code-block:: bash | ||
python scripts/common/structures.py prune plan_file.json | ||
python scripts/structures_pruning/structures.py prune plan_file.json | ||
Feel free to customize these steps according to your specific environment and requirements. | ||
|
||
|
@@ -62,10 +64,10 @@ Before running test cases, install the testing requirements: | |
|
||
.. code-block:: bash | ||
pip install -r scripts/common/requirements/testing.txt | ||
pip install -r scripts/structures_pruning/requirements/testing.txt | ||
Run the test cases using pytest: | ||
|
||
.. code-block:: bash | ||
pytest scripts/common | ||
pytest scripts/structures_pruning |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
scripts/common/requirements/base.in → ...s/structures_pruning/requirements/base.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
click | ||
click-log | ||
pymongo | ||
edx-opaque-keys | ||
pymongo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
scripts/common/requirements/testing.in → ...tructures_pruning/requirements/testing.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-r base.txt | ||
|
||
pytest | ||
ddt | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# make upgrade | ||
# | ||
click==8.1.7 | ||
# via | ||
# -r scripts/structures_pruning/requirements/base.txt | ||
# click-log | ||
click-log==0.4.0 | ||
# via -r scripts/structures_pruning/requirements/base.txt | ||
ddt==1.7.2 | ||
# via -r scripts/structures_pruning/requirements/testing.in | ||
edx-opaque-keys==2.5.1 | ||
# via -r scripts/structures_pruning/requirements/base.txt | ||
exceptiongroup==1.2.0 | ||
# via pytest | ||
iniconfig==2.0.0 | ||
# via pytest | ||
packaging==24.0 | ||
# via pytest | ||
pbr==6.0.0 | ||
# via | ||
# -r scripts/structures_pruning/requirements/base.txt | ||
# stevedore | ||
pluggy==1.4.0 | ||
# via pytest | ||
pymongo==3.13.0 | ||
# via | ||
# -r scripts/structures_pruning/requirements/base.txt | ||
# edx-opaque-keys | ||
pytest==8.1.1 | ||
# via -r scripts/structures_pruning/requirements/testing.in | ||
stevedore==5.2.0 | ||
# via | ||
# -r scripts/structures_pruning/requirements/base.txt | ||
# edx-opaque-keys | ||
tomli==2.0.1 | ||
# via pytest | ||
typing-extensions==4.10.0 | ||
# via | ||
# -r scripts/structures_pruning/requirements/base.txt | ||
# edx-opaque-keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.