Spaces:
Sleeping
Sleeping
Upload pyproject.toml with huggingface_hub
Browse files- pyproject.toml +90 -0
pyproject.toml
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[build-system]
|
| 2 |
+
requires = ["maturin>=1.0,<2.0"]
|
| 3 |
+
build-backend = "maturin"
|
| 4 |
+
|
| 5 |
+
[tool.maturin]
|
| 6 |
+
manifest-path = "engine_rust_src/Cargo.toml"
|
| 7 |
+
module-name = "engine_rust"
|
| 8 |
+
|
| 9 |
+
[project]
|
| 10 |
+
name = "lovecasim"
|
| 11 |
+
version = "0.1.0"
|
| 12 |
+
description = "Add your description here"
|
| 13 |
+
readme = "README.md"
|
| 14 |
+
requires-python = ">=3.11"
|
| 15 |
+
dependencies = [
|
| 16 |
+
"flask==3.0.0",
|
| 17 |
+
"gunicorn==21.2.0",
|
| 18 |
+
"hypothesis>=6.150.2",
|
| 19 |
+
"numpy>=1.26.0,<2.1.0",
|
| 20 |
+
"pydantic>=2.12.5",
|
| 21 |
+
"tqdm>=4.66.0",
|
| 22 |
+
]
|
| 23 |
+
|
| 24 |
+
[[tool.uv.index]]
|
| 25 |
+
name = "pytorch-cu124"
|
| 26 |
+
url = "https://download.pytorch.org/whl/cu124"
|
| 27 |
+
explicit = true
|
| 28 |
+
|
| 29 |
+
[tool.uv.sources]
|
| 30 |
+
torch = { index = "pytorch-cu124" }
|
| 31 |
+
torchvision = { index = "pytorch-cu124" }
|
| 32 |
+
torchaudio = { index = "pytorch-cu124" }
|
| 33 |
+
|
| 34 |
+
[project.optional-dependencies]
|
| 35 |
+
ai = [
|
| 36 |
+
"numba==0.60.0",
|
| 37 |
+
"torch>=2.5.1",
|
| 38 |
+
"matplotlib>=3.8.0",
|
| 39 |
+
]
|
| 40 |
+
|
| 41 |
+
[tool.setuptools]
|
| 42 |
+
packages = ["engine", "ai", "tools", "compiler"]
|
| 43 |
+
|
| 44 |
+
[dependency-groups]
|
| 45 |
+
dev = [
|
| 46 |
+
"maturin>=1.11.5",
|
| 47 |
+
"mypy>=1.19.1",
|
| 48 |
+
"pre-commit>=4.5.1",
|
| 49 |
+
"pytest>=9.0.2",
|
| 50 |
+
"pytest-bdd>=8.1.0",
|
| 51 |
+
"pytest-xdist>=3.6.1",
|
| 52 |
+
"ruff>=0.14.11",
|
| 53 |
+
]
|
| 54 |
+
|
| 55 |
+
[tool.pytest.ini_options]
|
| 56 |
+
testpaths = ["engine/tests"]
|
| 57 |
+
addopts = "--ignore=tests --ignore=tools"
|
| 58 |
+
filterwarnings = [
|
| 59 |
+
"ignore:.*'cache' is set for njit and is ignored.*:RuntimeWarning"
|
| 60 |
+
]
|
| 61 |
+
|
| 62 |
+
[tool.ruff]
|
| 63 |
+
# Same as Black.
|
| 64 |
+
line-length = 120
|
| 65 |
+
indent-width = 4
|
| 66 |
+
target-version = "py312"
|
| 67 |
+
|
| 68 |
+
[tool.ruff.lint]
|
| 69 |
+
select = ["E4", "E7", "E9", "F", "B", "I"]
|
| 70 |
+
ignore = ["E501", "E741"]
|
| 71 |
+
|
| 72 |
+
[tool.ruff.format]
|
| 73 |
+
quote-style = "double"
|
| 74 |
+
indent-style = "space"
|
| 75 |
+
skip-magic-trailing-comma = false
|
| 76 |
+
line-ending = "auto"
|
| 77 |
+
|
| 78 |
+
[tool.mypy]
|
| 79 |
+
python_version = "3.12"
|
| 80 |
+
warn_return_any = true
|
| 81 |
+
warn_unused_configs = true
|
| 82 |
+
ignore_missing_imports = true
|
| 83 |
+
check_untyped_defs = true
|
| 84 |
+
disallow_untyped_defs = false
|
| 85 |
+
explicit_package_bases = true
|
| 86 |
+
plugins = ["pydantic.mypy"]
|
| 87 |
+
|
| 88 |
+
[[tool.mypy.overrides]]
|
| 89 |
+
module = ["tools.*", "ai.*", "scripts.*", "game.*"]
|
| 90 |
+
ignore_errors = true
|