构建过程
conda create -n thoughtrelay python=3.12 -y
conda activate thoughtrelay
pip install build twine hatchling
cd ~/ThoughtRelay
python -m build
# 检查包元数据是否正确
twine check dist/*
# 检查 wheel 里包含了哪些文件(确保没有遗漏)
python -c "import zipfile; z = zipfile.ZipFile('dist/thoughtrelay-0.1.0-py3-none-any.whl'); print('\n'.join(z.namelist()))"
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*