From a6ffbd59f865bb2356cda5a47e0db28911159109 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Sun, 29 Jun 2025 14:25:23 +0200 Subject: [PATCH] iuntegrate bumpversion into pyproject, change workflow --- .bumpversion.toml | 21 --------------------- .gitea/workflows/build.yml | 6 ++++++ pyproject.toml | 24 +++++++++++++++++++++++- 3 files changed, 29 insertions(+), 22 deletions(-) delete mode 100644 .bumpversion.toml diff --git a/.bumpversion.toml b/.bumpversion.toml deleted file mode 100644 index 894b569..0000000 --- a/.bumpversion.toml +++ /dev/null @@ -1,21 +0,0 @@ -[tool.bumpversion] -current_version = "0.1.0" -parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" -serialize = ["{major}.{minor}.{patch}"] -search = "{current_version}" -replace = "{new_version}" -regex = false -ignore_missing_version = false -ignore_missing_files = false -tag = false -sign_tags = false -tag_name = "v{new_version}" -tag_message = "Bump version: {current_version} → {new_version}" -allow_dirty = false -commit = false -message = "Bump version: {current_version} → {new_version}" -moveable_tags = [] -commit_args = "" -setup_hooks = [] -pre_commit_hooks = [] -post_commit_hooks = [] diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a77bb37..e713a45 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -25,10 +25,16 @@ jobs: steps: - name: Checkout code uses: actions/checkout@master + with: + fetch-depth: 0 + fetch-tags: true - name: Install uv uses: astral-sh/setup-uv@v5 - name: Set up Python run: uv python install + with: + python-version-file: "pyproject.toml" + - name: Set Git identity run: | git config user.name "Gitea CI" diff --git a/pyproject.toml b/pyproject.toml index 5662cde..629974f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "komsuite-nyaapy" -version = "0.1.0" +version = "0.1.1" description = "A rewritten hard fork of the original NyaaPy library." license = "MIT" readme = "README.md" @@ -18,3 +18,25 @@ dependencies = [ [build-system] requires = ["hatchling"] build-backend = "hatchling.build" + +[tool.bumpversion] +current_version = "0.1.1" +parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" +serialize = ["{major}.{minor}.{patch}"] +search = "{current_version}" +replace = "{new_version}" +regex = false +ignore_missing_version = false +ignore_missing_files = false +tag = true +sign_tags = false +tag_name = "v{new_version}" +tag_message = "Bump version: {current_version} → {new_version}" +allow_dirty = true +commit = true +message = "Bump version: {current_version} → {new_version}" +moveable_tags = [] +commit_args = "" +setup_hooks = [] +pre_commit_hooks = [] +post_commit_hooks = []