Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (70 loc) · 2.12 KB
/
Copy pathpyproject.toml
File metadata and controls
79 lines (70 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[project]
name = "awpy"
description = "Awpy is a Counter-Strike 2 demo parser with a Rust backend."
requires-python = ">=3.11"
license = "MIT"
readme = "README.md"
authors = [
{ name = "Peter Xenopoulos", email = "pnxenopoulos@gmail.com" },
]
dynamic = ["version"]
keywords = ["counter-strike", "cs2", "demo", "parser", "esports"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Rust",
"Topic :: Games/Entertainment",
"Topic :: Software Development :: Libraries",
]
dependencies = ["polars>=2.0,<3", "typer>=0.12"]
[project.optional-dependencies]
plot = ["matplotlib>=3.8"]
win-prob = ["structured-data-models==0.2.1", "torch>=2.7,<3"]
[project.urls]
Homepage = "https://github.com/pnxenopoulos/awpy"
Repository = "https://github.com/pnxenopoulos/awpy"
Issues = "https://github.com/pnxenopoulos/awpy/issues"
[project.scripts]
awpy = "awpy.cli:main"
[dependency-groups]
dev = [
"matplotlib>=3.8,<4",
"maturin>=1.0,<2.0",
"pytest>=9.0,<10",
"pytest-xdist>=3.8,<4",
"ruff==0.16.1",
"ty==0.0.65",
]
docs = [
"shibuya==2026.7.12",
"sphinx==9.0.4",
"myst-parser==5.1.0",
# `api.md` autodocs `awpy.plot`, so the docs build has to be able to import
# it — which needs the `plot` extra's matplotlib.
"matplotlib==3.11.2",
]
[build-system]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
[tool.maturin]
features = ["pyo3/extension-module"]
module-name = "awpy._awpy"
python-source = "python"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "W"]
[tool.pytest.ini_options]
minversion = "9.0"
testpaths = ["tests", "benchmarks"]
addopts = ["--strict-config", "--strict-markers", "-ra"]
xfail_strict = true
markers = [
"fixtures: tests that need demo files (set AWPY_RUN_FIXTURES=1 to allow downloads)",
]