- Move `zon2json` command from `main.py` to `__main__.py` - Create shared `convert_zon_to_json` function for consistent JSON conversion - Update pyproject.toml to point `zon2json` script to new location - Update README with `uv run` prefix for CLI commands - Expose key functions in `__init__.py` for easier importing - Remove redundant `main.py` file
37 lines
785 B
TOML
37 lines
785 B
TOML
[project]
|
|
name = "zig-fetch-py"
|
|
version = "0.1.0"
|
|
description = "A tool to parse Zig Object Notation (ZON) files and convert them to JSON"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"click>=8.1.8",
|
|
"httpx>=0.28.1",
|
|
"loguru>=0.7.3",
|
|
"tqdm>=4.67.1",
|
|
]
|
|
license = "WTFPL"
|
|
|
|
[project.scripts]
|
|
zig-fetch = "zig_fetch_py.__main__:main"
|
|
zon2json = "zig_fetch_py.__main__:zon2json"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["zig_fetch_py"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = "test_*.py"
|
|
python_functions = "test_*"
|
|
python_classes = "Test*"
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest>=8.3.5", "pytest-cov>=6.0.0"]
|