From ff5c2ebfca589a3ad0d60906d026f14dcb6638dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E4=B9=8B=E6=B8=85=E6=B3=A0?= Date: Thu, 12 Feb 2026 15:25:10 +0800 Subject: [PATCH] release: v0.1.1 Right commit. --- .gitea/workflows/pypi_update.yaml | 31 ++++++++++++++++++++++++++ README.md | 7 +++++- pyproject.toml | 4 ++-- tests/test_primitive_type_converter.py | 1 - 4 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 .gitea/workflows/pypi_update.yaml diff --git a/.gitea/workflows/pypi_update.yaml b/.gitea/workflows/pypi_update.yaml new file mode 100644 index 0000000..e3cf42c --- /dev/null +++ b/.gitea/workflows/pypi_update.yaml @@ -0,0 +1,31 @@ +name: Upload to PyPI +on: + push: + tags: + - "v*" + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + + - name: Set up Python + run: uv python install 3.12 + + - name: Run tests + run: uv run python -m unittest discover tests + + - name: Build package + run: uv build + + - name: Publish to PyPI + env: + UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }} + run: uv publish diff --git a/README.md b/README.md index 9831615..a1a264a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ # primitive-type -Check a value or object if the type of it is primitive, or convert it to other primitive type in Python. \ No newline at end of file +Check a value or object if the type of it is primitive, +or convert it to other primitive type in Python. + +See the [Docs](https://docs.staringplanet.top/primitive-type) for more informations. + +> If the link is unreachable, go diff --git a/pyproject.toml b/pyproject.toml index b306a65..990a645 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "primitive-type" -version = "0.1.0" +version = "0.1.1" description = "Check a value or object if the type of it is primitive, or convert it to other primitive type in Python." readme = "README.md" license = { file = "LICENSE" } @@ -17,6 +17,7 @@ dependencies = ["beartype>=0.22.9"] [project.urls] Homepage = "https://gitfub.cv/CleMooling/primitive-type" +Documentation = "https://docs.staringplanet.top/primitive-type" Repository = "https://gitfub.cv/CleMooling/primitive-type.git" Issues = "https://gitfub.cv/CleMooling/primitive-type/issues" @@ -25,7 +26,6 @@ requires = ["hatchling"] build-backend = "hatchling.build" [dependency-groups] -build = ["build>=1.4.0", "twine>=6.2.0"] dev = ["ruff>=0.15.0", "ty>=0.0.15"] docs = [ "jieba>=0.42.1", diff --git a/tests/test_primitive_type_converter.py b/tests/test_primitive_type_converter.py index b07c71c..3e69528 100644 --- a/tests/test_primitive_type_converter.py +++ b/tests/test_primitive_type_converter.py @@ -1,4 +1,3 @@ -from imagesize import get import unittest from primitive_type.converter import (