forked from openedx/openedx-platform
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
868 lines (836 loc) · 46.9 KB
/
Copy pathpyproject.toml
File metadata and controls
868 lines (836 loc) · 46.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "openedx-platform"
version = "0.13"
requires-python = ">=3.12"
dependencies = [
"acid-xblock", # This XBlock is used for unit tests as well as manual tests
"analytics-python", # Used for Segment analytics
"attrs", # Reduces boilerplate code involving class attributes
"Babel", # Internationalization utilities, used for date formatting in a few places
"boto3", # Amazon Web Services SDK for Python
"botocore", # via boto3, s3transfer
"bridgekeeper", # Used for determining permissions for courseware. Use of django-rules is preferred.
"celery", # Asynchronous task execution library
"chem", # A helper library for chemistry calculations
"codejail-includes", # CodeJail manages execution of untrusted code in secure sandboxes.
"cryptography", # Implementations of assorted cryptography algorithms
"defusedxml",
"Django", # Web application framework
"django-autocomplete-light", # Enhances Django admin with single-select autocomplete dropdowns for a better user experience.
"django-celery-results", # Only used for the CacheBackend for celery results
"django-config-models", # Configuration models for Django allowing config management with auditing
"django-cors-headers", # Used to allow to configure CORS headers for cross-domain requests
"django-countries", # Country data for Django forms and model fields
"django-crum", # Middleware that stores the current request and user in thread local storage
"django-filter", # Allows users to filter Django querysets dynamically
"django-ipware", # Get the client's real IP address
"django-method-override", # Allow use of HTTP methods normally not supported by browsers via the X-HTTP-Method-Override header
"django-model-utils",
"django-mptt",
"django-mysql",
"django-oauth-toolkit", # Provides oAuth2 capabilities for Django
"django-pipeline",
"django-ratelimit",
"django-sekizai",
"django-simple-history",
"django-statici18n",
"django-storages",
"django-user-tasks",
"django-waffle",
"django-webpack-loader", # Used to wire webpack bundles into the django asset pipeline
"djangorestframework",
"drf-spectacular",
"edx-ace",
"edx-api-doc-tools",
"edx-auth-backends", # Allow Studio to use LMS SSO
"edx-bulk-grades", # LMS REST API for managing bulk grading operations
"edx-ccx-keys",
"edx-celeryutils",
"edx-completion",
"edx-django-release-util", # Release utils for the edx release pipeline
"edx-django-sites-extensions",
"edx-codejail>=4.0.0", # Codejail 4 brings important safety improvements (no unsafe mode by default)
"edx-django-utils>=5.14.1", # edx-django-utils 5.14.1 adds FrontendMonitoringMiddleware; Utilities for cache, monitoring, and plugins
"edx-drf-extensions",
"edx-enterprise",
"edx-event-bus-kafka>=5.6.0", # edx-event-bus-kafka 5.6.0 adds support for putting client ids on event producers/consumers; Kafka implementation of event bus
"edx-event-bus-redis",
"edx-milestones",
"edx-opaque-keys>=2.12.0",
"edx-organizations",
"edx-proctoring>=2.0.1",
"edx-rest-api-client",
"edx-search",
"edx-submissions",
"edx-toggles", # Feature toggles management
"edx-when",
"edxval",
"event-tracking",
"enmerkar-underscore", # Implements a underscore extractor for django-babel.
"fs",
"fs-s3fs",
"geoip2", # Python API for the GeoIP web services and databases
"glob2", # Enhanced glob module, used in openedx.core.lib.rooted_paths
"gunicorn",
"help-tokens",
"html5lib", # HTML parser, used for capa problems
"icalendar", # .ics generator, used by calendar_sync
"ipaddress", # Ip network support for Embargo feature
"importlib_metadata", # Used to access entry_points in i18n_api plugin
"jsonfield", # Django model field for validated JSON; used in several apps
"laboratory", # Library for testing that code refactors/infrastructure changes produce identical results
"lxml[html_clean]", # XML parser
"lti-consumer-xblock>=11.0.0",
"mako", # Primary template language used for server-side page rendering
"Markdown", # Convert text markup to HTML; used in capa problems, forums, and course wikis
"meilisearch", # Library to access Meilisearch search engine (will replace ElasticSearch)
"mongoengine", # Object-document mapper for MongoDB, used in the LMS dashboard
"mysqlclient", # Driver for the default production relational database
"nh3", # Python bindings to the ammonia (whitelist-based HTML sanitizing library); used for capa and LTI
"nodeenv", # Utility for managing Node.js environments; we use this for deployments and testing
"oauthlib", # OAuth specification support for authenticating via LTI or other Open edX services
"olxcleaner",
"openedx-atlas", # CLI tool to manage translations
"openedx-calc", # Library supporting mathematical calculations for Open edX
"openedx-core",
"openedx-django-require",
"openedx-events", # Open edX Events from Hooks Extension Framework (OEP-50)
"openedx-filters", # Open edX Filters from Hooks Extension Framework (OEP-50)
"openedx-forum", # Open edX forum v2 application
"openedx-django-wiki",
"path",
"piexif", # Exif image metadata manipulation, used in the profile_images app
"Pillow", # Image manipulation library; used for course assets, profile images, invoice PDFs, etc.
"psutil", # Library for retrieving information on running processes and system utilization
"pycountry",
"pycryptodomex",
"PyJWT>=1.6.3", # PyJWT 1.6.3 contains PyJWTError, which is required by Apple auth in social-auth-core
"pylti1p3", # Required by content_libraries core library to support LTI 1.3 launches
"pymemcache", # Python interface to the memcached memory cache daemon
"pymongo", # MongoDB driver
"pynliner", # Inlines CSS styles into HTML for email notifications
"python-dateutil",
"python3-openid ; python_version>='3'",
"python3-saml",
"pyuca", # For more accurate sorting of translated country names in django-countries
"pysrt", # Support for SubRip subtitle files, used in the video XModule
"pytz", # Time zone information database
"PyYAML", # Used to parse XModule resource templates
"redis", # celery task broker
"requests-oauthlib", # Simplifies use of OAuth via the requests library, used for CCX and LTI
"random2",
"rules", # Django extension for rules-based authorization checks
"social-auth-core",
"simplejson",
"Shapely", # Geometry library, used for image click regions in capa
"six", # Utilities for supporting Python 2 & 3 in the same codebase
"slumber", # The following dependency is unsupported and used by the DeprecatedRestApiClient
"social-auth-app-django",
"sorl-thumbnail",
"sortedcontainers", # Provides SortedKeyList, used for lists of XBlock assets
"stevedore", # Support for runtime plugins, used for XBlocks and edx-platform Django app plugins
"unicodecsv", # Easier support for CSV files with unicode text
"webob",
"web-fragments", # Provides the ability to render fragments of web pages
"wrapt", # Better functools.wrapped. TODO: functools has since improved, maybe we can switch?
"XBlock[django]", # Courseware component architecture
"xss-utils", # https://github.com/openedx/edx-platform/pull/20633 Fix XSS via Translations
"unicodeit", # Converts mathjax equation to plain text by using unicode symbols
"psycopg2-binary",
"openedx-authz", # Authorization Framework for the Open edX Ecosystem
]
[dependency-groups]
coverage = [
"coverage", # Code coverage testing for Python
"diff-cover", # Automatically find diff lines that need test coverage
]
bundled = [
# Dependencies that are normally bundled with the platform, but are not core to
# the platform's functionality. They are still installed by default (this group is
# included from `testing`, and explicitly synced in `base-requirements`), but they
# should not be required for the platform to run nor for the test suite to pass.
"edx-i18n-tools>=0.4.6", # i18n_tool is needed at build time for pulling translations; Commands for developers and translators to extract, compile and validate translations
"django-ses", # Django email backend for Amazon’s Simple Email Service
"mailsnake", # MailChimp API; used for two management commands in the "mailing" djangoapp
"optimizely-sdk", # Optimizely provides A/B testing and other features, used by edx.org
"crowdsourcehinter-xblock",
"done-xblock", # a very simple XBlock that allows learners to mark an activity as Done
"recommender-xblock", # https://github.com/edx/RecommenderXBlock
"staff-graded-xblock", # https://github.com/openedx/staff_graded-xblock Allows off-site bulk scoring.
"edx-sga", # The more well known "staff graded assignment" XBlock, from MIT.
"ora2>=4.5.0", # Open Response Assessment XBlock
"xblock-poll", # Xblock for polling users
"xblock-drag-and-drop-v2", # Drag and Drop XBlock
"xblock-google-drive", # XBlock for google docs and calendar
"xblocks-contrib", # Package having multiple core XBlocks, https://github.com/openedx/xblocks-contrib?tab=readme-ov-file#xblocks-being-moved-here
"enterprise-integrated-channels", # Integrated Channels to transmit content metadata and learner data.
]
testing = [
{include-group = "coverage"},
{include-group = "bundled"},
"beautifulsoup4", # Library for extracting data from HTML and XML files
"code-annotations", # Perform code annotation checking, such as for PII annotations
"cssselect", # Used to extract HTML fragments via CSS selectors in 2 test cases and pyquery
"ddt", # Run a test case multiple times with different input; used in many, many of our tests
"edx-lint", # pylint extensions for Open edX repositories
"factory-boy", # Library for creating test fixtures, used in many tests
"freezegun", # Pinning the freezegun version because 0.3.13 is causing failures which have also been reported on the git repo by public.; Allows tests to mock the output of assorted datetime module functions
"httpretty", # Library for mocking HTTP requests, used in many tests
"import-linter", # Tool for making assertions about which modules can import which others
"mock", # Deprecated alias to standard library `unittest.mock`
"ruff", # Fast Python linter and formatter
"polib", # Library for manipulating gettext translation files, used to test paver i18n commands
"pyquery", # jQuery-like API for retrieving fragments of HTML and XML files in tests
"pytest", # Testing framework
"pytest-attrib", # Select tests based on attributes
"pytest-cov", # pytest plugin for measuring code coverage
"pytest-django", # Django support for pytest
"pytest-json-report", # Output json formatted warnings after running pytest
"pytest-metadata", # To prevent 'make upgrade' failure, dependency of pytest-json-report
"pytest-randomly", # pytest plugin to randomly order tests
"pytest-reportlog", # Per-test timing data including setup/teardown (used for shard rebalancing)
"pytest-xdist[psutil]", # Parallel execution of tests on multiple CPU cores or hosts
"singledispatch", # Backport of functools.singledispatch from Python 3.4+, used in tests of XBlock rendering
"testfixtures", # Provides a LogCapture utility used by several tests
"unidiff", # Required by coverage_pytest_plugin
"pylint-pytest", # A Pylint plugin to suppress pytest-related false positives.
"pact-python", # Library for contract testing
"py", # Needed for pytest configurations, was previously been fetched through tox
]
docs = [
# matches requirements/edx/doc.in's old `-r base.txt` -- docs/conf.py imports
# cms.envs.common, whose add_optional_apps() needs the bundled XBlocks/apps
# importable to succeed (e.g. openassessment), not just doc-building tools.
{include-group = "bundled"},
"code-annotations", # provides annotations for certain documentation
"sphinx-book-theme", # Common theme for all Open edX projects
"gitpython", # fetch git repo information
"Sphinx", # Documentation builder
"sphinx-design", # provides various responsive web-components
"sphinxcontrib-openapi", # Be able to render openapi schema in a sphinx project
"sphinxext-rediraffe", # Quickly and easily redirect when we move pages around.
"sphinx-reredirects", # Redirect from a sphinx project out to other places on the web including other sphinx projects
"sphinx-autoapi",
]
assets = [
"click",
"libsass",
"nodeenv",
]
development = [
{include-group = "testing"},
{include-group = "docs"},
{include-group = "assets"},
"django-debug-toolbar", # A set of panels that display debug information about the current request/response
"django-stubs[compatible-mypy]", # Typing stubs for Django, so it works with mypy
"djangorestframework-stubs", # Typing stubs for DRF
"mypy", # static type checking
"pywatchman", # More efficient checking for runserver reload trigger events
"types-requests", # Typing stubs for requests
"vulture", # Detects possible dead/unused code, used in scripts/find-dead-code.sh
"watchdog", # Used by `npm run watch` to auto-recompile when assets are changed
]
# Alternate-Django-version test matrix groups. Each is a real, independently-resolved
# environment (not a runtime `uv pip install` patch on top of `testing`) — see
# [tool.uv].conflicts below, which is required for these to coexist in one uv.lock at
# all. Currently unexercised: the CI matrices that would select one of these
# (migrations-check.yml, unit-tests.yml) only ever run with django-version: "pinned",
# which resolves independently via `testing`'s own (unconstrained-except-<6.0) Django
# requirement. If re-enabling that matrix dimension, add the matching fork to
# [tool.uv].conflicts for whichever combination gets exercised together.
django42 = [
{include-group = "testing"},
"django>=4.2,<4.3",
]
django52 = [
{include-group = "testing"},
"django>=5.2,<5.3",
]
ci = [
"tox",
"tox-uv",
]
[tool.uv]
default-groups = [] # explicit, not omitted -- uv's own default-groups fallback is ["dev"]
conflicts = [
[
{ group = "django42" },
{ group = "django52" },
],
]
# DO NOT EDIT constraint-dependencies DIRECTLY.
# This list is managed by `edx_lint write_uv_constraints` and will be
# overwritten the next time `make upgrade` is run.
# - GLOBAL constraints: edit edx_lint/files/common_constraints.txt
# - REPO-SPECIFIC constraints: edit [tool.edx_lint].uv_constraints in this file
constraint-dependencies = [
"Django<6.0",
"elasticsearch==7.9.1",
"social-auth-app-django<=5.4.1",
"social-auth-core<5.0.0",
"pip<26.2.1",
"celery>=5.2.2,!=5.6.1,<6.0.0",
"django-oauth-toolkit==1.7.1",
"django-stubs<6",
"libsass==0.10.0",
"numpy<2.0.0",
"openedx-core<2",
"path<16.12.0",
"pymongo<4.4.1",
"lxml==5.3.2",
"xmlsec==1.3.14",
"django-debug-toolbar<6.0.0",
"sphinx-autoapi<3.6.1",
"setuptools<82",
"astroid==4.0.4",
"edx-enterprise==8.9.3",
]
[tool.edx_lint]
uv_constraints = [
# Date: 2025-10-07
# Stay on LTS version, remove once this is added to common constraint
"Django<6.0",
# Date: 2026-01-13
# We would normally pin celery to <6.0.0 to avoid auto-updating across a major
# version boundary without more thorough testing. The reason it's currently also
# pinned to !=5.6.1 is because of a celery bug related to the eta and countdown
# parameters. This bug caused operational issues in MIT's deployment.
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/35280
"celery>=5.2.2,!=5.6.1,<6.0.0",
# Date: 2020-02-10
# django-oauth-toolkit version >=2.0.0 has breaking changes. More details
# mentioned on this issue https://github.com/openedx/edx-platform/issues/32884
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/35277
"django-oauth-toolkit==1.7.1",
# Date: 2024-07-19
# Generally speaking, the major version of django-stubs must either match the major version
# of django, or exceed it by 1. So, we will need to perpetually constrain django-stubs and
# update it as we perform django upgrades. For more details, see:
# https://github.com/typeddjango/django-stubs?tab=readme-ov-file#version-compatibility
# including the note on "Partial Support".
# Issue: https://github.com/openedx/edx-platform/issues/35275
"django-stubs<6",
# Date: 2023-07-26
# Our legacy Sass code is incompatible with anything except this ancient libsass version.
# Here is a ticket to upgrade, but it's of debatable importance given that we are rapidly moving
# away from legacy LMS/CMS frontends:
# https://github.com/openedx/edx-platform/issues/31616
"libsass==0.10.0",
# Date: 2024-07-16
# We need to upgrade the version of elasticsearch to at least 7.15 before we can upgrade to Numpy 2.0.0
# Otherwise we see a failure while running the following command:
# export DJANGO_SETTINGS_MODULE=cms.envs.test; python manage.py cms check_reserved_keywords --override_file db_keyword_overrides.yml --report_path reports/reserved_keywords --report_file cms_reserved_keyword_report.csv
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/35126
"numpy<2.0.0",
# Date: 2023-09-18
# Library is still in active development. Major versions require review
# from openedx-maintainers. Minor and patch versions can roll out automatically.
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/35269
"openedx-core<2",
# Date: 2024-04-26
# path==16.12.0 breaks the unit test collections check
# needs to be investigated and fixed separately
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/35267
"path<16.12.0",
# Date: 2020-04-08
# Adding pin to avoid any major upgrade
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/35265
"pymongo<4.4.1",
# Date: 2024-08-06
# social-auth-app-django 5.4.2 introduces a new migration that will not play nicely with large installations. This will touch
# user tables, which are quite large, especially on instances like edx.org.
# We are pinning this until after all the smaller migrations get handled and then we can migrate this all at once.
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/37639
"social-auth-app-django<=5.4.1",
# Date 2026-07-02
# social-auth-core 5.x changes the OAuth pipeline's post-login redirect
# behavior, breaking common/djangoapps/third_party_auth's integration
# tests (AzureAD/Google/LinkedIn/Twitter full-pipeline specs). Keep on
# the 4.x line until that's investigated and fixed separately -- see the
# social-auth-app-django pin above for a related, already-deferred
# migration in this dependency family.
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/38841
"social-auth-core<5.0.0",
# Date 2025-01-08
# elasticsearch==7.13.x is downgrading urllib3 from 2.2.3 to 1.26.20
# https://github.com/elastic/elasticsearch-py/blob/v7.13.4/setup.py#L42
# We are pinning this until we can upgrade to a version of elasticsearch that uses a more recent version of urllib3.
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/35126
"elasticsearch==7.9.1",
# Date 2025-05-09
# lxml and xmlsec need to be constrained because the latest version builds against a newer
# version of libxml2 than what we're running with. This leads to a version mismatch error
# at runtime. You can re-produce it by running any test.
# If lxml is pinned in the future and you see this error, it may be that the system libxml2
# is now shipping the correct version and we can un-pin this.
# Issue: https://github.com/openedx/edx-platform/issues/36695
"lxml==5.3.2",
"xmlsec==1.3.14",
# Date 2025-08-12
# The newest version of the debug toolbar has a bug in it
# https://github.com/django-commons/django-debug-toolbar/issues/2172
# Pin this back to the previous version until that bug is fixed.
"django-debug-toolbar<6.0.0",
# Date 2026-01-13
# Sphinx-autoapi changed the version of astroid it needs
# but the newer version is not compatible with the current pylint version
# which wants a newer version of astroid. This can be removed once we're
# building requirements with Python 3.12
# https://github.com/openedx/edx-platform/issues/37880
"sphinx-autoapi<3.6.1",
# Date 2026-03-02
# setuptools 82.0.0 removed pkg_resources from its distribution, but fs (pyfilesystem2)
# still uses pkg_resources for namespace package declarations. This constraint can be
# removed once pyfilesystem2 drops its pkg_resources usage.
# https://github.com/PyFilesystem/pyfilesystem2/issues/577
# Issue for unpinning: https://github.com/openedx/openedx-platform/issues/38068
"setuptools<82",
# Date 2026-03-02
# The latest version of pylint pins back astroid to an older version.
# This holdback is not caught in the docs requirements file and since both the docs
# and testing file are required in the development.in file, we fail to compile
# development.txt because of conflicting dependencies.
#
# Holding astroid back until pylint releases a new version that works with the latest
# version of astroid.
# https://github.com/openedx/openedx-platform/issues/38066
"astroid==4.0.4",
# Date: 2019-08-16
# The team that owns this package will manually bump this package rather than
# having it pulled in automatically. This is to allow them to better control its
# deployment and to do it in a process that works better for them.
"edx-enterprise==8.9.3",
]
[tool.setuptools]
packages = ["cms", "common", "lms", "openedx", "xmodule"]
[tool.setuptools.package-data]
xmodule = ["js/module/*"]
[project.entry-points."xblock.v1"]
about = "xmodule.html_block:AboutBlock"
book = "xmodule.template_block:TranslateCustomTagBlock"
annotatable = "xmodule.annotatable_block:AnnotatableBlock"
chapter = "xmodule.seq_block:SectionBlock"
conditional = "xmodule.conditional_block:ConditionalBlock"
course = "xmodule.course_block:CourseBlock"
course_info = "xmodule.html_block:CourseInfoBlock"
customtag = "xmodule.template_block:CustomTagBlock"
custom_tag_template = "xmodule.template_block:CustomTagTemplateBlock"
discuss = "xmodule.template_block:TranslateCustomTagBlock"
discussion = "xmodule.discussion_block:DiscussionXBlock"
error = "xmodule.error_block:ErrorBlock"
hidden = "xmodule.hidden_block:HiddenBlock"
html = "xmodule.html_block:HtmlBlock"
itembank = "xmodule.item_bank_block:ItemBankBlock"
image = "xmodule.template_block:TranslateCustomTagBlock"
library = "xmodule.library_root_xblock:LibraryRoot"
library_content = "xmodule.library_content_block:LegacyLibraryContentBlock"
lti = "xmodule.lti_block:LTIBlock"
poll_question = "xmodule.poll_block:PollBlock"
problem = "xmodule.capa_block:ProblemBlock"
randomize = "xmodule.randomize_block:RandomizeBlock"
sequential = "xmodule.seq_block:SequenceBlock"
slides = "xmodule.template_block:TranslateCustomTagBlock"
split_test = "xmodule.split_test_block:SplitTestBlock"
static_tab = "xmodule.html_block:StaticTabBlock"
unit = "xmodule.unit_block:UnitBlock"
vertical = "xmodule.vertical_block:VerticalBlock"
video = "xmodule.video_block:VideoBlock"
videoalpha = "xmodule.video_block:VideoBlock"
videodev = "xmodule.template_block:TranslateCustomTagBlock"
word_cloud = "xmodule.word_cloud_block:WordCloudBlock"
wrapper = "xmodule.wrapper_block:WrapperBlock"
[project.entry-points."xblock_asides.v1"]
tagging_aside = "cms.lib.xblock.tagging:StructuredTagsAside"
[project.entry-points."openedx.course_tab"]
ccx = "lms.djangoapps.ccx.plugins:CcxCourseTab"
courseware = "lms.djangoapps.courseware.tabs:CoursewareTab"
dates = "lms.djangoapps.courseware.tabs:DatesTab"
discussion = "lms.djangoapps.discussion.plugins:DiscussionTab"
edxnotes = "lms.djangoapps.edxnotes.plugins:EdxNotesTab"
external_discussion = "lms.djangoapps.courseware.tabs:ExternalDiscussionCourseTab"
external_link = "lms.djangoapps.courseware.tabs:ExternalLinkCourseTab"
html_textbooks = "lms.djangoapps.courseware.tabs:HtmlTextbookTabs"
instructor = "lms.djangoapps.instructor.views.instructor_dashboard:InstructorDashboardTab"
lti_discussion = "openedx.features.lti_course_tab.tab:DiscussionLtiCourseTab"
lti_live = "openedx.core.djangoapps.course_live.tab:CourseLiveTab"
lti_tab = "openedx.features.lti_course_tab.tab:LtiCourseTab"
pdf_textbooks = "lms.djangoapps.courseware.tabs:PDFTextbookTabs"
progress = "lms.djangoapps.courseware.tabs:ProgressTab"
static_tab = "xmodule.tabs:StaticTab"
syllabus = "lms.djangoapps.courseware.tabs:SyllabusTab"
teams = "lms.djangoapps.teams.plugins:TeamsTab"
textbooks = "lms.djangoapps.courseware.tabs:TextbookTabs"
wiki = "lms.djangoapps.course_wiki.tab:WikiTab"
[project.entry-points."openedx.course_app"]
calculator = "lms.djangoapps.courseware.plugins:CalculatorCourseApp"
custom_pages = "lms.djangoapps.courseware.plugins:CustomPagesCourseApp"
dates = "lms.djangoapps.courseware.plugins:DatesCourseApp"
discussion = "openedx.core.djangoapps.discussions.plugins:DiscussionCourseApp"
edxnotes = "lms.djangoapps.edxnotes.plugins:EdxNotesCourseApp"
live = "openedx.core.djangoapps.course_live.plugins:LiveCourseApp"
ora_settings = "lms.djangoapps.courseware.plugins:ORASettingsApp"
proctoring = "lms.djangoapps.courseware.plugins:ProctoringCourseApp"
progress = "lms.djangoapps.courseware.plugins:ProgressCourseApp"
teams = "lms.djangoapps.teams.plugins:TeamsCourseApp"
textbooks = "lms.djangoapps.courseware.plugins:TextbooksCourseApp"
wiki = "lms.djangoapps.course_wiki.plugins.course_app:WikiCourseApp"
[project.entry-points."openedx.course_tool"]
calendar_sync_toggle = "openedx.features.calendar_sync.plugins:CalendarSyncToggleTool"
course_bookmarks = "openedx.features.course_bookmarks.plugins:CourseBookmarksTool"
course_updates = "openedx.features.course_experience.plugins:CourseUpdatesTool"
financial_assistance = "lms.djangoapps.courseware.course_tools:FinancialAssistanceTool"
[project.entry-points."lms.djangoapp"]
ace_common = "openedx.core.djangoapps.ace_common.apps:AceCommonConfig"
content_libraries = "openedx.core.djangoapps.content_libraries.apps:ContentLibrariesConfig"
course_apps = "openedx.core.djangoapps.course_apps.apps:CourseAppsConfig"
course_live = "openedx.core.djangoapps.course_live.apps:CourseLiveConfig"
courseware_api = "openedx.core.djangoapps.courseware_api.apps:CoursewareAPIConfig"
credentials = "openedx.core.djangoapps.credentials.apps:CredentialsConfig"
discussion = "lms.djangoapps.discussion.apps:DiscussionConfig"
discussions = "openedx.core.djangoapps.discussions.apps:DiscussionsConfig"
grades = "lms.djangoapps.grades.apps:GradesConfig"
plugins = "openedx.core.djangoapps.plugins.apps:PluginsConfig"
theming = "openedx.core.djangoapps.theming.apps:ThemingConfig"
bookmarks = "openedx.core.djangoapps.bookmarks.apps:BookmarksConfig"
zendesk_proxy = "openedx.core.djangoapps.zendesk_proxy.apps:ZendeskProxyConfig"
instructor = "lms.djangoapps.instructor.apps:InstructorConfig"
password_policy = "openedx.core.djangoapps.password_policy.apps:PasswordPolicyConfig"
user_authn = "openedx.core.djangoapps.user_authn.apps:UserAuthnConfig"
program_enrollments = "lms.djangoapps.program_enrollments.apps:ProgramEnrollmentsConfig"
[project.entry-points."cms.djangoapp"]
ace_common = "openedx.core.djangoapps.ace_common.apps:AceCommonConfig"
bookmarks = "openedx.core.djangoapps.bookmarks.apps:BookmarksConfig"
course_live = "openedx.core.djangoapps.course_live.apps:CourseLiveConfig"
content_libraries = "openedx.core.djangoapps.content_libraries.apps:ContentLibrariesConfig"
content_staging = "openedx.core.djangoapps.content_staging.apps:ContentStagingAppConfig"
course_apps = "openedx.core.djangoapps.course_apps.apps:CourseAppsConfig"
# Importing an LMS app into the Studio process is not a good practice.
# We're ignoring this for Discussions here because its placement in LMS
# is a historical artifact. The eventual goal is to consolidate the multiple
# discussions-related Django apps and either put them in the openedx/ dir,
# or in another repo entirely.
discussion = "lms.djangoapps.discussion.apps:DiscussionConfig"
discussions = "openedx.core.djangoapps.discussions.apps:DiscussionsConfig"
instructor = "lms.djangoapps.instructor.apps:InstructorConfig"
olx_rest_api = "openedx.core.djangoapps.olx_rest_api.apps:OlxRestApiAppConfig"
password_policy = "openedx.core.djangoapps.password_policy.apps:PasswordPolicyConfig"
plugins = "openedx.core.djangoapps.plugins.apps:PluginsConfig"
theming = "openedx.core.djangoapps.theming.apps:ThemingConfig"
user_authn = "openedx.core.djangoapps.user_authn.apps:UserAuthnConfig"
zendesk_proxy = "openedx.core.djangoapps.zendesk_proxy.apps:ZendeskProxyConfig"
[project.entry-points."openedx.block_structure_transformer"]
library_content = "lms.djangoapps.course_blocks.transformers.library_content:ContentLibraryTransformer"
library_content_randomize = "lms.djangoapps.course_blocks.transformers.library_content:ContentLibraryOrderTransformer"
split_test = "lms.djangoapps.course_blocks.transformers.split_test:SplitTestTransformer"
start_date = "lms.djangoapps.course_blocks.transformers.start_date:StartDateTransformer"
user_partitions = "lms.djangoapps.course_blocks.transformers.user_partitions:UserPartitionTransformer"
visibility = "lms.djangoapps.course_blocks.transformers.visibility:VisibilityTransformer"
hidden_content = "lms.djangoapps.course_blocks.transformers.hidden_content:HiddenContentTransformer"
course_blocks_api = "lms.djangoapps.course_api.blocks.transformers.blocks_api:BlocksAPITransformer"
milestones = "lms.djangoapps.course_api.blocks.transformers.milestones:MilestonesAndSpecialExamsTransformer"
grades = "lms.djangoapps.grades.transformer:GradesTransformer"
completion = "lms.djangoapps.course_api.blocks.transformers.block_completion:BlockCompletionTransformer"
load_override_data = "lms.djangoapps.course_blocks.transformers.load_override_data:OverrideDataTransformer"
content_type_gate = "openedx.features.content_type_gating.block_transformers:ContentTypeGateTransformer"
access_denied_message_filter = "lms.djangoapps.course_blocks.transformers.access_denied_filter:AccessDeniedMessageFilterTransformer"
open_assessment_transformer = "lms.djangoapps.courseware.transformers:OpenAssessmentDateTransformer"
effort_estimation = "openedx.features.effort_estimation.api:EffortEstimationTransformer"
discussions_link = "openedx.core.djangoapps.discussions.transformers:DiscussionsTopicLinkTransformer"
[project.entry-points."openedx.user_partition_scheme"]
cohort = "openedx.core.djangoapps.course_groups.partition_scheme:CohortPartitionScheme"
content_type_gate = "openedx.features.content_type_gating.partitions:ContentTypeGatingPartitionScheme"
enrollment_track = "openedx.core.djangoapps.verified_track_content.partition_scheme:EnrollmentTrackPartitionScheme"
random = "openedx.core.djangoapps.user_api.partition_schemes:RandomUserPartitionScheme"
team = "lms.djangoapps.teams.team_partition_scheme:TeamPartitionScheme"
verification = "openedx.core.djangoapps.user_api.partition_schemes:ReturnGroup1PartitionScheme"
[project.entry-points."openedx.ace.policy"]
bulk_email_optout = "lms.djangoapps.bulk_email.policies:CourseEmailOptout"
course_push_notification_optout = "openedx.core.djangoapps.notifications.policies:CoursePushNotificationOptout"
disabled_user_optout = "openedx.core.djangoapps.ace_common.policies:DisableUserOptout"
[project.entry-points."openedx.call_to_action"]
personalized_learner_schedules = "openedx.features.personalized_learner_schedules.call_to_action:PersonalizedLearnerScheduleCallToAction"
[project.entry-points."openedx.learning_context"]
lib = "openedx.core.djangoapps.content_libraries.library_context:LibraryContextImpl"
[project.entry-points."openedx.dynamic_partition_generator"]
content_type_gating = "openedx.features.content_type_gating.partitions:create_content_gating_partition"
enrollment_track = "xmodule.partitions.enrollment_track_partition_generator:create_enrollment_track_partition"
team = "openedx.core.lib.teams_config:create_team_set_partition"
[tool.pytest.ini_options]
# Note: The first file of settings found is used, there is no combining, so
# this file is only used for tests that don't find a pytest.ini file first.
# Details at https://docs.pytest.org/en/latest/reference/customize.html
DJANGO_SETTINGS_MODULE = "lms.envs.test"
addopts = "--nomigrations --reuse-db --durations=20 --json-report --json-report-omit keywords streams collectors log traceback tests --json-report-file=none"
# Enable default handling for all warnings, including those that are ignored by default;
# but hide rate-limit warnings (because we deliberately don't throttle test user logins)
# and field_data deprecation warnings (because fixing them requires a major low-priority refactoring)
filterwarnings = [
"default",
"ignore:No request passed to the backend, unable to rate-limit:UserWarning",
"ignore::xblock.exceptions.FieldDataDeprecationWarning",
# Remove default_app_config warning after updating Django to 4.2
"ignore:.*You can remove default_app_config.*:PendingDeprecationWarning",
"ignore:Instead access HTTPResponse.headers directly.*:DeprecationWarning:elasticsearch",
# ABC deprecation Warning comes from libsass
"ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated.*:DeprecationWarning:sass",
"ignore:'etree' is deprecated. Use 'xml.etree.ElementTree' instead.:DeprecationWarning:wiki",
# We sometimes use DeprecationWarning to enourage `.id` instead of `.pk` since there are some cases where we cannot
# override the type of `.pk`, but we can always customize `.id` (e.g. using TypedBigAutoField). But we don't want to
# see those warnings when Django is using `.pk` internally, which is fine.
"ignore:Use \\.id instead:DeprecationWarning:django\\..*",
]
junit_family = "xunit2"
norecursedirs = ". .* *.egg build conf dist node_modules test_root cms/envs lms/envs openedx/envs"
python_classes = []
python_files = ["tests.py", "test_*.py", "tests_*.py", "*_tests.py", "__init__.py"]
[tool.coverage.run]
branch = true
data_file = "reports/.coverage"
source = [
"cms",
"common/djangoapps",
"lms",
"openedx",
"pavelib",
"scripts",
"xmodule",
]
omit = [
"cms/envs/*",
"cms/manage.py",
"cms/djangoapps/contentstore/views/dev.py",
"cms/djangoapps/*/migrations/*",
"cms/djangoapps/*/features/*",
"cms/lib/*/migrations/*",
"lms/debug/*",
"lms/envs/*",
"lms/djangoapps/*/migrations/*",
"lms/djangoapps/*/features/*",
"common/djangoapps/*/migrations/*",
"openedx/core/djangoapps/*/migrations/*",
"openedx/core/djangoapps/debug/*",
"openedx/envs/*",
"openedx/features/*/migrations/*",
]
concurrency = ["multiprocessing"]
parallel = true
relative_files = true
[tool.coverage.report]
ignore_errors = true
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
]
[tool.coverage.html]
title = "edx-platform Python Test Coverage Report"
directory = "reports/cover"
[tool.coverage.xml]
output = "reports/coverage.xml"
[tool.coverage.paths]
jenkins_source = [
"/home/jenkins/workspace/$JOB_NAME",
"/home/jenkins/workspace/$SUBSET_JOB",
"/home/jenkins/edx-platform",
]
[tool.ruff]
line-length = 120
exclude = [
"migrations",
"test_root/staticfiles",
]
[tool.ruff.lint]
select = ["E", "W", "I", "F", "PT", "DJ", "UP", "B"]
ignore = [
"E402", # module level import not at top of file
"E501", # line too long (pylint enforces this at 120 chars while ignoring trailing comments)
"E722", # do not use bare 'except'
"E731", # do not assign a lambda expression
"E741", # ambiguous variable name. TODO: fix the ~9 issues and re-enable this.
# The rules below were added in pycodestyle 2.9.x but we were pinned to 2.8.x,
# so they represent new findings. Keeping them ignored here to make this an
# equivalent swap; they can be cleaned up in a follow-up.
"E721", # use `isinstance()` for type comparisons
]
[tool.importlinter]
root_packages = ["lms", "cms", "openedx", "openedx_content", "openedx_catalog"]
include_external_packages = true
# Our custom contract which checks that we're only importing from 'api.py'
# for participating packages.
contract_types = [
"isolated_apps: openedx.testing.importlinter.isolated_apps_contract.IsolatedAppsContract",
]
[[tool.importlinter.contracts]]
name = "lms and cms are independent"
type = "independence"
modules = ["lms", "cms"]
ignore_imports = [
# lms side imports that we are ignoring for now
"lms.djangoapps.course_home_api.outline.tests.test_view -> cms.djangoapps.contentstore.outlines",
"lms.djangoapps.course_home_api.tests.utils -> cms.djangoapps.contentstore.outlines",
# lms.djangoapps.instructor.tests.test_api & lms.djangoapps.instructor.tests.test_tools
# -> openedx.core.djangoapps.course_date_signals.handlers
# -> cms.djangoapps.contentstore.config.waffle
"openedx.core.djangoapps.course_date_signals.handlers -> cms.djangoapps.contentstore.config.waffle",
# cms side imports that we are ignoring for now
"cms.djangoapps.contentstore.views.tests.test_block -> lms.djangoapps.lms_xblock.mixin",
"cms.djangoapps.contentstore.signals.handlers -> lms.djangoapps.grades.api",
"cms.djangoapps.contentstore.course_group_config -> lms.lib.utils",
"cms.djangoapps.contentstore.views.preview -> lms.djangoapps.lms_xblock.field_data",
# cms.envs.common
# -> openedx.envs.common
# -> lms.djangoapps.lms_xblock.mixin
"openedx.envs.common -> lms.djangoapps.lms_xblock.mixin",
# cms.djangoapps.contentstore.views.tests.test_group_configurations
# -> openedx.features.content_type_gating.helpers
# -> lms.djangoapps.courseware.masquerade
"openedx.features.content_type_gating.helpers -> lms.djangoapps.courseware.masquerade",
# cms.djangoapps.contentstore.utils
# -> openedx.core.djangoapps.django_comment_common.models
# -> openedx.core.djangoapps.course_groups.cohorts
# -> lms.djangoapps.courseware.courses
"openedx.core.djangoapps.course_groups.cohorts -> lms.djangoapps.courseware.courses",
# cms.djangoapps.contentstore.[various]
# -> openedx.features.content_type_gating.partitions
# -> lms.djangoapps.commerce.utils
"openedx.features.content_type_gating.partitions -> lms.djangoapps.commerce.utils",
# cms.djangoapps.contentstore.course_group_config
# -> openedx.core.djangoapps.course_groups.partition_scheme
# -> lms.djangoapps.courseware.masquerade
"openedx.core.djangoapps.course_groups.partition_scheme -> lms.djangoapps.courseware.masquerade",
# cms.djangoapps.export_course_metadata.tasks
# -> openedx.core.djangoapps.schedules.content_highlights
# -> lms.djangoapps.courseware.block_render & lms.djangoapps.courseware.model_data
"openedx.core.djangoapps.xblock.*.* -> lms.djangoapps.*.*",
# cms.djangoapps.contentstore.tasks -> openedx.core.djangoapps.content_libraries.[various] -> openedx.core.djangoapps.xblock.[various]
# -> lms.djangoapps.courseware & lms.djangoapps.courseware.grades
"openedx.core.djangoapps.schedules.content_highlights -> lms.djangoapps.courseware.*",
# cms.djangoapps.contentstore.[various]
# -> openedx.core.lib.gating.api
# -> lms.djangoapps.course_blocks.api & lms.djangoapps.courseware.access & lms.djangoapps.grades.api
"openedx.core.lib.gating.api -> lms.djangoapps.*.*",
# cms.djangoapps.contentstore.[various]
# -> openedx.features.content_type_gating.partitions
# -> openedx.features.discounts.utils
# -> lms.djangoapps.courseware.utils & lms.djangoapps.experiments.models
"openedx.features.discounts.utils -> lms.djangoapps.courseware.utils",
"openedx.features.discounts.utils -> lms.djangoapps.experiments.models",
# cms.djangoapps.contentstore.signals.handlers
# -> openedx.core.djangoapps.discussions.tasks
# -> openedx.core.djangoapps.discussions.utils
# -> lms.djangoapps.courseware.access
"openedx.core.djangoapps.discussions.utils -> lms.djangoapps.courseware.access",
# cms.djangoapps.contentstore.[various]
# -> openedx.features.content_type_gating.partitions
# -> openedx.features.discounts.utils
# -> openedx.features.discounts.applicability
# -> lms.djangoapps.courseware.toggles
# & lms.djangoapps.courseware.utils
# & lms.djangoapps.experiments.models
# & lms.djangoapps.experiments.stable_bucketing
"openedx.features.discounts.applicability -> lms.djangoapps.courseware.*",
"openedx.features.discounts.applicability -> lms.djangoapps.experiments.*",
# cms.djangoapps.contentstore.[various]
# -> openedx.core.djangoapps.content.learning_sequences.api
# -> openedx.core.djangoapps.content.learning_sequences.api.outlines
# -> openedx.core.djangoapps.content.learning_sequences.api.permissions
# -> lms.djangoapps.courseware.access
"openedx.core.djangoapps.content.learning_sequences.api.permissions -> lms.djangoapps.courseware.access",
# cms.djangoapps.contentstore.[various]
# -> openedx.features.content_type_gating.partitions
# -> openedx.features.discounts.utils
# -> openedx.features.discounts.applicability
# -> openedx.features.enterprise_support.utils
"openedx.features.enterprise_support.utils -> lms.djangoapps.branding.api",
"cms.djangoapps.contentstore.rest_api.v1.views.settings -> lms.djangoapps.certificates.api",
# We are ignoring this existing import until we can refactor contenstore/helpers.
# https://github.com/openedx/edx-platform/issues/37637
"openedx.core.djangoapps.content_libraries.api.libraries -> cms.djangoapps.contentstore.helpers",
"openedx.core.djangoapps.content_libraries.api.blocks -> cms.djangoapps.contentstore.helpers",
"openedx.core.djangoapps.content_staging.serializers -> cms.djangoapps.contentstore.helpers",
# These imports will become OK once we move content_libraries into CMS
# https://github.com/openedx/edx-platform/issues/33428
"openedx.core.djangoapps.content_libraries.permissions -> cms.djangoapps.course_creators.views",
"openedx.core.djangoapps.content_libraries.tasks -> cms.djangoapps.contentstore.storage",
# Outstanding arch issue: course_overviews is tangled up with LMS
# https://github.com/openedx/edx-platform/issues/37658
"openedx.core.djangoapps.content.course_overviews.models -> lms.djangoapps.**",
# Outstanding arch issue: content_highlights uses courseware block_render
# https://github.com/openedx/edx-platform/issues/37659
"openedx.core.djangoapps.schedules.content_highlights -> lms.djangoapps.courseware.block_render",
]
[[tool.importlinter.contracts]]
name = "Do not depend on non-public API of isolated apps."
type = "isolated_apps"
isolated_apps = [
"cms.djangoapps.modulestore_migrator",
"openedx.core.djangoapps.agreements",
"openedx.core.djangoapps.bookmarks",
"openedx.core.djangoapps.content_libraries",
"openedx.core.djangoapps.content_staging",
"openedx.core.djangoapps.olx_rest_api",
"openedx.core.djangoapps.xblock",
"openedx.core.lib.xblock_serializer",
"openedx_catalog",
]
allowed_modules = [
# Only imports from api.py and data.py are allowed elsewhere in the code
# See https://open-edx-proposals.readthedocs.io/en/latest/best-practices/oep-0049-django-app-patterns.html#api-py
"api",
"models_api",
"data",
"tests",
]
[[tool.importlinter.contracts]]
name = "Do not directly import internals of openedx_content (only import from openedx_content.api)."
type = "forbidden"
source_modules = ["cms", "lms", "openedx", "common", "xmodule"]
forbidden_modules = ["openedx_content.applets", "openedx_content.backcompat"]
allow_indirect_imports = true
[[tool.importlinter.contracts]]
name = "Low-level apps should not depend on high-level apps"
type = "layers"
layers = [
# Layers from high-level to low-level. Imports should only occur from higher to lower.
"cms.lib.xblock.upstream_sync | openedx.core.djangoapps.content.search | openedx.core.djangoapps.olx_rest_api",
"openedx.core.djangoapps.content_libraries",
"openedx.core.djangoapps.content_staging",
"openedx.core.djangoapps.xblock",
"openedx.core.lib.xblock_serializer",
"openedx.core.djangoapps.content_tagging",
]
ignore_imports = [
# Test code can break these layering rules
"**.tests.** -> **",
# FIXME: the exceptions below are from before we added this import linting rule. Should refactor to eliminate them.
# In particular, the contentstore.helpers module is too big and has too many imports
# See https://github.com/openedx/edx-platform/issues/37637
# The CSV export hard-codes support for courses and libraries. Refactor to do something like learning_context.get_children()
"openedx.core.djangoapps.content_tagging.helpers.objecttag_export_helpers -> openedx.core.djangoapps.content_libraries.api",
# The permissions checking code for tagging requires libraries model data to get all the orgs that a user is using:
"openedx.core.djangoapps.content_tagging.utils -> openedx.core.djangoapps.content_libraries.api",
# Content staging POST to clipboard API uses libraries APIs. We're working on moving this code to content_libraries
"openedx.core.djangoapps.content_staging.views -> openedx.core.djangoapps.content_libraries.api",
# content_staging.serializers imports contentstore.helpers which imports contentstore.utils which imports the libraries API.
"openedx.core.djangoapps.content_staging.serializers -> cms.djangoapps.contentstore.helpers",
# content_libraries.rest_api.libraries imports cms.djangoapps.contentstore.views.course which imports
# contentstore.toggles which imports djangoapps.content.search.api
"openedx.core.djangoapps.content_libraries.rest_api.libraries -> cms.djangoapps.contentstore.views.course",
# Content libraries imports contentstore.helpers which imports upstream_sync
"openedx.core.djangoapps.content_libraries.api.blocks -> cms.djangoapps.contentstore.helpers",
"openedx.core.djangoapps.content_libraries.api.libraries -> cms.djangoapps.contentstore.helpers",
# Outstanding arch issue: course_overviews is tangled up with LMS
# https://github.com/openedx/edx-platform/issues/37658
"openedx.core.djangoapps.content.course_overviews.models -> lms.djangoapps.**",
# Outstanding arch issue: content_highlights uses courseware block_render
# https://github.com/openedx/edx-platform/issues/37659
"openedx.core.djangoapps.schedules.content_highlights -> lms.djangoapps.courseware.block_render",
# This import happens only because grading signals are defined in LMS rather than openedx-events
# https://github.com/openedx/edx-platform/issues/37660
"openedx.core.djangoapps.xblock.runtime.runtime -> lms.djangoapps.grades.api",
# These imports will become OK once we worked on the following issue:
# https://github.com/openedx/edx-platform/issues/33428
"openedx.core.djangoapps.video_config.services -> openedx.core.djangoapps.content_libraries.api",
]