Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
64 lines (57 loc) · 2.29 KB
/
Copy pathpyproject.toml
File metadata and controls
64 lines (57 loc) · 2.29 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
[build-system]
# building against NumPy 2.x headers gives a binary that also runs on NumPy 1.x
requires = ["setuptools>=77", "numpy>=2.0"]
build-backend = "setuptools.build_meta"
[project]
name = "pycorearray"
version = "0.2.1"
description = "Python Interface to CoreArray Genomic Data Structure (GDS) Files"
readme = "README.md"
requires-python = ">=3.10"
# pycorearray and the bundled CoreArray: LGPL-3.0; LZ4/xxHash: BSD-2-Clause; zlib: Zlib
license = "LGPL-3.0-only AND BSD-2-Clause AND Zlib"
license-files = ["LICENSE", "LICENSE.GPL-3", "src/CoreArray/LICENSE", "src/LZ4/LICENSE", "src/ZLIB/LICENSE"]
authors = [
{ name = "Xiuwen Zheng", email = "zhengxwen@gmail.com" },
]
keywords = ["GDS", "CoreArray", "gdsfmt", "genomics", "genetics", "bioinformatics",
"WGS", "WES"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
# must match NPY_TARGET_VERSION in setup.py
dependencies = ["numpy>=1.25"]
[project.urls]
Homepage = "https://github.com/CoreArray/pycorearray"
Issues = "https://github.com/CoreArray/pycorearray/issues"
[tool.setuptools]
packages = ["pycorearray", "pycorearray.data", "pycorearray.include"]
[tool.setuptools.package-data]
"pycorearray.data" = ["*.gds"]
"pycorearray.include" = ["*.h"]
# wheels: .github/workflows/wheels.yml
[tool.cibuildwheel]
# no free-threaded builds, no musllinux
skip = ["cp3??t-*", "*-musllinux_*"]
test-requires = ["pytest"]
test-sources = ["tests", "tools/wheels/check_https.py"]
test-command = [
"python -c \"import pycorearray; assert pycorearray.cloud.available()\"",
"python -m pytest tests",
"python tools/wheels/check_https.py",
]
[tool.cibuildwheel.linux]
archs = ["auto64"]
before-all = "sh tools/wheels/build-deps-linux.sh"
# no debug information (-g in the CFLAGS of Python), which is 90% of the size
environment = { OPENSSL_PREFIX = "/usr/local", CFLAGS = "-g0", CXXFLAGS = "-g0" }
[tool.cibuildwheel.macos]
before-all = "sh tools/wheels/build-xz-macos.sh /tmp/xz"
environment = { MACOSX_DEPLOYMENT_TARGET = "11.0", LZMA_PREFIX = "/tmp/xz" }