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 <noreply@anthropic.com>
This commit is contained in:
@@ -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/*"]
|
||||
|
||||
16
setup.py
16
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",
|
||||
|
||||
Reference in New Issue
Block a user