Skip to content

Commit 7559d3e

Browse files
committed
move github_download_url_regex to _utils.py
1 parent 9a92583 commit 7559d3e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ci/src/_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
# If adding a third-party library here, check CI workflows Python files
99
# that are dependant on this and require pip install.
1010

11+
github_download_url_regex = re.compile(
12+
r"https://github\.com/(?P<author>[a-zA-Z0-9-]+)/(?P<repo>[a-zA-Z0-9\.\-\_]*)/releases/download/(?P<version>[a-zA-Z\.0-9]+)/(?P<filename>.*)\.zip"
13+
)
14+
1115
# path
1216
utils_path = Path(__file__).resolve()
1317

ci/src/updater.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
from _utils import *
1515
from discord import update_hook
1616

17-
github_download_url_regex = re.compile(
18-
r"https://github\.com/(?P<author>[a-zA-Z0-9-]+)/(?P<repo>[a-zA-Z0-9\.\-\_]*)/releases/download/(?P<version>[a-zA-Z\.0-9]+)/(?P<filename>.*)\.zip"
19-
)
20-
21-
2217
async def batch_github_plugin_info(
2318
info: P, tags: ETagsType, github_token=None, webhook_url: str | None = None
2419
) -> P:

0 commit comments

Comments
 (0)