Skip to content

Commit c9e1392

Browse files
committed
fix: Update package structure and imports
1 parent d1ca18b commit c9e1392

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

pyproject.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ dev = [
4848
package-dir = {"" = "src"}
4949
include-package-data = true
5050

51-
[tool.setuptools.packages]
52-
find = {}
51+
[tool.setuptools.packages.find]
52+
where = ["src"]
53+
include = ["cedarscript_editor*", "text_editor*"]
54+
namespaces = false
5355

5456
[tool.setuptools.package-data]
5557
"*" = ["*.txt", "*.rst"]

src/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from .cedar_editor_java import JavaCedarEditor
2-
from .cedar_editor_kotlin import KotlinCedarEditor
3-
from .cedar_editor_python import PythonCedarEditor
1+
from .cedarscript_editor.cedar_editor_java import JavaCedarEditor
2+
from .cedarscript_editor.cedar_editor_kotlin import KotlinCedarEditor
3+
from .cedarscript_editor.cedar_editor_python import PythonCedarEditor
44

55
__all__ = ("PythonCedarEditor", "KotlinCedarEditor", "JavaCedarEditor")

src/cedarscript_editor/__init__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
# This file is intentionally left empty to mark the directory as a Python package.
1+
from .cedar_editor_java import JavaCedarEditor
2+
from .cedar_editor_kotlin import KotlinCedarEditor
3+
from .cedar_editor_python import PythonCedarEditor
4+
5+
__all__ = ["JavaCedarEditor", "KotlinCedarEditor", "PythonCedarEditor"]

0 commit comments

Comments
 (0)