pyproject.toml 1.28 KB
Newer Older
Matt Tancik's avatar
Matt Tancik committed
1
2
3
4
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

Ruilong Li's avatar
docs  
Ruilong Li committed
5
6
[project]
name = "nerfacc"
Ruilong Li(李瑞龙)'s avatar
Ruilong Li(李瑞龙) committed
7
version = "0.0.9"
Ruilong Li's avatar
docs  
Ruilong Li committed
8
authors = [{name = "Ruilong", email = "ruilongli94@gmail.com"}]
Matt Tancik's avatar
Matt Tancik committed
9
10
11
12
13
license = { text="MIT" }
requires-python = ">=3.8"
dependencies = [
    "ninja>=1.10.2.3",
    "pybind11>=2.10.0",
Matt Tancik's avatar
Matt Tancik committed
14
15
    "torch>=1.12.1",
    "rich>=12"
Matt Tancik's avatar
Matt Tancik committed
16
17
]

18
19
20
[tool.setuptools.package-data]
"*" = ["*.cu", "*.cpp", "*.h"]

21
22
[project.optional-dependencies]

Ruilong Li's avatar
fix doc  
Ruilong Li committed
23
24
25
26
# for development
dev = [
    "black",
    "isort",
Ruilong Li(李瑞龙)'s avatar
Ruilong Li(李瑞龙) committed
27
    "pytest",
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
    "pylint",
    "pytest-xdist==2.5.0",
    "pyyaml",
    "typeguard>=2.13.3",
]

# black
[tool.black]
line-length = 80

# pylint
[tool.pylint.messages_control]
max-line-length = 80
generated-members = ["numpy.*", "torch.*", "cv2.*", "cv.*"]
good-names-rgxs = "^[_a-zA-Z][_a-z0-9]?$"
ignore-paths = ["^tests/.*$", "^nerfacc/cuda/.*$", "^tests/cuda/.*$"]
jobs = 0

disable = [
  "line-too-long",
  "too-many-arguments",
  "too-many-locals",
]

#pytest
[tool.pytest.ini_options]
addopts = "-n=4 --typeguard-packages=nerfacc --disable-warnings --ignore=tests/cuda"
testpaths = [
    "tests",
]

# pyright
[tool.pyright]
include = ["nerfacc"]
exclude = ["**/node_modules",
    "**/__pycache__",
]
ignore = ["nerfacc/cuda"]
defineConstant = { DEBUG = true }

pythonVersion = "3.8"
pythonPlatform = "Linux"