diff --git a/pyproject.toml b/pyproject.toml index e47a579..77bc520 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,20 +52,26 @@ docs = [ "sphinx-book-theme", ] -# XBlock entry points will be added here as xblocks are migrated -# Example: -# [project.entry-points."xblock.v1"] -# foo = "foo_xblock:FooXBlock" +[project.entry-points."xblock.v1"] +audio = "audio:AudioXBlock" # Packages live in src/ but are installed without the src prefix # e.g., src/foo_xblock/ is installed as foo_xblock [tool.setuptools] package-dir = {"" = "src"} +include-package-data = true [tool.setuptools.packages.find] where = ["src"] exclude = ["tests*"] +[tool.setuptools.package-data] +"*" = [ + "static/**/*", + "templates/**/*", + "translations/**/*", +] + # Ruff configuration # https://docs.astral.sh/ruff/configuration/ [tool.ruff] diff --git a/src/audio/README.md b/src/audio/README.md new file mode 100644 index 0000000..91b79cb --- /dev/null +++ b/src/audio/README.md @@ -0,0 +1,9 @@ +AudioXBlock +=========== + +This is a simple XBlock which will play audio files as an HTML5 audio +element. If unavailable, it will fall back to an embed element. + +Usage: + +