modify: pack_directory add packager_name arg

This commit is contained in:
chakcy 2026-01-31 14:35:54 +08:00
parent 07c2a5bf8f
commit ac766a79b6
3 changed files with 1377 additions and 1 deletions

View File

@ -14,6 +14,11 @@ url = "https://pypi.tuna.tsinghua.edu.cn/simple"
build-backend = "hatchling.build"
requires = ["hatchling"]
[dependency-groups]
dev = [
"twine>=4.0.2",
]
[tool.hatch.build.targets.wheel]
packages = ["src/module_bank"]

View File

@ -15,11 +15,13 @@ class PythonToSQLite:
def pack_directory(
self,
directory_path: str,
package_name: str = None,
include_patterns: List[str] = None,
exclude_patterns: List[str] = None,
):
"""打包整个目录 - 修复版"""
directory = Path(directory_path)
if package_name is None:
package_name = directory.name # 包名
if include_patterns is None:

1369
uv.lock generated Normal file

File diff suppressed because it is too large Load Diff