-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
160 lines (137 loc) · 4.34 KB
/
pyproject.toml
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
# Copyright (C) 2023 Roberto Rossini <[email protected]>
#
# SPDX-License-Identifier: MIT
[build-system]
requires = [
"conan>=2.0.5",
"nanobind>=2", # This is required in order to run stubgen
"numpy>=2",
"scikit-build-core>=0.10",
"typing_extensions",
]
build-backend = "scikit_build_core.build"
[project]
name = "hictkpy"
dynamic = ["version"]
description = "Python bindings for hictk: read and write .cool and .hic files directly from Python"
readme = "README.md"
authors = [
{name = "Roberto Rossini", email = "[email protected]"}
]
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: OSI Approved :: MIT License"
]
dependencies = []
optional-dependencies.numpy = [
"numpy",
]
optional-dependencies.pandas = [
"hictkpy[pyarrow]",
"pandas>=2.1.0,!=2.2.0",
]
optional-dependencies.pyarrow = [
"pyarrow>=16",
]
optional-dependencies.scipy = [
"scipy",
]
optional-dependencies.all = [
"hictkpy[numpy,pandas,pyarrow,scipy]",
]
optional-dependencies.test = [
"pytest>=8.0",
]
optional-dependencies.dev = [
"hictkpy[all,test]",
"black>=24.10",
"clang-format>=19.1",
"isort>=5.13",
"gersemi>=0.15",
]
[tool.scikit-build]
minimum-version = "0.10"
build-dir = "build/{wheel_tag}"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["src/_version.py"]
wheel.expand-macos-universal-tags = true
cmake.build-type = "Release"
[tool.scikit-build.cmake.define]
BUILD_SHARED_LIBS = "OFF"
CMAKE_OSX_DEPLOYMENT_TARGET = "10.15"
CMAKE_PROJECT_TOP_LEVEL_INCLUDES = { env="HICTKPY_PROJECT_TOP_LEVEL_INCLUDES", default="cmake/conan_provider.cmake" }
CONAN_INSTALL_ARGS = { env="HICTKPY_CONAN_INSTALL_ARGS", default="--settings=compiler.cppstd=17;--settings=build_type=Release;--build=missing;--update;--options=*/*:shared=False" }
HICTK_BUILD_BENCHMARKS = "OFF"
HICTK_BUILD_EXAMPLES = "OFF"
HICTK_BUILD_TOOLS = "OFF"
HICTK_ENABLE_FUZZY_TESTING = "OFF"
HICTK_ENABLE_GIT_VERSION_TRACKING = "OFF"
HICTK_ENABLE_TESTING = "OFF"
HICTK_WITH_ARROW = "ON"
HICTK_WITH_EIGEN = "ON"
[tool.setuptools_scm]
write_to = "src/_version.py"
[tool.pytest.ini_options]
minversion = "8.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = [
"error",
"ignore:(ast.Str|Attribute s|ast.NameConstant|ast.Num) is deprecated:DeprecationWarning:_pytest",
"ignore:datetime\\.datetime\\.utcfromtimestamp\\(\\)*:DeprecationWarning", # https://github.com/pytest-dev/pytest/issues/11528
]
python_files = [
"test/test*.py"
]
testpaths = [
"test/"
]
[tool.cibuildwheel]
build-frontend = "build"
manylinux-x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64:2024.11.09-1"
manylinux-i686-image = "quay.io/pypa/manylinux_2_28_i686:2024.11.09-1"
manylinux-aarch64-image = "quay.io/pypa/manylinux_2_28_aarch64:2024.11.09-1"
manylinux-ppc64le-image = "quay.io/pypa/manylinux_2_28_ppc64le:2024.11.09-1"
manylinux-s390x-image = "quay.io/pypa/manylinux_2_28_s390x:2024.11.09-1"
manylinux-pypy_x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64:2024.11.09-1"
manylinux-pypy_i686-image = "quay.io/pypa/manylinux_2_28_i686:2024.11.09-1"
manylinux-pypy_aarch64-image = "quay.io/pypa/manylinux_2_28_aarch64:2024.11.09-1"
skip = ["cp314*", "*musllinux*", "pp*"]
test-command = "python -m pytest {project}/test"
test-extras = ["test", "numpy", "pandas", "pyarrow", "scipy"]
test-skip = ["cp314*", "*universal2", "pp*"]
# Setuptools bug causes collision between pypy and cpython artifacts
before-build = [
"rm -rf '{project}/build'",
]
# We are using static linking, thus repairing wheels should not be necessary.
# Exception being when building portable Linux wheels.
# See https://github.com/scikit-build/scikit-build-core/pull/698#issuecomment-2082991257
[tool.cibuildwheel.macos]
repair-wheel-command = ""
[tool.cibuildwheel.windows]
repair-wheel-command = ""
[tool.ruff]
extend-select = [
"B", # flake8-bugbear
"B904",
"I", # isort
"PGH", # pygrep-hooks
"RUF", # Ruff-specific
"UP", # pyupgrade
]
extend-ignore = [
"E501", # Line too long
]
target-version = "py39"
[tool.black]
line-length = 120
target-version = ["py39"]
[tool.isort]
profile = "black"