-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (128 loc) · 3.5 KB
/
pyproject.toml
File metadata and controls
139 lines (128 loc) · 3.5 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# https://peps.python.org/pep-0621/
[project]
name = "mosec"
description = "Model Serving made Efficient in the Cloud"
readme = "README.md"
authors = [
{ name = "Keming", email = "kemingy94@gmail.com" },
{ name = "Zichen", email = "lkevinzc@gmail.com" },
]
license = { text = "Apache-2.0" }
keywords = ["machine learning", "deep learning", "model serving"]
dynamic = ["version"]
requires-python = ">=3.10"
dependencies = []
classifiers = [
"Environment :: GPU",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Rust",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Build Tools",
]
[project.urls]
homepage = "https://mosecorg.github.io/"
documentation = "https://mosecorg.github.io/mosec/"
repository = "https://github.com/mosecorg/mosec"
changelog = "https://github.com/mosecorg/mosec/releases"
[project.scripts]
[project.optional-dependencies]
validation = ["msgspec>=0.20"]
redis = ["redis>=5.2.1"]
msgpack = ["msgpack>=1.1.0"]
numbin = ["numbin>=0.5.0"]
[build-system]
requires = ["maturin>=1.8,<=1.12.5"]
build-backend = "maturin"
[tool.maturin]
bindings = "bin"
python-packages = ["mosec"]
strip = true
exclude = ["tests/**/*", "docs/**/*", "examples/**/*"]
[tool.uv]
cache-keys = [
{ file = "pyproject.toml" },
{ file = "Cargo.toml" },
{ file = "src/**/*.rs" },
]
[tool.mypy]
python_version = "3.10"
warn_redundant_casts = true
warn_unreachable = true
pretty = true
[[tool.mypy.overrides]]
module = [
"torch.*",
"transformers",
"sentence_transformers",
"llmspec",
"openai",
]
ignore_missing_imports = true
[tool.pyright]
venvPath = "."
venv = ".venv"
pythonPlatform = "Linux"
pythonVersion = "3.10"
include = ["mosec", "tests", "examples"]
reportMissingImports = "warning"
[tool.pytest.ini_options]
markers = ["shm: mark a test is related to shared memory"]
[tool.ruff.lint]
select = ["E", "F", "G", "B", "I", "SIM", "TID", "PL", "RUF", "D"]
ignore = ["E501", "D203", "D213", "PLC0415"]
[tool.ruff.lint.isort]
known-first-party = ["mosec"]
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
"examples/*" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.typos]
[tool.typos.default.extend-words]
typ = "typ"
[dependency-groups]
doc = [
"furo>=2022.12.7",
"myst-parser>=0.18",
"sphinx>=7.4.7",
"sphinx-autodoc-typehints>=1.22",
"sphinx-copybutton>=0.5",
"sphinx-sitemap>=2.6.0",
"sphinxcontrib-napoleon>=0.7",
"sphinxcontrib-programoutput>=0.17",
"sphinxext-opengraph>=0.8",
]
dev = [
"httpx-sse==0.4.3",
"httpx[http2]==0.28.1",
"maturin>=1.8,<=1.12.5",
"mypy~=1.15",
"prek>=0.1.2",
"pyright~=1.1",
"pytest>=8",
"pytest-mock>=3.5",
"ruff>=0.11.11",
"zstandard~=0.23",
]
mixin = [
"msgpack>=1.1.0",
"msgspec>=0.20",
"numbin>=0.5.0",
"numpy<2 ; python_full_version < '3.12'",
"numpy>=2 ; python_full_version >= '3.12'",
"pyarrow>=0.6.1,<12 ; python_full_version < '3.12'", # pyarrow legacy dependency
"redis>=4.0.0",
]