Skip to content

Commit

Permalink
build: upgrade requirements files
Browse files Browse the repository at this point in the history
The requirements needed to be updated in order to pass the tests
  • Loading branch information
Talha-Rizwan committed Nov 23, 2023
1 parent adac984 commit 155da94
Show file tree
Hide file tree
Showing 9 changed files with 1,306 additions and 36 deletions.
41 changes: 18 additions & 23 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,20 @@ Installation for tutor

This method works with [tutor](https://github.com/overhangio/tutor).

First, go to your requirements directory:
First, go to your requirements directory::

```sh
cd $(tutor config printroot)/env/build/openedx/requirements/
```
cd $(tutor config printroot)/env/build/openedx/requirements/

add the `chatgpt-xblock` repo to the `private.txt`:

```sh
echo "git+https://github.com/edly-io/openedx-cmi5-xblock.git" >> private.txt
```
add the `openedx-cmi5-xblock` repo to the `private.txt`::

and build a new image:
echo "git+https://github.com/edly-io/openedx-cmi5-xblock.git" >> private.txt


and build a new image::

tutor images build openedx

```sh
tutor images build openedx
```

In your studio, in your desired course, go to Advanced Settings and add `"openedx_cmi5_xblock"` in the Advanced Module List.

Expand All @@ -44,20 +41,18 @@ Development

There's no need to build a new image, if you just want to play with the xblock.

First, clone the repo in the requirements directory:
First, clone the repo in the requirements directory::

cd $(tutor config printroot)/env/build/openedx/requirements/
git clone [email protected]:edly-io/openedx-cmi5-xblock.git


```sh
cd $(tutor config printroot)/env/build/openedx/requirements/
git clone [email protected]:edly-io/openedx-cmi5-xblock.git
```
exec to the lms container and install the XBlock::

exec to the lms container and install the XBlock:
tutor dev exec -it cms bash
cd ../requirements
pip install -e openedx-cmi5-xblock

```sh
tutor dev exec -it cms bash
cd ../requirements
pip install -e openedx-cmi5-xblock
```

Note: This is not the best practice to develop an XBlock, but it works if you don't want to build dev image.

Expand Down
105 changes: 105 additions & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# make upgrade
#
appdirs==1.4.4
# via fs
asgiref==3.7.2
# via django
boto3==1.29.6
# via fs-s3fs
botocore==1.32.6
# via
# boto3
# s3transfer
django==3.2.23
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# django-appconf
# django-statici18n
# edx-i18n-tools
# openedx-django-pyfs
django-appconf==1.0.6
# via django-statici18n
django-statici18n==2.4.0
# via -r requirements/base.in
edx-i18n-tools==1.3.0
# via -r requirements/base.in
fs==2.4.16
# via
# fs-s3fs
# openedx-django-pyfs
# xblock
fs-s3fs==1.1.1
# via openedx-django-pyfs
jmespath==1.0.1
# via
# boto3
# botocore
lazy==1.6
# via xblock
lxml==4.9.3
# via
# edx-i18n-tools
# xblock
mako==1.3.0
# via
# -r requirements/base.in
# xblock
# xblock-utils
markupsafe==2.1.3
# via
# mako
# xblock
openedx-django-pyfs==3.4.0
# via xblock
path==16.7.1
# via edx-i18n-tools
polib==1.2.0
# via edx-i18n-tools
python-dateutil==2.8.2
# via
# botocore
# xblock
pytz==2023.3.post1
# via
# django
# xblock
pyyaml==6.0.1
# via
# edx-i18n-tools
# xblock
s3transfer==0.7.0
# via boto3
simplejson==3.19.2
# via
# xblock
# xblock-utils
six==1.16.0
# via
# fs
# fs-s3fs
# python-dateutil
sqlparse==0.4.4
# via django
typing-extensions==4.8.0
# via asgiref
urllib3==1.26.18
# via botocore
web-fragments==2.1.0
# via
# xblock
# xblock-utils
webob==1.8.7
# via xblock
xblock[django]==1.8.1
# via
# -r requirements/base.in
# xblock-utils
xblock-utils==4.0.0
# via -r requirements/base.in

# The following packages are considered to be unsafe in a requirements file:
# setuptools
39 changes: 39 additions & 0 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# make upgrade
#
distlib==0.3.7
# via virtualenv
filelock==3.13.1
# via
# tox
# virtualenv
packaging==23.2
# via
# pyproject-api
# tox
platformdirs==3.11.0
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# tox
# virtualenv
pluggy==1.3.0
# via tox
py==1.11.0
# via tox
six==1.16.0
# via tox
tomli==2.0.1
# via
# pyproject-api
# tox
tox==3.28.0
# via
# -r requirements/ci.in
# tox-battery
tox-battery==0.6.2
# via -r requirements/ci.in
virtualenv==20.24.7
# via tox
Loading

0 comments on commit 155da94

Please sign in to comment.