Skip to content

Commit ea8f967

Browse files
committed
Fix version generation issue
1 parent 2117781 commit ea8f967

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

update.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import typing
1111

1212
import click
13+
1314
import requests
1415

1516
IANA_LATEST_LOCATION = "https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz"
@@ -104,7 +105,7 @@ def create_package(version: str, zoneinfo_dir: pathlib.Path):
104105
# Generate the base __init__.py from a template
105106
with open(TEMPLATES_DIR / "__init__.py.in", "r") as f_in:
106107
contents = f_in.read()
107-
contents = contents.replace("%%IANA_VERSION%%", version)
108+
contents = contents.replace("%%IANA_VERSION%%", f'"{version}"')
108109

109110
with open(target_dir / "__init__.py", "w") as f_out:
110111
f_out.write(contents)

0 commit comments

Comments
 (0)