Skip to content

Commit

Permalink
perf: redwood release support DS-1011 (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV authored Jun 26, 2024
1 parent 52ef629 commit 22bc907
Show file tree
Hide file tree
Showing 22 changed files with 84 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/add_issues_prs_to_dedalo_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Add to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.5.0
- uses: actions/add-to-project@v1.0.1
with:
project-url: https://github.com/orgs/eduNEXT/projects/1
github-token: ${{ secrets.DEDALO_PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
- uses: wagoid/commitlint-github-action@v6
4 changes: 2 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
tutor_version: ["<17.0.0", "<18.0.0"]
tutor_version: ["<17.0.0", "<18.0.0", "<19.0.0"]
steps:
- uses: actions/checkout@v4.1.6
- uses: actions/checkout@v4
with:
path: eox-tenant
- uses: eduNEXT/integration-test-in-tutor@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_issue_assignment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Auto-assign PR-Issue'
uses: pozil/auto-assign-issue@v1.11.0
uses: pozil/auto-assign-issue@v2
with:
repo-token: ${{ secrets.DEDALO_PAT }}
teams: django-plugins-teco
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: |
python -m build --sdist --wheel --outdir dist/ .
- name: Publish package
uses: pypa/gh-action-pypi-publish@v1.8.11
uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
max-parallel: 2
matrix:
python-version: ["3.8"]
python-version: ["3.8", "3.10", "3.11"]
django: ["32", "42"]
steps:
- name: Checkout
Expand All @@ -26,7 +26,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.5.0
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v11.7.0](https://github.com/eduNEXT/eox-tenant/compare/v11.6.0...v11.7.0) - (2024-06-19)

### Changed

- **Redwood Support**: Upgrade requirements base on edx-platform redwood
release, update GitHub workflows with new Python (3.10 and 3.11) and actions
version, and update integration test to use new redwood release with Tutor.

## v11.6.0 - 2024-06-06

### [11.6.0](https://github.com/eduNEXT/eox-tenant/compare/v11.5.0...v11.6.0) (2024-06-06)
Expand Down
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Compatibility Notes
+------------------+-----------------------+
| Quince | >= v11.0.0 |
+------------------+-----------------------+
| Redwood | >= v11.7.0 |
+------------------+-----------------------+

**NOTE**: Since 6.2 version, eox-tenant does not support Django 2.2

Expand Down Expand Up @@ -88,7 +90,7 @@ For version >= 3.4
Those settings can be changed in ``eox_tenant/settings/common.py`` or, for example, in ansible configurations.

**NOTE**: the current ``common.py`` works with Open edX juniper version.
**NOTE**: the current ``common.py`` works with Open edX Redwood version.

Migration notes
---------------
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion eox_tenant/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
Init for eox-tenant.
"""
__version__ = '11.6.0'
__version__ = '11.7.0'
15 changes: 0 additions & 15 deletions eox_tenant/edxapp_wrapper/backends/users_l_v1.py

This file was deleted.

12 changes: 12 additions & 0 deletions eox_tenant/edxapp_wrapper/backends/users_p_v1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Palm backend user module."""
from common.djangoapps.student.models.user import UserSignupSource # pylint: disable=import-error


def get_user_signup_source():
"""Allow to get the model UserSignupSource from
https://github.com/openedx/edx-platform/blob/open-release/palm.master/common/djangoapps/student/models/user.py#L820
Returns:
UserSignupSource model.
"""
return UserSignupSource
2 changes: 1 addition & 1 deletion eox_tenant/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def plugin_settings(settings):
settings.GET_SITE_CONFIGURATION_MODULE = 'eox_tenant.edxapp_wrapper.backends.site_configuration_module_i_v1'
settings.GET_THEMING_HELPERS = 'eox_tenant.edxapp_wrapper.backends.theming_helpers_h_v1'
settings.EOX_TENANT_EDX_AUTH_BACKEND = "eox_tenant.edxapp_wrapper.backends.edx_auth_n_v1"
settings.EOX_TENANT_USERS_BACKEND = 'eox_tenant.edxapp_wrapper.backends.users_l_v1'
settings.EOX_TENANT_USERS_BACKEND = 'eox_tenant.edxapp_wrapper.backends.users_p_v1'
settings.EOX_TENANT_BEARER_AUTHENTICATION = 'eox_tenant.edxapp_wrapper.backends.bearer_authentication_l_v1'
settings.EOX_MAX_CONFIG_OVERRIDE_SECONDS = 300
settings.EDXMAKO_MODULE_BACKEND = 'eox_tenant.edxapp_wrapper.backends.edxmako_l_v1'
Expand Down
2 changes: 1 addition & 1 deletion eox_tenant/test/tutor/integration_test_tutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_current_settings_code_imports(self):
import eox_tenant.edxapp_wrapper.backends.branding_api_l_v1 # isort:skip
import eox_tenant.edxapp_wrapper.backends.site_configuration_module_i_v1 # isort:skip
import eox_tenant.edxapp_wrapper.backends.theming_helpers_h_v1 # isort:skip
import eox_tenant.edxapp_wrapper.backends.users_l_v1 # isort:skip
import eox_tenant.edxapp_wrapper.backends.users_p_v1 # isort:skip
import eox_tenant.edxapp_wrapper.backends.bearer_authentication_l_v1 # isort:skip
import eox_tenant.edxapp_wrapper.backends.edxmako_l_v1 # isort:skip
import eox_tenant.edxapp_wrapper.backends.edx_auth_n_v1 # isort:skip
Expand Down
20 changes: 11 additions & 9 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
#
asgiref==3.8.1
# via django
backports-zoneinfo==0.2.1
backports-zoneinfo==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# django
# djangorestframework
certifi==2024.6.2
Expand Down Expand Up @@ -50,7 +51,7 @@ django-crum==0.7.9
# edx-django-utils
django-model-utils==4.5.1
# via edx-organizations
django-mysql==4.13.0
django-mysql==4.14.0
# via -r requirements/base.in
django-simple-history==3.0.0
# via
Expand All @@ -62,6 +63,7 @@ django-waffle==4.1.0
# edx-drf-extensions
djangorestframework==3.15.1
# via
# -c requirements/constraints.txt
# -r requirements/base.in
# drf-jwt
# edx-drf-extensions
Expand All @@ -76,7 +78,7 @@ edx-drf-extensions==10.3.0
# via
# -r requirements/base.in
# edx-organizations
edx-opaque-keys[django]==2.9.0
edx-opaque-keys[django]==2.10.0
# via
# -r requirements/base.in
# edx-drf-extensions
Expand All @@ -87,19 +89,19 @@ idna==3.7
# via requests
jsonfield==3.1.0
# via -r requirements/base.in
newrelic==9.10.0
newrelic==9.11.0
# via edx-django-utils
oauthlib==3.2.2
# via
# requests-oauthlib
# social-auth-core
openedx-filters==1.8.1
openedx-filters==1.9.0
# via -r requirements/base.in
pbr==6.0.0
# via stevedore
pillow==10.3.0
# via edx-organizations
psutil==5.9.8
psutil==6.0.0
# via edx-django-utils
pycparser==2.22
# via cffi
Expand All @@ -108,7 +110,7 @@ pyjwt[crypto]==2.8.0
# drf-jwt
# edx-drf-extensions
# social-auth-core
pymongo==4.4.0
pymongo==4.7.3
# via edx-opaque-keys
pynacl==1.5.0
# via edx-django-utils
Expand All @@ -133,11 +135,11 @@ stevedore==5.2.0
# via
# edx-django-utils
# edx-opaque-keys
typing-extensions==4.12.1
typing-extensions==4.12.2
# via
# asgiref
# edx-opaque-keys
urllib3==2.2.1
urllib3==2.2.2
# via requests

# The following packages are considered to be unsafe in a requirements file:
Expand Down
7 changes: 7 additions & 0 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ Django<5

# Common constraints for Open edX repos
-c https://raw.githubusercontent.com/openedx/edx-lint/master/edx_lint/files/common_constraints.txt

# backports.zoneinfo is only needed for Python < 3.9
backports.zoneinfo; python_version<'3.9'

# Adding pin to avoid any major upgrade.
# 3.15.1 is the latest version that works with Django 3.2
djangorestframework<3.15.2
2 changes: 1 addition & 1 deletion requirements/pip-tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ importlib-metadata==6.11.0
# via
# -c https://raw.githubusercontent.com/openedx/edx-lint/master/edx_lint/files/common_constraints.txt
# build
packaging==24.0
packaging==24.1
# via build
pip-tools==7.4.1
# via -r requirements/pip-tools.in
Expand Down
26 changes: 14 additions & 12 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ asgiref==3.8.1
# django
astroid==3.2.2
# via pylint
backports-zoneinfo==0.2.1
backports-zoneinfo==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
# django
# djangorestframework
Expand Down Expand Up @@ -73,7 +74,7 @@ django-model-utils==4.5.1
# via
# -r requirements/base.txt
# edx-organizations
django-mysql==4.13.0
django-mysql==4.14.0
# via -r requirements/base.txt
django-simple-history==3.0.0
# via
Expand All @@ -87,6 +88,7 @@ django-waffle==4.1.0
# edx-drf-extensions
djangorestframework==3.15.1
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
# drf-jwt
# edx-drf-extensions
Expand All @@ -107,7 +109,7 @@ edx-drf-extensions==10.3.0
# via
# -r requirements/base.txt
# edx-organizations
edx-opaque-keys[django]==2.9.0
edx-opaque-keys[django]==2.10.0
# via
# -r requirements/base.txt
# edx-drf-extensions
Expand All @@ -126,7 +128,7 @@ mccabe==0.7.0
# via pylint
mock==5.1.0
# via -r requirements/test.in
newrelic==9.10.0
newrelic==9.11.0
# via
# -r requirements/base.txt
# edx-django-utils
Expand All @@ -135,7 +137,7 @@ oauthlib==3.2.2
# -r requirements/base.txt
# requests-oauthlib
# social-auth-core
openedx-filters==1.8.1
openedx-filters==1.9.0
# via -r requirements/base.txt
path==16.14.0
# via path-py
Expand All @@ -151,11 +153,11 @@ pillow==10.3.0
# edx-organizations
platformdirs==4.2.2
# via pylint
psutil==5.9.8
psutil==6.0.0
# via
# -r requirements/base.txt
# edx-django-utils
pycodestyle==2.11.1
pycodestyle==2.12.0
# via -r requirements/test.in
pycparser==2.22
# via
Expand All @@ -167,9 +169,9 @@ pyjwt[crypto]==2.8.0
# drf-jwt
# edx-drf-extensions
# social-auth-core
pylint==3.2.2
pylint==3.2.3
# via -r requirements/test.in
pymongo==4.4.0
pymongo==4.7.3
# via
# -r requirements/base.txt
# edx-opaque-keys
Expand Down Expand Up @@ -210,20 +212,20 @@ stevedore==5.2.0
# -r requirements/base.txt
# edx-django-utils
# edx-opaque-keys
testfixtures==8.2.0
testfixtures==8.3.0
# via -r requirements/test.in
tomli==2.0.1
# via pylint
tomlkit==0.12.5
# via pylint
typing-extensions==4.12.1
typing-extensions==4.12.2
# via
# -r requirements/base.txt
# asgiref
# astroid
# edx-opaque-keys
# pylint
urllib3==2.2.1
urllib3==2.2.2
# via
# -r requirements/base.txt
# requests
Expand Down
6 changes: 3 additions & 3 deletions requirements/tox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ colorama==0.4.6
# via tox
distlib==0.3.8
# via virtualenv
filelock==3.14.0
filelock==3.15.3
# via
# tox
# virtualenv
packaging==24.0
packaging==24.1
# via
# pyproject-api
# tox
Expand All @@ -32,7 +32,7 @@ tomli==2.0.1
# via
# pyproject-api
# tox
tox==4.15.0
tox==4.15.1
# via -r requirements/tox.in
virtualenv==20.26.2
# via tox
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 11.6.0
current_version = 11.7.0
commit = False
tag = False

Expand Down
Loading

0 comments on commit 22bc907

Please sign in to comment.