-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-dot-recall
- Loading branch information
Showing
26 changed files
with
1,476 additions
and
1,348 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Annoy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
os: ["ubuntu-20.04", "macos-latest", "windows-latest"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 # Pull the repository | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- run: pip install . | ||
- run: pip install h5py numpy pytest | ||
- run: pytest -v |
This file was deleted.
Oops, something went wrong.
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,21 +1,33 @@ | ||
cmake_minimum_required(VERSION 3.14) | ||
cmake_minimum_required(VERSION 3.15...3.25 FATAL_ERROR) | ||
|
||
project(Annoy | ||
DESCRIPTION "Approximate Nearest Neighbors Oh Yeah" | ||
VERSION 1.17.0 | ||
LANGUAGES CXX | ||
) | ||
DESCRIPTION "Approximate Nearest Neighbors Oh Yeah" | ||
VERSION 1.17.1 | ||
LANGUAGES CXX) | ||
|
||
add_library(Annoy INTERFACE) | ||
add_library(Annoy::Annoy ALIAS Annoy) | ||
|
||
set(ANNOY_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include/annoy) | ||
file(MAKE_DIRECTORY ${ANNOY_INCLUDE_DIR}) | ||
foreach (HEADER annoylib.h kissrandom.h mman.h) | ||
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/src/${HEADER} DESTINATION ${ANNOY_INCLUDE_DIR}) | ||
endforeach() | ||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/${HEADER}" "${CMAKE_CURRENT_BINARY_DIR}/include/annoy/${HEADER}" COPYONLY) | ||
endforeach () | ||
|
||
target_include_directories(Annoy INTERFACE | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include> | ||
$<INSTALL_INTERFACE:include>) | ||
|
||
# Install | ||
include(GNUInstallDirs) | ||
|
||
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/ | ||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) | ||
|
||
target_include_directories(Annoy INTERFACE include/) | ||
install(TARGETS Annoy | ||
EXPORT AnnoyTargets) | ||
|
||
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) | ||
# Add Python set-up code here. | ||
endif() | ||
install(EXPORT AnnoyTargets | ||
FILE AnnoyConfig.cmake | ||
NAMESPACE Annoy:: | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/annoy) | ||
|
||
export(TARGETS Annoy NAMESPACE Annoy:: FILE AnnoyConfig.cmake) |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.