pyproject.toml 911 B

1234567891011121314151617181920212223242526272829303132
  1. [build-system]
  2. requires = ["setuptools>=68"]
  3. build-backend = "setuptools.build_meta"
  4. [project]
  5. name = "customs-tools-service"
  6. version = "1.0.0"
  7. description = "海关问数 Agent · Python 工具执行服务(customs_process / data_read / calculator)"
  8. requires-python = ">=3.11"
  9. dependencies = [
  10. "fastapi>=0.110",
  11. "uvicorn>=0.27",
  12. "python-multipart>=0.0.9",
  13. "openpyxl>=3.1",
  14. "pydantic>=2.6",
  15. ]
  16. [project.optional-dependencies]
  17. dev = ["pytest>=8.0", "httpx>=0.27"]
  18. [tool.setuptools]
  19. packages = ["toolsvc", "toolsvc.customs", "toolsvc.customs.engine"]
  20. [tool.setuptools.package-data]
  21. "toolsvc.customs" = ["rules/*.xlsx", "README.md"]
  22. [tool.pytest.ini_options]
  23. pythonpath = ["."]
  24. testpaths = ["tests"]
  25. # basetemp 放在项目内:某些受限环境下系统临时目录不可列举
  26. addopts = "-q -p no:cacheprovider --basetemp=.pytest-tmp"
  27. filterwarnings = ["ignore::DeprecationWarning"]