Skip to content

Commit 1c1cba2

Browse files
committed
. e use textwrap.dedent
the release script doesn't have approval_utilities installed
1 parent d3b960b commit 1c1cba2

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

setup/set_version.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import argparse
2+
import textwrap
23
from pathlib import Path
34

45
from packaging.version import Version
56

6-
from approval_utilities.utilities.multiline_string_utils import remove_indentation_from
7-
87
_VERSION_FILES = map(
98
Path,
109
[
@@ -23,9 +22,9 @@ def main() -> None:
2322
print(f"Setting version to {version_number}")
2423
for version_file in _VERSION_FILES:
2524
version_file.write_text(
26-
remove_indentation_from(f"""
27-
# Do not edit manually - use setup/set_version.py to change the version
28-
version_number = "{version_number}"
25+
textwrap.dedent(f"""\
26+
# Do not edit manually use setup/set_version.py to change the version
27+
version_number = "{version_number}"
2928
""")
3029
)
3130

0 commit comments

Comments
 (0)