Skip to content

Commit b1abfc5

Browse files
feanilclaude
andcommitted
docs: update references from setup.py to pyproject.toml
Update documentation, comments, and docstrings throughout the codebase to reflect the migration from setup.py to pyproject.toml: - Transformer class docstrings: changed to reference "entry point name in the package configuration" for better future-proofing - Block structure module docs: updated to reference pyproject.toml - Test file comments: updated entry point references - Config files (tox.ini, pytest.ini): updated references - Documentation (extension_points.rst, course apps ADRs): updated to reference pyproject.toml with inclusive language for external packages - Requirements documentation (github.in): updated with inclusive language - edxmako README: modernized install command to use pip install Historical ADRs and references to external packages that may still use setup.py were intentionally left unchanged or updated with inclusive language acknowledging both pyproject.toml and setup.py. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 87302cd commit b1abfc5

29 files changed

Lines changed: 60 additions & 55 deletions

File tree

cms/pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[pytest]
22
# Note: The first file of settings found is used, there is no combining, so
3-
# this file is used for the tests in the cms tree, and setup.cfg is ignored.
3+
# this file is used for the tests in the cms tree, and pyproject.toml is ignored.
44
# Details at https://docs.pytest.org/en/latest/reference/customize.html
55

66
DJANGO_SETTINGS_MODULE = cms.envs.test

common/djangoapps/edxmako/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Mako: http://www.makotemplates.org/
1919
How to install?
2020
================================================================================
2121

22-
$ sudo python setup.py install
22+
$ pip install .
2323

common/test/pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[pytest]
22
# Note: The first file of settings found is used, there is no combining, so
3-
# this file is used for the tests in the common/test tree, and setup.cfg is ignored.
3+
# this file is used for the tests in the common/test tree, and pyproject.toml is ignored.
44
# Details at https://docs.pytest.org/en/latest/reference/customize.html
55

66
addopts = -p no:randomly --durations=20 --json-report --json-report-omit keywords streams collectors log traceback tests --json-report-file=none

docs/concepts/extension_points.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ If you wish to customize aspects of the learner or educator experiences, you'll
8787

8888
Most python plugins are enabled using one of two methods:
8989

90-
1. A Python Entry point: the core Open edX platform provides a standard plugin loading mechanism in |edx_django_utils.plugins|_ which uses `stevedore`_ to find all installed python packages that declare a specific "entry point" in their setup.py file. See the ``entry_points`` defined in edx-platform's own ``setup.py`` for examples.
90+
1. A Python Entry point: the core Open edX platform provides a standard plugin loading mechanism in |edx_django_utils.plugins|_ which uses `stevedore`_ to find all installed python packages that declare a specific "entry point" in their package configuration (typically ``pyproject.toml`` or ``setup.py``). See the ``entry_points`` defined in edx-platform's own ``pyproject.toml`` for examples.
9191
2. A Django setting: Some plugins require modification of Django settings, which is typically done by editing ``/edx/etc/lms.yml`` (in Production) or ``edx-platform/lms/envs/private.py`` (on Devstack).
9292

9393
.. |edx_django_utils.plugins| replace:: ``edx_django_utils.plugins``

lms/djangoapps/course_blocks/transformers/access_denied_filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class AccessDeniedMessageFilterTransformer(BlockStructureTransformer):
1818
@classmethod
1919
def name(cls):
2020
"""
21-
Unique identifier for the transformer's class;
22-
same identifier used in setup.py.
21+
Unique identifier for the transformer's class.
22+
This must match the entry point name in the package configuration.
2323
"""
2424
return "access_denied_message_filter"
2525

lms/djangoapps/course_blocks/transformers/hidden_content.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class HiddenContentTransformer(BlockStructureTransformer):
3939
@classmethod
4040
def name(cls):
4141
"""
42-
Unique identifier for the transformer's class;
43-
same identifier used in setup.py.
42+
Unique identifier for the transformer's class.
43+
This must match the entry point name in the package configuration.
4444
"""
4545
return "hidden_content"
4646

lms/djangoapps/course_blocks/transformers/library_content.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class ContentLibraryTransformer(FilteringTransformerMixin, BlockStructureTransfo
3636
@classmethod
3737
def name(cls):
3838
"""
39-
Unique identifier for the transformer's class;
40-
same identifier used in setup.py.
39+
Unique identifier for the transformer's class.
40+
This must match the entry point name in the package configuration.
4141
"""
4242
return "library_content"
4343

@@ -197,8 +197,8 @@ class ContentLibraryOrderTransformer(BlockStructureTransformer):
197197
@classmethod
198198
def name(cls):
199199
"""
200-
Unique identifier for the transformer's class;
201-
same identifier used in setup.py
200+
Unique identifier for the transformer's class.
201+
This must match the entry point name in the package configuration.
202202
"""
203203
return "library_content_randomize"
204204

lms/djangoapps/course_blocks/transformers/load_override_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def __init__(self, user):
6767
@classmethod
6868
def name(cls):
6969
"""
70-
Unique identifier for the transformer's class;
71-
same identifier used in setup.py.
70+
Unique identifier for the transformer's class.
71+
This must match the entry point name in the package configuration.
7272
"""
7373
return "load_override_data"
7474

lms/djangoapps/course_blocks/transformers/split_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class SplitTestTransformer(FilteringTransformerMixin, BlockStructureTransformer)
3030
@classmethod
3131
def name(cls):
3232
"""
33-
Unique identifier for the transformer's class;
34-
same identifier used in setup.py.
33+
Unique identifier for the transformer's class.
34+
This must match the entry point name in the package configuration.
3535
"""
3636
return "split_test"
3737

lms/djangoapps/course_blocks/transformers/start_date.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class StartDateTransformer(FilteringTransformerMixin, BlockStructureTransformer)
3939
@classmethod
4040
def name(cls):
4141
"""
42-
Unique identifier for the transformer's class;
43-
same identifier used in setup.py.
42+
Unique identifier for the transformer's class.
43+
This must match the entry point name in the package configuration.
4444
"""
4545
return "start_date"
4646

0 commit comments

Comments
 (0)