From 642fa027109fff64871fb03f5506cdf69d4a9119 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Tue, 20 Jan 2026 11:13:07 -0500 Subject: [PATCH] feat: migrate package metadata to pyproject.toml Migrates package metadata from setup.py including version, dependencies, and package definitions. Changes package name from "Open edX" to "openedx-platform" to comply with PEP 508 (no spaces allowed). This is safe as the package is not published and dependents rely on entry points, not the package name. Simplifies setup.py to contain only entry_points, which will be migrated in subsequent commits. Co-Authored-By: Claude Opus 4.5 --- pyproject.toml | 12 ++++++++++++ setup.py | 16 ---------------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 638dd9c54f..e8e86e28c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,15 @@ [build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" + +[project] +name = "openedx-platform" +version = "0.13" +requires-python = ">=3.11" +dependencies = ["setuptools"] + +[tool.setuptools] +packages = ["cms", "common", "lms", "openedx", "xmodule"] + +[tool.setuptools.package-data] +xmodule = ["js/module/*"] diff --git a/setup.py b/setup.py index 8cc1acc666..0eb6d77e1d 100644 --- a/setup.py +++ b/setup.py @@ -45,22 +45,6 @@ XBLOCKS_ASIDES = [ setup( - name="Open edX", - version='0.13', - install_requires=["setuptools"], - requires=[], - # NOTE: These are not the names we should be installing. This tree should - # be reorganized to be a more conventional Python tree. - packages=[ - "cms", - "common", - "lms", - "openedx", - "xmodule", - ], - package_data={ - 'xmodule': ['js/module/*'], - }, entry_points={ "openedx.course_tab": [ "ccx = lms.djangoapps.ccx.plugins:CcxCourseTab",