-
Notifications
You must be signed in to change notification settings - Fork 267
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (143 loc) · 3.3 KB
/
pyproject.toml
File metadata and controls
151 lines (143 loc) · 3.3 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
140
141
142
143
144
145
146
147
148
149
150
151
[build-system]
requires = [
"setuptools>=68",
"wheel",
"pybind11>=2.6.0",
"tomli; python_version < '3.14'",
]
build-backend = "setuptools.build_meta"
[project]
name = "compressai"
version = "1.2.9.dev0"
description = "A PyTorch library and evaluation platform for end-to-end compression research"
authors = [
{ name = "InterDigital AI Lab", email = "compressai@interdigital.com" },
]
readme = "Readme.md"
requires-python = ">=3.8,<14"
urls = { Homepage = "https://github.com/InterDigitalInc/CompressAI" }
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"einops",
"matplotlib",
"numpy >= 1.24.4",
"Pandas >= 2.0.3; python_version < '3.9'",
"Pandas >= 2.3.2; python_version >= '3.9'",
"pybind11>=2.6.0; python_version < '3.10'", # For --no-build-isolation.
"pybind11>=2.12.0; python_version >= '3.10'", # For --no-build-isolation.
"pytorch-msssim",
"scipy",
"setuptools>=68", # For --no-build-isolation.
"tomli>=2.2.1",
"torch-geometric>=2.3.0",
"torch>=1.13.1",
"torch>=2.6.0; python_version >= '3.12'",
"torchvision>=0.14.1,<0.20; python_version < '3.9'",
"torchvision>=0.17.0; python_version >= '3.9'",
"tqdm",
"typing-extensions>=4.0.0",
"wheel>=0.32.0", # For --no-build-isolation.
]
[project.optional-dependencies]
test = [
"plotly",
"pytest",
"pytest-cov",
]
dev = [
"black",
"flake8",
"flake8-bugbear",
"flake8-comprehensions",
"isort",
"mypy",
"plotly",
"pytest",
"pytest-cov",
"ruff==0.8.6",
]
doc = [
"Jinja2<3.1",
"sphinx==4.3.0",
"sphinx-book-theme==1.0.1",
]
tutorials = [
"ipywidgets",
"jupyter",
]
pointcloud = [
# "pointops-yoda", # Please install via uv pip install pointops-yoda --no-build-isolation
"pyntcloud-yoda",
]
# NOTE: Temporarily duplicated from [project.optional-dependencies] until
# pip supports installing [dependency-groups].
[dependency-groups]
test = [
"plotly",
"pytest",
"pytest-cov",
]
dev = [
"black",
"flake8",
"flake8-bugbear",
"flake8-comprehensions",
"isort",
"mypy",
"ruff==0.8.6",
{ include-group = "test" },
]
doc = [
"Jinja2<3.1",
"sphinx==4.3.0",
"sphinx-book-theme==1.0.1",
]
tutorials = [
"ipywidgets",
"jupyter",
]
[tool.setuptools]
package-dir = {"" = "."}
zip-safe = false
[tool.setuptools.packages.find]
exclude = ["tests"]
[tool.black]
line-length = 88
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.mypy_cache
| venv*
| _build
| build
| dist
)/
'''
[tool.isort]
multi_line_output = 3
lines_between_types = 1
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
known_third_party = "PIL,pytorch_msssim,torchvision,torch"
skip_gitignore = true
[tool.pytest.ini_options]
markers = [
"pretrained: download and check pretrained models (slow, deselect with '-m \"not pretrained\"')",
"slow: all slow tests (pretrained models, train, etc...)",
]