From 5f5dcc7f990342dfd57fa7bdcda55c4381cbeb03 Mon Sep 17 00:00:00 2001 From: snowy Date: Sun, 18 Aug 2024 03:49:00 +0800 Subject: [PATCH] =?UTF-8?q?:children=5Fcrossing:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/__init__.py | 7 +++---- pyproject.toml | 7 ++++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/liteyuki/__init__.py b/liteyuki/__init__.py index b6fa9b4c..42dbab82 100644 --- a/liteyuki/__init__.py +++ b/liteyuki/__init__.py @@ -1,5 +1,3 @@ -from git import Repo - from liteyuki.bot import ( LiteyukiBot, get_bot, @@ -22,6 +20,7 @@ from liteyuki.log import ( logger ) + __all__ = [ "LiteyukiBot", "get_bot", @@ -32,7 +31,7 @@ __all__ = [ "load_plugin", "load_plugins", "init_log", - "logger" + "logger", ] -__version__ = f"6.3.5+g{Repo('.').head.commit.hexsha}" + diff --git a/pyproject.toml b/pyproject.toml index 21660273..893140fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,4 +34,9 @@ build-backend = "pdm.backend" [tool.pdm.build] includes = ["liteyuki/", "LICENSE", "README.md"] -excludes = ["tests/", "docs/", "src/"] \ No newline at end of file +excludes = ["tests/", "docs/", "src/"] + +[tool.pdm.version] +source = "scm" +tag_filter = "test/*" +tag_regex = '^test/(?:\D*)?(?P([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|c|rc)(0|[1-9][0-9]*))?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$)$' \ No newline at end of file