Skip to content

Commit

Permalink
[BREAKING CHANGE]: rename docling_parse to pdf_parsers
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Staar <[email protected]>
  • Loading branch information
PeterStaar-IBM committed Dec 4, 2024
1 parent c31e0ac commit a2498df
Show file tree
Hide file tree
Showing 13 changed files with 791 additions and 607 deletions.
28 changes: 26 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,42 @@ repos:
hooks:
- id: system
name: Black
entry: poetry run black docling_parse
entry: poetry run black docling_parse tests
pass_filenames: false
language: system
files: '\.py$'
- repo: local
hooks:
- id: system
name: isort
entry: poetry run isort docling_parse
entry: poetry run isort docling_parse tests
pass_filenames: false
language: system
files: '\.py$'
- repo: local
hooks:
- id: autoflake
name: autoflake
entry: poetry run autoflake docling_parse
pass_filenames: false
language: system
files: '\.py$'
- repo: local
hooks:
- id: mypy
name: MyPy
entry: poetry run mypy docling_parse tests
pass_filenames: false
language: system
files: '\.py$'
# - repo: local
# hooks:
# - id: pytest
# name: Pytest
# entry: poetry run pytest tests/
# pass_filenames: false
# language: system
# files: '\.py$'
- repo: local
hooks:
- id: system
Expand Down
18 changes: 12 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,18 +192,24 @@ target_link_libraries(parse_v2 ${DEPENDENCIES} ${LIB_LINK})
# https://pybind11.readthedocs.io/en/stable/compiling.html#configuration-variables
find_package(pybind11 CONFIG REQUIRED)

pybind11_add_module(docling_parse "${TOPLEVEL_PREFIX_PATH}/app/pybind_parse.cpp")
#pybind11_add_module(docling_parse "${TOPLEVEL_PREFIX_PATH}/app/pybind_parse.cpp")
pybind11_add_module(pdf_parsers "${TOPLEVEL_PREFIX_PATH}/app/pybind_parse.cpp")

add_dependencies(docling_parse parse_v1 parse_v2)
#add_dependencies(docling_parse parse_v1 parse_v2)
add_dependencies(pdf_parsers parse_v1 parse_v2)

target_include_directories(docling_parse INTERFACE ${DEPENDENCIES})
#target_include_directories(docling_parse INTERFACE ${DEPENDENCIES})
target_include_directories(pdf_parsers INTERFACE ${DEPENDENCIES})

target_compile_definitions(docling_parse PRIVATE VERSION_INFO=${CMAKE_PROJECT_VERSION})
#target_compile_definitions(docling_parse PRIVATE VERSION_INFO=${CMAKE_PROJECT_VERSION})
target_compile_definitions(pdf_parsers PRIVATE VERSION_INFO=${CMAKE_PROJECT_VERSION})

target_link_libraries(docling_parse PRIVATE parse_v1 parse_v2)
#target_link_libraries(docling_parse PRIVATE parse_v1 parse_v2)
target_link_libraries(pdf_parsers PRIVATE parse_v1 parse_v2)

# *****************
# *** Install ***
# *****************

install(TARGETS docling_parse DESTINATION "${TOPLEVEL_PREFIX_PATH}/docling_parse")
#install(TARGETS docling_parse DESTINATION "${TOPLEVEL_PREFIX_PATH}/docling_parse")
install(TARGETS pdf_parsers DESTINATION "${TOPLEVEL_PREFIX_PATH}/docling_parse")
Loading

0 comments on commit a2498df

Please sign in to comment.