release: v0.1.1
All checks were successful
Upload to PyPI / publish (push) Successful in 49s
Deploy Sphinx Docs / build-and-deploy (push) Successful in 2m17s

Right commit.
This commit is contained in:
2026-02-12 15:25:10 +08:00
parent bd4279e920
commit ff5c2ebfca
4 changed files with 39 additions and 4 deletions

View File

@@ -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

View File

@@ -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.
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 <https://primitive-type-pydocs.pages.dev>

View File

@@ -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",

View File

@@ -1,4 +1,3 @@
from imagesize import get
import unittest
from primitive_type.converter import (