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
|
[build-system]
# Build Python requirements, keep Cython in sync with
# "Prerequisites" in User's Guide,
# build jobs in `.github/workflows/*.yml`.
requires = [
"setuptools >= 61.0.0",
"wheel",
# NOTE: it is still possible to build PyTables with numpy 1.x
# Please refer to https://github.com/PyTables/PyTables/issues/1200
# If you change this to build with `numpy` 1, please update `numpy` in `dependencies` as well
# "numpy >= 1.20.0,<2",
"numpy",
"packaging",
"py-cpuinfo",
"Cython >= 3.1",
# Included here for seamless wheel builds.
# Packagers can choose to replace it by externally provided
# c-blosc2 library and headers
# "blosc2 >= 2.3.0",
]
build-backend = "setuptools.build_meta"
# build-backend = "mesonpy" # and replace ``setuptools`` above
[project]
name = "tables"
dynamic = [ "version" ]
description = "Hierarchical datasets for Python"
# Keep Python versions in sync with
# `classifiers` below,
# `min_python_version` in `setup.py`.
requires-python = ">=3.11"
license = { text = "BSD 3-Clause License" }
keywords = [ "hdf5" ]
authors = [
{ name = "Francesc Alted" },
{ name = "Ivan Vilata" },
{ name = "Antonio Valentino" },
{ name = "Anthony Scopatz" },
{ name = "et al." },
{ email = "pytables@pytables.org" },
]
maintainers = [
{ name = "PyTables maintainers", email = "pytables@pytables.org" },
]
# Keep Python versions in sync with
# `requires_python` above,
# "Prerequisites" in User's Guide,
# `jobs.build.strategy.matrix.python` in `.github/workflows/ci.yml`,
# `jobs.build_wheels.env.CIBW_SKIP` in `.github/workflows/wheels.yml`.
# `jobs.build_wheels_windows.env.CIBW_BUILD` in `.github/workflows/wheels.yml`.
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Python Modules",
]
# Runtime Python requirements, keep in sync with
# "Prerequisites" in User's Guide,
# ``requirements.txt``,
# `jobs.build.steps` in `.github/workflows/ubuntu.yml`.
dependencies = [
"numpy >= 1.20.0",
"numexpr >= 2.6.2",
"packaging",
"py-cpuinfo",
# "blosc2 >= 2.3.0",
]
[project.readme]
text = """
PyTables is a package for managing hierarchical datasets and
designed to efficiently cope with extremely large amounts of
data. PyTables is built on top of the HDF5 library and the
NumPy package and features an object-oriented interface
that, combined with C-code generated from Cython sources,
makes of it a fast, yet extremely easy to use tool for
interactively save and retrieve large amounts of data.
"""
content-type = "text/x-rst"
[project.urls]
homepage = "http://www.pytables.org"
documentation = "http://www.pytables.org"
repository = "https://github.com/PyTables/PyTables"
changelog = "http://www.pytables.org/release_notes.html"
tracker = "https://github.com/PyTables/PyTables/issues"
[project.scripts]
ptdump = "tables.scripts.ptdump:main"
ptrepack = "tables.scripts.ptrepack:main"
pt2to3 = "tables.scripts.pt2to3:main"
pttree = "tables.scripts.pttree:main"
[tool.setuptools]
platforms = [ "any" ]
zip-safe = false
# include-package-data = true
license-files = [ "LICENSE.txt" ]
[tool.setuptools.dynamic]
version = { attr = "tables._version.__version__" }
[tool.setuptools.packages.find]
exclude = [ "bench" ]
namespaces = false
[tool.setuptools.package-data]
tables = [ "*.dll", "*.so*", "*.dylib" ]
"tables.tests" = [ "*.h5", "*.mat" ]
"tables.nodes.tests" = [ "*.dat", "*.xbm", "*.h5" ]
[tool.cibuildwheel]
skip = "*-musllinux_*"
archs = "native"
build = "cp311-* cp314t-*"
build-verbosity = 1
test-command = [
"python -c \"import tables; keys = 'zlib bzip2 blosc blosc2'.split(); missing = [key for key in keys if tables.which_lib_version(key) is None]; assert missing == [], missing\"",
"python -m tables.tests.test_all",
]
test-skip = "*_aarch64"
# Keep in sync with ``build-system.requires`` above
before-build = [
"python -m pip install -q --require-hashes -r .github/workflows/requirements/build-requirements.txt -r requirements.txt",
"python -m pip install abi3audit",
]
[tool.cibuildwheel.linux]
before-all = [
"cp -r `pwd`/hdf5_build /tmp/hdf5",
"rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux",
"yum -y install epel-release",
"yum -y update",
"yum install -y zlib-devel bzip2-devel",
]
repair-wheel-command = [
"auditwheel repair -w {dest_dir} {wheel}",
# Free-threaded Python 3.14 doesn't support the stable ABI, so skip abi3audit
"if [[ {wheel} != *-cp314-cp314t-* ]]; then pipx run abi3audit --strict --report {wheel}; fi",
]
[tool.cibuildwheel.linux.environment]
HDF5_DIR = "/tmp/hdf5"
DISABLE_AVX2 = "true"
CFLAGS = "-g0"
LD_LIBRARY_PATH = "/tmp/hdf5/lib:${LD_LIBRARY_PATH}"
PKG_CONFIG_PATH = "/tmp/hdf5/lib/pkgconfig:${PKG_CONFIG_PATH}"
[tool.cibuildwheel.macos]
before-all = [
"cp -r `pwd`/hdf5_build /tmp/hdf5",
]
repair-wheel-command = [
"DYLD_LIBRARY_PATH=/tmp/hdf5/lib delocate-listdeps {wheel}",
"DYLD_LIBRARY_PATH=/tmp/hdf5/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}",
# Free-threaded Python 3.14 doesn't support the stable ABI, so skip abi3audit
"if [[ {wheel} != *-cp314-cp314t-* ]]; then pipx run abi3audit --strict --report {wheel}; fi",
]
[tool.cibuildwheel.macos.environment]
CC = "/usr/bin/clang"
CXX = "/usr/bin/clang"
LZO_DIR = "/tmp/hdf5"
BZIP2_DIR = "/tmp/hdf5"
HDF5_DIR = "/tmp/hdf5"
DISABLE_AVX2 = "true"
CFLAGS = "-g0"
LD_LIBRARY_PATH = "/tmp/hdf5/lib:${LD_LIBRARY_PATH}"
PKG_CONFIG_PATH = "/tmp/hdf5/lib/pkgconfig:${PKG_CONFIG_PATH}"
[tool.cibuildwheel.windows]
before-build = [
"python -m pip install -q --require-hashes -r requirements.txt",
"python -m pip install abi3audit delvewheel",
]
# We check for "libblosc2.dll" so don't let delvewheel mangle it
repair-wheel-command = [
"delvewheel repair --no-mangle libblosc2.dll -v -w {dest_dir} {wheel}",
# Free-threaded Python 3.14 doesn't support the stable ABI, so skip abi3audit
"echo {wheel} | findstr /C:\"cp314t\">nul && call || pipx run abi3audit --strict --report {wheel}",
]
[tool.cibuildwheel.windows.environment]
DISABLE_AVX2 = "TRUE"
[tool.black]
line-length = 79
# target-version = ['py311']
extend-exclude = "c-blosc/*"
[tool.isort]
profile = "black"
length_sort = true
no_inline_sort = true
include_trailing_comma = true
use_parentheses = true
line_length = 79
# skip_glob = ["packagename/parse/*"]
[tool.pydocstyle]
add-ignore = ["D105", "D107"]
|