Skip to content

Commit

Permalink
feat: revert mandatory eox-audit-model dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-canon committed Aug 10, 2023
1 parent 1e86cfa commit ede72cb
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 39 deletions.
8 changes: 7 additions & 1 deletion eox_nelp/api_clients/certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
ExternalCertificatesApiClient: Class to interact with NELP external certificates service.
"""
from django.conf import settings
from eox_audit_model.decorators import audit_method

from eox_nelp.api_clients import AbstractBasicAuthApiClient

try:
from eox_audit_model.decorators import audit_method
except ImportError:
def audit_method(action): # pylint: disable=unused-argument
"""Identity audit_method"""
return lambda x: x


class ExternalCertificatesApiClient(AbstractBasicAuthApiClient):
"""Allow to perform multiple external certificates operations."""
Expand Down
1 change: 0 additions & 1 deletion requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ djangorestframework-jsonapi==5.0.0
edx-drf-extensions
edx-i18n-tools
edx-opaque-keys
eox-audit-model
eox-core
eox-tenant
eox-theming
Expand Down
27 changes: 9 additions & 18 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ bs4==0.0.1
# via -r requirements/base.in
celery==5.3.1
# via
# eox-audit-model
# eox-core
# event-tracking
certifi==2023.7.22
Expand All @@ -45,7 +44,7 @@ click-plugins==1.1.1
# via celery
click-repl==0.3.0
# via celery
cryptography==41.0.3
cryptography==41.0.2
# via
# jwcrypto
# pyjwt
Expand Down Expand Up @@ -75,7 +74,6 @@ django==3.2.20
# edx-i18n-tools
# edx-proctoring
# edx-when
# eox-audit-model
# eox-core
# eox-theming
# event-tracking
Expand All @@ -86,16 +84,13 @@ django-crum==0.7.9
# via
# edx-django-utils
# edx-proctoring
# eox-audit-model
django-filter==21.1
# via
# -c requirements/constraints.txt
# -r requirements/base.in
# eox-core
django-ipware==5.0.0
# via
# edx-proctoring
# eox-audit-model
# via edx-proctoring
django-model-utils==4.3.1
# via
# edx-proctoring
Expand Down Expand Up @@ -135,7 +130,7 @@ drf-yasg==1.21.7
# via edx-api-doc-tools
edx-api-doc-tools==1.7.0
# via eox-core
edx-django-utils==5.7.0
edx-django-utils==5.6.0
# via
# edx-drf-extensions
# edx-rest-api-client
Expand All @@ -147,7 +142,7 @@ edx-drf-extensions==8.0.0
# -r requirements/base.in
# edx-proctoring
# edx-when
edx-i18n-tools==1.1.0
edx-i18n-tools==1.0.0
# via -r requirements/base.in
edx-opaque-keys[django]==2.3.0
# via
Expand All @@ -157,14 +152,12 @@ edx-opaque-keys[django]==2.3.0
# edx-when
# eox-core
# openedx-events
edx-proctoring==4.16.1
edx-proctoring==4.16.0
# via eox-core
edx-rest-api-client==5.6.0
# via edx-proctoring
edx-when==2.4.0
# via edx-proctoring
eox-audit-model==2.0.0
# via -r requirements/base.in
eox-core==8.1.0
# via -r requirements/base.in
eox-tenant==9.2.1
Expand All @@ -173,7 +166,7 @@ eox-tenant==9.2.1
# eox-theming
eox-theming==5.0.0
# via -r requirements/base.in
event-tracking==2.2.0
event-tracking==2.1.0
# via edx-proctoring
fastavro==1.8.2
# via openedx-events
Expand All @@ -188,9 +181,7 @@ inflection==0.5.1
# djangorestframework-jsonapi
# drf-yasg
jsonfield==3.1.0
# via
# edx-proctoring
# eox-audit-model
# via edx-proctoring
jwcrypto==1.5.0
# via django-oauth-toolkit
kombu==5.3.1
Expand Down Expand Up @@ -324,13 +315,13 @@ vine==5.0.0
# kombu
wcwidth==0.2.6
# via prompt-toolkit
web-fragments==2.1.0
web-fragments==2.0.0
# via xblock
webob==1.8.7
# via xblock
wrapt==1.15.0
# via deprecated
xblock==1.7.0
xblock==1.6.2
# via edx-when

# The following packages are considered to be unsafe in a requirements file:
Expand Down
5 changes: 2 additions & 3 deletions requirements/pip-tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ click==8.1.6
# via pip-tools
packaging==23.1
# via build
pip-tools==7.3.0
pip-tools==7.1.0
# via -r requirements/pip-tools.in
pyproject-hooks==1.0.0
# via build
tomli==2.0.1
# via
# build
# pip-tools
# pyproject-hooks
wheel==0.41.1
wheel==0.41.0
# via pip-tools

# The following packages are considered to be unsafe in a requirements file:
Expand Down
21 changes: 7 additions & 14 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ bs4==0.0.1
celery==5.3.1
# via
# -r requirements/base.txt
# eox-audit-model
# eox-core
# event-tracking
certifi==2023.7.22
Expand Down Expand Up @@ -74,7 +73,7 @@ click-repl==0.3.0
# celery
coverage==7.2.7
# via -r requirements/test.in
cryptography==41.0.3
cryptography==41.0.2
# via
# -r requirements/base.txt
# jwcrypto
Expand Down Expand Up @@ -112,7 +111,6 @@ django==3.2.20
# edx-i18n-tools
# edx-proctoring
# edx-when
# eox-audit-model
# eox-core
# eox-theming
# event-tracking
Expand All @@ -124,7 +122,6 @@ django-crum==0.7.9
# -r requirements/base.txt
# edx-django-utils
# edx-proctoring
# eox-audit-model
django-fake-model==0.1.4
# via -r requirements/test.in
django-filter==21.1
Expand All @@ -136,7 +133,6 @@ django-ipware==5.0.0
# via
# -r requirements/base.txt
# edx-proctoring
# eox-audit-model
django-model-utils==4.3.1
# via
# -r requirements/base.txt
Expand Down Expand Up @@ -192,7 +188,7 @@ edx-api-doc-tools==1.7.0
# via
# -r requirements/base.txt
# eox-core
edx-django-utils==5.7.0
edx-django-utils==5.6.0
# via
# -r requirements/base.txt
# edx-drf-extensions
Expand All @@ -205,7 +201,7 @@ edx-drf-extensions==8.0.0
# -r requirements/base.txt
# edx-proctoring
# edx-when
edx-i18n-tools==1.1.0
edx-i18n-tools==1.0.0
# via -r requirements/base.txt
edx-opaque-keys[django]==2.3.0
# via
Expand All @@ -215,7 +211,7 @@ edx-opaque-keys[django]==2.3.0
# edx-when
# eox-core
# openedx-events
edx-proctoring==4.16.1
edx-proctoring==4.16.0
# via
# -r requirements/base.txt
# eox-core
Expand All @@ -227,8 +223,6 @@ edx-when==2.4.0
# via
# -r requirements/base.txt
# edx-proctoring
eox-audit-model==2.0.0
# via -r requirements/base.txt
eox-core==8.1.0
# via -r requirements/base.txt
eox-tenant==9.2.1
Expand All @@ -237,7 +231,7 @@ eox-tenant==9.2.1
# eox-theming
eox-theming==5.0.0
# via -r requirements/base.txt
event-tracking==2.2.0
event-tracking==2.1.0
# via
# -r requirements/base.txt
# edx-proctoring
Expand Down Expand Up @@ -270,7 +264,6 @@ jsonfield==3.1.0
# via
# -r requirements/base.txt
# edx-proctoring
# eox-audit-model
jwcrypto==1.5.0
# via
# -r requirements/base.txt
Expand Down Expand Up @@ -496,7 +489,7 @@ wcwidth==0.2.6
# via
# -r requirements/base.txt
# prompt-toolkit
web-fragments==2.1.0
web-fragments==2.0.0
# via
# -r requirements/base.txt
# xblock
Expand All @@ -509,7 +502,7 @@ wrapt==1.15.0
# -r requirements/base.txt
# astroid
# deprecated
xblock==1.7.0
xblock==1.6.2
# via
# -r requirements/base.txt
# edx-when
Expand Down
4 changes: 2 additions & 2 deletions requirements/tox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
cachetools==5.3.1
# via tox
chardet==5.2.0
chardet==5.1.0
# via tox
colorama==0.4.6
# via tox
Expand All @@ -32,7 +32,7 @@ tomli==2.0.1
# via
# pyproject-api
# tox
tox==4.7.0
tox==4.6.4
# via -r requirements/tox.in
virtualenv==20.24.2
# via tox

0 comments on commit ede72cb

Please sign in to comment.