enhance log
Project description
README
初始化:Git + uv 项目
uv init my_package --package
cd my_package
git init
git add .
git commit -m "init project"
用 git tag 驱动版本号
修改 pyproject.toml(核心配置)
# 删除手写 version
[project]
name = "my-package"
dynamic = ["version"]
# 启用 hatch-vcs
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
含义:
- 版本号 来自 git tag
- uv build / publish 时自动解析
Git tag 规则(必须遵守)
git tag v0.1.0
支持:
- v0.1.0
- v1.2.3
- v1.0.0rc1
- v1.0.0.post1
本地验证版本号
uv build
完整 Git + uv 发布流程(标准)
# 1. 改代码
git checkout -b feature/x
git commit -m "add feature"
# 2. 合并到 main
git checkout main
git merge feature/x
# 3. 打 tag
git tag v0.2.0
git push origin main --tags
# 4. 发布
uv publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
enlogging-0.1.2.tar.gz
(10.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file enlogging-0.1.2.tar.gz.
File metadata
- Download URL: enlogging-0.1.2.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e73b2d2861fd21d0b7b80d9ed7f8cc5a1bd828288f03327b50fe05199f3785ed
|
|
| MD5 |
f49623d277eea297c0b317eb95d855bd
|
|
| BLAKE2b-256 |
91b3bc5d57174fc5324998a68aca3f96b4b7c2e99f4226bad0e1d6e05242edd4
|
File details
Details for the file enlogging-0.1.2-py3-none-any.whl.
File metadata
- Download URL: enlogging-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bafb956bc1c6f909c41fd28553a15d020040b0391022b10634532c75a2a7377
|
|
| MD5 |
8274afdf70ffb5f70401ef192578f91c
|
|
| BLAKE2b-256 |
a8a8d517d2e804076afa07d743b167de9f5882cb01d247286b3f19db4dddc611
|