|
| 1 | +[build-system] |
| 2 | +requires = ["scikit_build_core", "pybind11"] |
| 3 | +build-backend = "scikit_build_core.build" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "teaserpp_python" |
| 7 | +version = "1.1.0" |
| 8 | +description = "Python binding for TEASER++" |
| 9 | +readme = "README.md" |
| 10 | +authors = [ |
| 11 | + { name = "Jingnan Shi", email = "[email protected]" }, |
| 12 | +] |
| 13 | +keywords = [ |
| 14 | + "Point cloud", |
| 15 | + "Registration", |
| 16 | + "Non-minimal solver", |
| 17 | + "Solver", |
| 18 | +] |
| 19 | +classifiers = [ |
| 20 | + "Intended Audience :: Developers", |
| 21 | + "Intended Audience :: Education", |
| 22 | + "Intended Audience :: Other Audience", |
| 23 | + "Intended Audience :: Science/Research", |
| 24 | + "License :: OSI Approved :: MIT License", |
| 25 | + "Operating System :: MacOS", |
| 26 | + "Operating System :: Microsoft :: Windows", |
| 27 | + "Operating System :: Unix", |
| 28 | + "Programming Language :: C++", |
| 29 | + "Programming Language :: Python :: 3", |
| 30 | + "Programming Language :: Python :: 3.6", |
| 31 | + "Programming Language :: Python :: 3.7", |
| 32 | + "Programming Language :: Python :: 3.8", |
| 33 | + "Programming Language :: Python :: 3.9", |
| 34 | + "Programming Language :: Python :: 3.10", |
| 35 | + "Programming Language :: Python :: 3.11", |
| 36 | + "Programming Language :: Python :: 3.12", |
| 37 | + "Programming Language :: Python :: 3.13", |
| 38 | +] |
| 39 | +dependencies = [ |
| 40 | + "numpy", |
| 41 | + "typing-extensions~=4.2", |
| 42 | +] |
| 43 | + |
| 44 | +[project.urls] |
| 45 | +Homepage = "https://github.com/MIT-SPARK/TEASER-plusplus" |
| 46 | + |
| 47 | +[tool.scikit-build] |
| 48 | +build-dir = "build/{wheel_tag}" |
| 49 | +build.verbose = false |
| 50 | +cmake.version = ">=3.16" |
| 51 | +wheel.install-dir = "teaserpp_python.libs" |
| 52 | + |
| 53 | +[tool.cibuildwheel] |
| 54 | +archs = ["auto64"] |
| 55 | +skip = ["*-musllinux*", "pp*", "cp36-*"] |
| 56 | + |
| 57 | +[tool.cibuildwheel.macos] |
| 58 | +environment = "MACOSX_DEPLOYMENT_TARGET=10.14" |
| 59 | +archs = ["auto64", "arm64"] |
| 60 | + |
| 61 | +[tool.pyright] |
| 62 | +venvPath = "." |
| 63 | +venv = ".venv" |
| 64 | + |
| 65 | +typeCheckingMode = "standard" |
| 66 | +reportUnusedImport = "none" |
| 67 | +reportUnusedFunction = "none" |
| 68 | +reportUnusedVariable = "none" |
| 69 | +reportUndefinedVariable = "none" |
| 70 | + |
| 71 | + |
| 72 | +[tool.ruff] |
| 73 | +# Exclude a variety of commonly ignored directories. |
| 74 | +exclude = [ |
| 75 | + ".bzr", |
| 76 | + ".direnv", |
| 77 | + ".eggs", |
| 78 | + ".git", |
| 79 | + ".git-rewrite", |
| 80 | + ".hg", |
| 81 | + ".ipynb_checkpoints", |
| 82 | + ".mypy_cache", |
| 83 | + ".nox", |
| 84 | + ".pants.d", |
| 85 | + ".pyenv", |
| 86 | + ".pytest_cache", |
| 87 | + ".pytype", |
| 88 | + ".ruff_cache", |
| 89 | + ".svn", |
| 90 | + ".tox", |
| 91 | + ".venv", |
| 92 | + ".vscode", |
| 93 | + "__pypackages__", |
| 94 | + "_build", |
| 95 | + "buck-out", |
| 96 | + "build", |
| 97 | + "dist", |
| 98 | + "node_modules", |
| 99 | + "site-packages", |
| 100 | + "venv", |
| 101 | +] |
| 102 | + |
| 103 | +# Same as Black. |
| 104 | +line-length = 88 |
| 105 | +indent-width = 4 |
| 106 | + |
| 107 | +# Assume Python 3.9 |
| 108 | +target-version = "py39" |
| 109 | + |
| 110 | +[tool.ruff.lint] |
| 111 | +# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. |
| 112 | +# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or |
| 113 | +# McCabe complexity (`C901`) by default. |
| 114 | +select = ["E", "F", "I001"] |
| 115 | +ignore = [] |
| 116 | + |
| 117 | +# Allow fix for all enabled rules (when `--fix`) is provided. |
| 118 | +fixable = ["ALL"] |
| 119 | +unfixable = [] |
| 120 | + |
| 121 | +# Allow unused variables when underscore-prefixed. |
| 122 | +dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" |
| 123 | + |
| 124 | +[tool.ruff.format] |
| 125 | +# Like Black, use double quotes for strings. |
| 126 | +quote-style = "double" |
| 127 | + |
| 128 | +# Like Black, indent with spaces, rather than tabs. |
| 129 | +indent-style = "space" |
| 130 | + |
| 131 | +# Like Black, respect magic trailing commas. |
| 132 | +skip-magic-trailing-comma = false |
| 133 | + |
| 134 | +# Like Black, automatically detect the appropriate line ending. |
| 135 | +line-ending = "auto" |
| 136 | + |
| 137 | +# Enable auto-formatting of code examples in docstrings. Markdown, |
| 138 | +# reStructuredText code/literal blocks and doctests are all supported. |
| 139 | +# |
| 140 | +# This is currently disabled by default, but it is planned for this |
| 141 | +# to be opt-out in the future. |
| 142 | +docstring-code-format = true |
| 143 | + |
| 144 | +# Set the line length limit used when formatting code snippets in |
| 145 | +# docstrings. |
| 146 | +# |
| 147 | +# This only has an effect when the `docstring-code-format` setting is |
| 148 | +# enabled. |
| 149 | +docstring-code-line-length = "dynamic" |
| 150 | + |
| 151 | +[dependency-groups] |
| 152 | +dev = [ |
| 153 | + "basedpyright>=1.22.0", |
| 154 | + "ruff>=0.8.1", |
| 155 | +] |
0 commit comments