Skip to content

Commit c94e9b9

Browse files
committed
Fixes to packaging
1 parent 4e8c675 commit c94e9b9

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ version_scheme = "post-release"
5858

5959
[tool.setuptools.packages.find]
6060
where = ["src"]
61-
include = ["cedarscript_editor*", "text_manipulaiton*"]
61+
include = ["cedarscript_editor*", "text_manipulation*"]
6262
exclude = ["cedarscript_ast_parser.tests*"]
6363
namespaces = false
6464

src/cedarscript_editor/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22
import re
33
from .cedarscript_editor import CEDARScriptEditor
44
from cedarscript_ast_parser import CEDARScriptASTParser
5-
from text_manipulation import (
6-
IndentationInfo, IdentifierBoundaries, RangeSpec, read_file, write_file,
7-
bow_to_search_range
8-
)
95

106
__all__ = [
11-
"__version__", "find_commands", "CEDARScriptEditor", "IndentationInfo", "IdentifierBoundaries", "RangeSpec",
12-
"read_file", "write_file", "bow_to_search_range"
7+
"__version__", "find_commands", "CEDARScriptEditor"
138
]
149

1510

src/cedarscript_editor/cedarscript_editor.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
InsertClause, ReplaceClause, EditingAction, BodyOrWhole, RegionClause, MarkerType
88
from cedarscript_ast_parser.cedarscript_ast_parser import MarkerCompatible, RelativeMarker, \
99
RelativePositionType
10-
from text_manipulation import IndentationInfo
11-
from text_manipulation import IdentifierBoundaries, RangeSpec
12-
from text_manipulation import read_file, write_file, bow_to_search_range
10+
from text_manipulation import (
11+
IndentationInfo, IdentifierBoundaries, RangeSpec, read_file, write_file, bow_to_search_range
12+
)
1313

1414
from .identifier_selector import select_finder
1515

@@ -120,7 +120,8 @@ def _update_command(self, cmd: UpdateCommand):
120120
# UpdateCommand(
121121
# type='update',
122122
# target=SingleFileClause(file_path='tmp.benchmarks/2024-10-04-22-59-58--CEDARScript-Gemini-small/bowling/bowling.py'),
123-
# action=InsertClause(insert_position=RelativeMarker(type=<MarkerType.FUNCTION: 'function'>, value='__init__', offset=None)),
123+
# action=InsertClause(insert_position=RelativeMarker(type=<MarkerType.FUNCTION: 'function'>, value='__init__',
124+
# offset=None)),
124125
# content='\n @0:print("This line will be inserted at the top")\n '
125126
# )
126127

0 commit comments

Comments
 (0)