From 32a755ac3f0d7192fc61b99c89bb2c9da3a71b65 Mon Sep 17 00:00:00 2001 From: lionsoul2014 Date: Sun, 2 Nov 2025 18:34:21 +0800 Subject: [PATCH] use the py-ip2region as the pypi package name --- binding/python/ReadMe.md | 6 +++--- binding/python/setup.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/binding/python/ReadMe.md b/binding/python/ReadMe.md index e3c8a64..1e6f105 100644 --- a/binding/python/ReadMe.md +++ b/binding/python/ReadMe.md @@ -2,9 +2,9 @@ # 使用方式 -### 安装 `ip2region` +### 安装 `py-ip2region` ```bash -pip3 install ip2region +pip3 install py-ip2region ``` ### 关于查询 API @@ -218,4 +218,4 @@ python3 bench_test.py --db=../../data/ip2region_v6.xdb --src=../../data/ipv6_sou ``` 可以通过分别设置 `cache-policy` 为 file/vectorIndex/content 来测试三种不同缓存实现的效果。 -@Note: 注意 bench 使用的 src 文件要是生成对应 xdb 文件相同的源文件。 \ No newline at end of file +@Note: 注意 bench 使用的 src 文件要是生成对应 xdb 文件相同的源文件。 diff --git a/binding/python/setup.py b/binding/python/setup.py index f729248..66319b9 100644 --- a/binding/python/setup.py +++ b/binding/python/setup.py @@ -1,9 +1,9 @@ import setuptools setuptools.setup( - name="ip2region", + name="py-ip2region", version="3.0.0", - description="official python binding for ip2region with both IPv4 and IPv6 supported", + description="ip2region official python binding with both IPv4 and IPv6 supported", long_description=open("ReadMe.md", encoding='utf-8').read(), long_description_content_type='text/markdown',