We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3b960b commit 1c1cba2Copy full SHA for 1c1cba2
1 file changed
setup/set_version.py
@@ -1,10 +1,9 @@
1
import argparse
2
+import textwrap
3
from pathlib import Path
4
5
from packaging.version import Version
6
-from approval_utilities.utilities.multiline_string_utils import remove_indentation_from
7
-
8
_VERSION_FILES = map(
9
Path,
10
[
@@ -23,9 +22,9 @@ def main() -> None:
23
22
print(f"Setting version to {version_number}")
24
for version_file in _VERSION_FILES:
25
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}"
+ textwrap.dedent(f"""\
+ # Do not edit manually — use setup/set_version.py to change the version
+ version_number = "{version_number}"
29
""")
30
)
31
0 commit comments