Metadata-Version: 2.4
Name: Race-Inventorytools
Version: 0.1.1
Summary: A Flask-Admin inventory CRUD demo application.
Author: Competition Demo Team
Keywords: flask,crud,inventory,admin,sqlite
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Flask
Classifier: Intended Audience :: Education
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: Flask==3.0.0
Requires-Dist: Flask-SQLAlchemy==3.1.1
Requires-Dist: Flask-Admin==1.6.1
Requires-Dist: WTForms==3.1.2
Requires-Dist: SQLAlchemy>=2.0
Requires-Dist: Flask-Babel==4.0.0

# Race Inventory CRUD Demo

Flask-Admin快速构建应用工具

## 安装运行

```powershell
python -m pip install Race-Inventorytools
race-inventory-admin
```

默认访问地址：

```text
http://127.0.0.1:5000/admin
```

可选环境变量：

```powershell
$env:FLASK_RUN_HOST = "127.0.0.1"
$env:FLASK_RUN_PORT = "5000"
$env:FLASK_DEBUG = "1"
$env:RACE_DEMO_SECRET_KEY = "replace-with-your-secret"
$env:RACE_INVENTORY_DB = "D:\path\to\data.db"
```

## 本地打包

```powershell
python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
```

构建产物会生成在 `dist/` 目录。

## 准备离线依赖

```powershell
.\scripts\download_dependencies.ps1
```

脚本会把依赖包下载到 `wheelhouse/`，并在已经构建 `dist/` 的情况下把本项目 wheel 一起复制进去。比赛方可用下面命令离线安装：

```powershell
python -m pip install --no-index --find-links wheelhouse Race-Inventorytools
```

## 上传 PyPI

```powershell
python -m twine upload dist/*
```

建议先上传 TestPyPI 验证：

```powershell
python -m twine upload --repository testpypi dist/*
```
