release: v0.1.1
Right commit.
This commit is contained in:
31
.gitea/workflows/pypi_update.yaml
Normal file
31
.gitea/workflows/pypi_update.yaml
Normal 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
|
||||
@@ -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>
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
from imagesize import get
|
||||
import unittest
|
||||
|
||||
from primitive_type.converter import (
|
||||
|
||||
Reference in New Issue
Block a user