Skip to content

Commit 90f4110

Browse files
committed
...
1 parent 382c31d commit 90f4110

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

publish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
nv = re.search(r'^version\s+=\s+Version\((\d+), (\d+), (\d+)\)', raw, flags=re.MULTILINE)
3030
if nv is not None:
3131
version = '%s.%s.%s' % (nv.group(1), nv.group(2), nv.group(3))
32-
appname = re.search(r"^appname\s+=\s+'([^']+)'", raw, flags=re.MULTILINE).group(1) # type: ignore
32+
appname = re.search(r"^appname: str\s+=\s+'([^']+)'", raw, flags=re.MULTILINE).group(1) # type: ignore
3333

3434
ALL_ACTIONS = 'man html build tag sdist upload website'.split()
3535

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
constants = os.path.join('kitty', 'constants.py')
3636
with open(constants, 'rb') as f:
3737
constants = f.read().decode('utf-8')
38-
appname = re.search(r"^appname = '([^']+)'", constants, re.MULTILINE).group(1) # type: ignore
38+
appname = re.search(r"^appname: str = '([^']+)'", constants, re.MULTILINE).group(1) # type: ignore
3939
version = tuple(
4040
map(
4141
int,
4242
re.search( # type: ignore
43-
r"^version = Version\((\d+), (\d+), (\d+)\)", constants, re.MULTILINE
43+
r"^version: Version = Version\((\d+), (\d+), (\d+)\)", constants, re.MULTILINE
4444
).group(1, 2, 3)
4545
)
4646
)

0 commit comments

Comments
 (0)