-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpyproject.toml
58 lines (49 loc) · 1.43 KB
/
pyproject.toml
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
[project]
name = "flag_attn"
dynamic = ["version"]
authors = [
{name = "Chen Feiyu", email = "[email protected]"},
]
description = "A collection of memory efficient attention operators implemented in triton language."
readme = {file= "README.md", content-type="text/markdown"}
requires-python = ">=3.7"
license = {text = "LICENSE.txt"}
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
]
# Not specifing triton version here because torch has its own required triton version
# FlagAttention needs a recent version of triton (triton nightly or 2.2.0) to run.
dependencies = [
"triton>=2.2.0"
]
[project.optional-dependencies]
test = [
"pytest>=7.1.0",
]
[project.urls]
homepage = "https://github.com/FlagOpen/FlagAttention"
[build-system]
requires = ["setuptools>=60", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_file = "src/flag_attn/_version.py"
[tool.setuptools.packages.find]
where = ["src"]
include = ["flag_attn"]
namespaces = false
# helps for setting up pytest in pyprojects
# https://docs.pytest.org/en/7.3.x/reference/customize.html#rootdir
# https://docs.pytest.org/en/7.3.x/reference/reference.html#confval-pythonpath
[tool.pytest.ini_options]
testpaths = [
"tests",
]
pythonpath = [
"src",
"tests/flag_attn",
]
[tool.ruff]
ignore = ["E741"]
line-length = 120