-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from tataratat/release/v0.1.0
Release/v0.1.0
Showing
13 changed files
with
2,289 additions
and
2,439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = "0.0.8" | ||
version = "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,53 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel", | ||
"pybind11", | ||
"scikit-build-core", | ||
"pybind11>=2.12", | ||
] | ||
build-backend = "scikit_build_core.build" | ||
|
||
build-backend = "setuptools.build_meta" | ||
[project] | ||
name = "napf" | ||
authors = [ | ||
{name="Jaewook Lee", email="jaewooklee042@gmail.com"} | ||
] | ||
license = {file = "LICENSE"} | ||
description = "nanoflann python bindings for kdtree with multithreaded queries" | ||
urls = {Homepage = "https://github.com/tataratat/napf"} | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Natural Language :: English", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
dependencies = ["numpy"] | ||
dynamic = ["version"] | ||
requires-python = ">=3.7" | ||
|
||
[tool.scikit-build.metadata.version] | ||
provider = "scikit_build_core.metadata.regex" | ||
input = "napf/_version.py" | ||
|
||
[tool.cibuildwheel] | ||
test-command = "python {project}/tests/test_init_and_query.py" | ||
|
||
|
||
[project.readme] | ||
file = "README.md" | ||
content-type = "text/markdown" | ||
|
||
[tool.cibuildwheel.macos] | ||
archs = ["x86_64", "arm64"] | ||
test-skip = ["*x86_64"] | ||
skip = "pp*" | ||
|
||
[tool.cibuildwheel.linux] | ||
skip = "pp*" | ||
|
||
[tool.cibuildwheel.windows] | ||
skip = "pp*" | ||
|
||
[tool.black] | ||
line-length = 79 | ||
exclude = "third_party" | ||
|
||
[tool.blackdoc] | ||
line-length = 75 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
set(NAPF_SOURCES | ||
classes/radius_search_result_vectors.cpp classes/int_trees.cpp | ||
classes/long_trees.cpp classes/float_trees.cpp classes/double_trees.cpp | ||
napf.cpp) | ||
|
||
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module) | ||
find_package(pybind11 CONFIG REQUIRED) | ||
|
||
python_add_library(_napf MODULE ${NAPF_SOURCES}) | ||
target_link_libraries(_napf PRIVATE pybind11::headers napf) | ||
target_compile_definitions(_napf PRIVATE $<$<NOT:$<CONFIG:Debug>>:NDEBUG>) | ||
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
target_compile_options(_napf PRIVATE $<$<NOT:$<CONFIG:Debug>>:-O3>) | ||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSCV") | ||
target_compile_options(_napf PRIVATE $<$<NOT:$<CONFIG:Debug>>:/O2>) | ||
endif() | ||
|
||
install( | ||
TARGETS _napf | ||
DESTINATION napf | ||
COMPONENT PythonModule) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule nanoflann
updated
5 files
+5 −0 | CHANGELOG.md | |
+30 −12 | README.md | |
+7 −0 | examples/pointcloud_custom_resultset.cpp | |
+60 −47 | include/nanoflann.hpp | |
+38 −7 | tests/test_main.cpp |
Large diffs are not rendered by default.
Oops, something went wrong.