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 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
|
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "param"
dynamic = ["version"]
description = "Make your Python code clearer and more reliable by declaring Parameters."
readme = "README.md"
license = { text = "BSD-3-Clause" }
requires-python = ">=3.8"
authors = [
{ name = "HoloViz", email = "developers@holoviz.org" },
]
maintainers = [
{ name = "HoloViz", email = "developers@holoviz.org" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
"Topic :: Software Development :: Libraries",
]
dependencies = []
[project.optional-dependencies]
examples = [
"aiohttp",
"pandas",
"panel",
]
doc = [
"param[examples]",
"nbsite ==0.8.4",
"sphinx-remove-toctrees",
]
tests = [
"coverage[toml]",
"pytest",
"pytest-asyncio",
]
tests-deser = [
"xlrd",
"openpyxl",
"odfpy",
"pyarrow",
"tables",
]
tests-examples = [
"pytest",
"pytest-asyncio",
"pytest-xdist",
"nbval",
"param[examples]",
]
tests-full = [
"param[tests]",
"param[tests-examples]",
"param[tests-deser]",
"numpy",
"pandas",
"ipython",
"jsonschema",
"gmpy",
"cloudpickle",
"nest_asyncio",
]
lint = [
"flake8",
"pre-commit",
]
all = [
"param[tests-full]",
"param[doc]",
"param[lint]",
]
[project.urls]
Homepage = "https://param.holoviz.org/"
Tracker = "https://github.com/holoviz/param/issues"
Releases = "https://github.com/holoviz/param/releases"
Source = "https://github.com/holoviz/param"
HoloViz = "https://holoviz.org/"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
include = [
"/param",
"/numbergen",
]
[tool.hatch.build.targets.sdist]
include = [
"/param",
"/numbergen",
"/tests",
]
[tool.hatch.build.hooks.vcs]
version-file = "param/_version.py"
[tool.hatch.envs.default]
dependencies = [
# Linters
"param[lint]",
# Base tests dependencies
"param[tests]",
# Examples tests dependencies
"param[tests-examples]",
# Deserializatoin dependencies
"param[tests-deser]",
# Additional tests dependencies, not including gmpy as
# it's tricky to install.
"ipython",
"jsonschema",
"numpy",
"pandas",
"cloudpickle",
"nest_asyncio",
# To keep __version__ up-to-date in editable installs
"setuptools_scm",
]
post-install-commands = [
"python -m pip install pre-commit",
"pre-commit install",
]
[tool.hatch.envs.default.scripts]
tests = "pytest {args:tests}"
examples = "pytest -n logical --dist loadscope --nbval-lax {args:doc}"
[tool.hatch.envs.docs]
template = "docs"
features = ["doc"]
python = "3.9"
[tool.hatch.envs.docs.scripts]
build = [
"sphinx-build -b html doc builtdocs",
]
[tool.hatch.envs.tests]
template = "tests"
dependencies = [
"param[tests]",
"ipython",
"jsonschema",
]
[[tool.hatch.envs.tests.matrix]]
python = [
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"pypy3.9",
]
[tool.hatch.envs.tests.scripts]
tests = "pytest {args:tests}"
with_coverage = [
"coverage run --source=numbergen,param -m pytest -v {args:tests}",
"coverage report",
"coverage xml",
]
[tool.hatch.envs.tests.overrides]
# Only install these on non PyPy environments
name."^(?!pypy).*".dependencies = [
"numpy",
"pandas",
"xlrd",
"openpyxl",
"odfpy",
"pyarrow",
"cloudpickle",
"nest_asyncio",
]
# Only install gmpy on Linux on these version
# Only install tables (deser HDF5) on Linux on these version
matrix.python.dependencies = [
{ value = "gmpy", if = ["3.8", "3.9", "3.10"], platform = ["linux"] },
{ value = "tables", if = ["3.8", "3.9", "3.10", "3.11", "3.12"], platform = ["linux"] },
]
[tool.hatch.envs.tests_examples]
template = "tests_examples"
dependencies = [
"param[tests-examples]",
"ipython",
"jsonschema",
]
[[tool.hatch.envs.tests_examples.matrix]]
python = [
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
]
[tool.hatch.envs.tests_examples.scripts]
examples = "pytest -v -n logical --dist loadscope --nbval-lax {args:doc}"
[tool.pytest.ini_options]
python_files = "test*.py"
filterwarnings = [
"error",
]
xfail_strict = "true"
asyncio_mode = "auto"
[tool.coverage.report]
omit = ["param/version.py"]
|