TextGrocery-Shop 0.2.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,39 @@
1
+ # AGENTS.md
2
+
3
+ 面向维护者的项目约定。用户文档:`README.md`(中文,默认)/ `README_EN.md`(英文)。
4
+
5
+ ## 身份约定
6
+
7
+ - PyPI 发行名:`TextGrocery_Shop`,pip 规范化为 `textgrocery-shop`。
8
+ - Python 导入名:`tgrocery`(不要改包目录名,旧代码依赖它)。
9
+ - 安装命令统一写 `pip install textgrocery-shop`,代码示例统一写
10
+ `from tgrocery import Grocery`。
11
+ - 版本号两处必须一致:`pyproject.toml` 的 `[project].version` 与
12
+ `tgrocery/__init__.py` 的 `__version__`。
13
+
14
+ ## 许可证
15
+
16
+ `pyproject.toml`、`README.md`、`LICENSE.txt` 统一为 BSD-3-Clause。
17
+ 注意:上游 `2shou/TextGrocery` 仓库的 LICENSE.txt 是 GPLv3;若以后直接复制
18
+ 上游代码,必须重新评估许可证兼容性。
19
+
20
+ ## 常用命令
21
+
22
+ ```bash
23
+ python3 -m pytest -q
24
+ ruff check .
25
+ ruff format --check .
26
+ rm -rf build dist *.egg-info
27
+ python3 -m build
28
+ python3 -m twine check dist/*
29
+ ```
30
+
31
+ 构建要求 `setuptools>=77`(PEP 639 的 `license` / `license-files`)。
32
+ 系统自带旧版 setuptools 时不要用 `python3 -m build --no-isolation`。
33
+
34
+ ## 发布
35
+
36
+ 发布使用 `.github/workflows/pypi_publish.yml`:在 GitHub 发布 Release 时,
37
+ 通过 PyPI Trusted Publishing 自动上传,不需要仓库保存 token。
38
+ 完整流程(版本同步、tag、Release、验证)见两份 README 的
39
+ “打包与发布 / Packaging and publishing”章节。
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, TextGrocery_Shop contributors
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,9 @@
1
+ include README.md
2
+ include README_EN.md
3
+ include AGENTS.md
4
+ include LICENSE.txt
5
+ include pyproject.toml
6
+ include benchmark.py
7
+
8
+ recursive-include tests *.py
9
+ recursive-include sample *.py