Skip to content

Commit

Permalink
Cleanups (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd authored Jan 30, 2024
1 parent baa9b85 commit e9a4d01
Show file tree
Hide file tree
Showing 12 changed files with 1,133 additions and 1,100 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ repos:
hooks:
- id: clang-format
args: [--style=LLVM]
files: 'pantab/src/(.*)'
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)

if (MSVC)
else()
add_compile_options(-Wall -Wextra)
add_compile_options(-Wall -Wextra -Werror)
endif()

find_package(Python COMPONENTS Interpreter Development.Module NumPy REQUIRED)
Expand Down
4 changes: 2 additions & 2 deletions asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
// "install_command": ["in-dir={env_dir} python -mpip install {wheel_file}"],
// "uninstall_command": ["return-code=any python -mpip uninstall -y {project}"],
"build_command": [
"python -m pip install build",
"python -m build --wheel -o {build_cache_dir} {build_dir}",
"python -m pip install build",
"python -m build --wheel -o {build_cache_dir} {build_dir}",
],

// List of branches to benchmark. If not provided, defaults to "master"
Expand Down
8 changes: 7 additions & 1 deletion src/pantab/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
nanobind_add_module(libpantab NOMINSIZE libpantab.cpp numpy_datetime.cpp)
nanobind_add_module(
libpantab
NOMINSIZE
libpantab.cpp
reader.cpp
writer.cpp
numpy_datetime.cpp)
target_include_directories(libpantab PUBLIC ${Python_NumPy_INCLUDE_DIRS})
target_link_libraries(libpantab
PRIVATE Tableau::tableauhyperapi-cxx
Expand Down
Loading

0 comments on commit e9a4d01

Please sign in to comment.