pyproject.toml 2.06 KB
Newer Older
Matt Tancik's avatar
Matt Tancik committed
1
[build-system]
Ruilong Li(李瑞龙)'s avatar
Ruilong Li(李瑞龙) committed
2
requires = ["setuptools==65.5.0"]
Matt Tancik's avatar
Matt Tancik committed
3
4
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.2.4"
8
9
description = "A General NeRF Acceleration Toolbox."
readme = "README.md"
Ruilong Li's avatar
docs  
Ruilong Li committed
10
authors = [{name = "Ruilong", email = "ruilongli94@gmail.com"}]
Matt Tancik's avatar
Matt Tancik committed
11
license = { text="MIT" }
Matthew Tancik's avatar
Matthew Tancik committed
12
requires-python = ">=3.7"
Matt Tancik's avatar
Matt Tancik committed
13
dependencies = [
Matthew Tancik's avatar
Matthew Tancik committed
14
    "importlib_metadata>=5.0.0; python_version<'3.8'",
Matt Tancik's avatar
Matt Tancik committed
15
16
    "ninja>=1.10.2.3",
    "pybind11>=2.10.0",
17
    "torch",  # tested with 1.12.0
Matt Tancik's avatar
Matt Tancik committed
18
    "rich>=12"
Matt Tancik's avatar
Matt Tancik committed
19
20
]

21
22
23
24
25
26
27
# [options]
# equivalent to using --extra-index-url with pip, 
# which is needed for specifying the CUDA version for torch
# dependency_links = [
#     "https://download.pytorch.org/whl/cu116"
# ]

28
29
30
[tool.setuptools.package-data]
"*" = ["*.cu", "*.cpp", "*.h"]

31
[project.urls]
Ruilong Li(李瑞龙)'s avatar
Ruilong Li(李瑞龙) committed
32
33
34
homepage = "https://www.nerfacc.com/en/latest/"
documentation = "https://www.nerfacc.com/en/latest/"
repository = "https://github.com/KAIR-BAIR/nerfacc/"
35

36
37
[project.optional-dependencies]
# Development packages
Ruilong Li's avatar
fix doc  
Ruilong Li committed
38
dev = [
39
40
41
42
    "black[jupyter]==22.3.0",
    "isort==5.10.1",
    "pylint==2.13.4",
    "pytest==7.1.2",
43
44
    "pytest-xdist==2.5.0",
    "typeguard>=2.13.3",
45
    "pyyaml==6.0",
46
47
    "build",
    "twine",
48
49
50
51
]

# [tool.setuptools.packages.find]
# include = ["nerfacc", "scripts"]
52
53
54
55

[tool.black]
line-length = 80

Ruilong Li(李瑞龙)'s avatar
Ruilong Li(李瑞龙) committed
56
57
58
59
60
[tool.isort]
multi_line_output = 3
line_length = 80
include_trailing_comma = true

61
62
63
64
[tool.pylint.messages_control]
max-line-length = 80
generated-members = ["numpy.*", "torch.*", "cv2.*", "cv.*"]
good-names-rgxs = "^[_a-zA-Z][_a-z0-9]?$"
65
ignore-paths = ["^tests/.*$", "examples/pycolmap"]
66
67
jobs = 0
disable = [
68
69
70
  "duplicate-code",
  "fixme",
  "logging-fstring-interpolation",
71
  "too-many-arguments",
72
73
  "too-many-branches",
  "too-many-instance-attributes",
74
  "too-many-locals",
75
  "unnecessary-ellipsis",
76
77
78
]

[tool.pytest.ini_options]
79
addopts = "-n=4 --typeguard-packages=nerfacc --disable-warnings"
80
81
82
83
84
85
86
87
88
89
90
91
testpaths = [
    "tests",
]

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

92
pythonVersion = "3.9"
Ruilong Li(李瑞龙)'s avatar
Ruilong Li(李瑞龙) committed
93
pythonPlatform = "Linux"