sololib 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,41 @@
1
+ name: sololibpypi
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*' # 仅在推送版本标签时触发,如 v0.1.0
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ environment: sololib # 指向你仓库中设置的环境名称
12
+ # 启用 Trusted Publishing 所需权限(推荐方式,无需配置 TOKEN)
13
+ permissions:
14
+ id-token: write
15
+ contents: read
16
+
17
+ steps:
18
+ - name: Checkout code
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Install uv
22
+ uses: astral-sh/setup-uv@v5
23
+ with:
24
+ # 启用缓存以进一步加快后续运行速度
25
+ enable-cache: true
26
+ version: "latest"
27
+
28
+ - name: Set up Python
29
+ run: uv python install
30
+
31
+ - name: Install dependencies
32
+ # 如果你有 uv.lock 文件,这会确保环境完全一致
33
+ run: uv sync --all-extras --dev
34
+
35
+ - name: Build package
36
+ # uv 会自动根据 pyproject.toml 构建 sdist 和 wheel
37
+ run: uv build
38
+
39
+ - name: Publish to PyPI
40
+ # 使用官方 Action 进行发布
41
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,14 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+ data
12
+ *.db
13
+ *.log
14
+ .env
@@ -0,0 +1 @@
1
+ 3.11
sololib-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.4
2
+ Name: sololib
3
+ Version: 0.1.0
4
+ Summary: A simple Python library
5
+ Requires-Python: >=3.11
6
+ Description-Content-Type: text/markdown
7
+
8
+ 杀杀杀
@@ -0,0 +1 @@
1
+ 杀杀杀
@@ -0,0 +1,14 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "sololib"
7
+ version = "0.1.0"
8
+ description = "A simple Python library"
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ dependencies = []
12
+
13
+ [project.scripts]
14
+ sololib = "sololib:main"
@@ -0,0 +1,23 @@
1
+ """sololib - A simple Python library."""
2
+
3
+ __version__ = "0.1.0"
4
+
5
+
6
+ def greet(name: str) -> str:
7
+ """Return a greeting message.
8
+
9
+ Args:
10
+ name: The name to greet.
11
+
12
+ Returns:
13
+ A greeting string.
14
+ """
15
+ return f"Hello, {name}!"
16
+
17
+
18
+ def main():
19
+ print(greet("World"))
20
+
21
+
22
+ if __name__ == "__main__":
23
+ main()
sololib-0.1.0/uv.lock ADDED
@@ -0,0 +1,8 @@
1
+ version = 1
2
+ revision = 3
3
+ requires-python = ">=3.11"
4
+
5
+ [[package]]
6
+ name = "sololib"
7
+ version = "0.1.0"
8
+ source = { editable = "." }