Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (99 loc) · 3.39 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (99 loc) · 3.39 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
[build-system]
requires = [
"scikit-build-core>=1.0",
"setuptools-scm>=8",
"pybind11>=3.0.1,<4",
]
build-backend = "scikit_build_core.build"
[project]
dynamic = ["version"]
name = "mmcfilters"
description = "Library for connected image filtering based on morphological trees"
readme = "README.md"
authors = [{ name = "Wonder Alexandre Luz Alves", email = "wonderalexandre@gmail.com" }]
license = { file = "LICENSE" }
requires-python = ">=3.9"
dependencies = [
"numpy>=1.23",
]
keywords = ["morphological trees", "mathematical morphology", "image processing", "computer vision"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Image Processing",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: C++",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
]
[project.urls]
Homepage = "https://github.com/wonderalexandre/mmcfilters"
Documentation = "https://wonderalexandre.github.io/mmcfilters/"
Repository = "https://github.com/wonderalexandre/mmcfilters"
Issues = "https://github.com/wonderalexandre/mmcfilters/issues"
[tool.setuptools_scm]
# Write the tag-derived version into the Python package during builds.
write_to = "python/mmcfilters/_version.py"
version_scheme = "post-release"
local_scheme = "no-local-version"
# Research-artifact tags such as r1 must not define Python package versions.
git_describe_command = "git describe --dirty --tags --long --match v[0-9]*"
tag_regex = "^v?(?P<version>\\d+\\.\\d+\\.\\d+(?:[.-].*)?)$"
[tool.scikit-build]
wheel.packages = ["python/mmcfilters"]
[tool.scikit-build.cmake]
build-type = "Release"
args = [
"-DMMCFILTERS_BUILD_PYTHON=ON",
"-DMMCFILTERS_BUILD_TESTS=OFF",
"-DMMC_PYBINDS_DIR=pybinds",
]
[tool.scikit-build.cmake.define]
CMAKE_OSX_DEPLOYMENT_TARGET = "11.0"
[[tool.dynamic-metadata]]
provider = "scikit_build_core.metadata.setuptools_scm"
[tool.scikit-build.sdist]
inclusion-mode = "explicit"
include = [
"/python/**",
"/pybinds/**",
"/mmcfilters/**",
"/cmake/**",
"/docs/**",
"/examples/**",
"/external/stb/**",
"/CMakeLists.txt",
"/pyproject.toml",
"/pybind11.cmake",
"/LICENSE",
"/README.md",
]
exclude = [
"/.github/**",
"/.gitignore",
"/.pytest_cache/**",
"/.vscode/**",
"/build/**",
"/dat/**",
"/dist/**",
"/docs/refactoring/**",
"/notebooks/**",
"/python/mmcfilters/__pycache__/**",
"/python/mmcfilters/**/*.py[cod]",
"**/.ipynb_checkpoints/**",
"**/__pycache__/**",
"**/*.py[cod]",
]
[tool.cibuildwheel]
build = "cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*"
skip = "*-win32 *-manylinux_i686 *-musllinux_*"
test-requires = ["numpy"]
test-command = "python -c \"import mmcfilters, numpy as np; image = np.array([[1, 2], [3, 4]], dtype=np.uint8); tree = mmcfilters.MorphologicalTreeFactory.create_max_tree(image); names, attrs = mmcfilters.Attribute.compute_attributes(tree, [mmcfilters.Attribute.Group.ALL]); assert tree.reconstruct_from_node_altitudes().shape == image.shape; assert 'CONTOUR_PIXELS' in names and 'CONTOUR_SIDE_SOUTH' in names; assert attrs.shape[1] == len(names)\""
build-verbosity = 1