From 35b25092d2b2a103fc0dd10af82efd50ff13c7f0 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 22 Oct 2026 02:11:53 +0000 Subject: [PATCH] Read the README version and Python badges from PyPI, and add downloads. The version badge no longer needs a bump each release. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01PaKMEqsJ6sPfeqmthaHBwC --- README.md | 5 +++-- README.zh-CN.md | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a3df3bc..4404540 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # Foil · 运筹 [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://github.com/TiantianFlow/foil/blob/main/LICENSE) -[![Version](https://img.shields.io/badge/version-0.6.1-informational)](https://github.com/TiantianFlow/foil) +[![PyPI](https://img.shields.io/pypi/v/foil-ai)](https://pypi.org/project/foil-ai/) [![CI](https://github.com/TiantianFlow/foil/actions/workflows/ci.yml/badge.svg)](https://github.com/TiantianFlow/foil/actions/workflows/ci.yml) -[![Python](https://img.shields.io/badge/python-3.11%2B-blue)](https://github.com/TiantianFlow/foil/blob/main/pyproject.toml) +[![Python](https://img.shields.io/pypi/pyversions/foil-ai)](https://pypi.org/project/foil-ai/) +[![Downloads](https://img.shields.io/pypi/dm/foil-ai)](https://pypi.org/project/foil-ai/) [![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20macOS-lightgrey)](https://github.com/TiantianFlow/foil/blob/main/pyproject.toml) [![Runtime dependencies](https://img.shields.io/badge/runtime%20dependencies-none-brightgreen)](https://github.com/TiantianFlow/foil/blob/main/pyproject.toml) diff --git a/README.zh-CN.md b/README.zh-CN.md index 92ef1ff..0d21082 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,9 +1,10 @@ # 运筹 · Foil [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE) -[![Version](https://img.shields.io/badge/version-0.6.1-informational)](https://github.com/TiantianFlow/foil) +[![PyPI](https://img.shields.io/pypi/v/foil-ai)](https://pypi.org/project/foil-ai/) [![CI](https://github.com/TiantianFlow/foil/actions/workflows/ci.yml/badge.svg)](https://github.com/TiantianFlow/foil/actions/workflows/ci.yml) -[![Python](https://img.shields.io/badge/python-3.11%2B-blue)](pyproject.toml) +[![Python](https://img.shields.io/pypi/pyversions/foil-ai)](https://pypi.org/project/foil-ai/) +[![Downloads](https://img.shields.io/pypi/dm/foil-ai)](https://pypi.org/project/foil-ai/) [![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20macOS-lightgrey)](pyproject.toml) [![Runtime dependencies](https://img.shields.io/badge/runtime%20dependencies-none-brightgreen)](pyproject.toml)