From e2afef240de0427f8ca8de6949e2ef8291cc2d08 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Mon, 20 Mar 2023 10:08:04 +0700 Subject: [PATCH] PyroFork: Update dev versioning Signed-off-by: wulan17 --- .github/utils/randomize.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/utils/randomize.py b/.github/utils/randomize.py index 9d5ddec9..acad1e7f 100644 --- a/.github/utils/randomize.py +++ b/.github/utils/randomize.py @@ -1,13 +1,11 @@ import datetime -import random import re import string with open("pyrogram/__init__.py", "r") as f: pyro_version = re.findall(r"__version__ = \"(.+)\"", f.read())[0] - date = datetime.datetime.now().strftime("%Y%m%d") - dev_version = ''.join(random.choice(string.digits) for i in range(4)) - version = f"{pyro_version}.dev{date}{dev_version}" + date = datetime.datetime.now().strftime("%Y%m%d%H%M") + version = f"{pyro_version}.dev{date}" with open("pyrogram/__init__.py", "r") as f: lines = f.readlines() @@ -24,4 +22,5 @@ with open("setup.py", "r") as f: with open("setup.py", "w") as f: for line in lines: line = re.sub(r' name="PyroFork"', ' name="PyroFork-dev"', line) + line = re.sub(r' "Development Status :: 5 - Production/Stable"', ' "Development Status :: 4 - Beta"', line) f.write(line)