-
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.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 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,31 @@ | ||
from __future__ import annotations | ||
|
||
import pathlib | ||
from metapkg import targets | ||
from edgedbpkg import edgedb_ext | ||
|
||
|
||
class Vectorstore(edgedb_ext.EdgeDBExtension): | ||
title = "edgedb vectorstore extension" | ||
ident = "edbext-vectorstore" | ||
description = ( | ||
"Premade types to use EdgeDB as a vectorstore with AI frameworks" | ||
) | ||
license_id = "Apache-2.0" | ||
group = "Applications/Databases" | ||
|
||
sources = [ | ||
{ | ||
"url": "git+https://github.com/edgedb/edgedb-vectorstore.git", | ||
"extras": {}, | ||
}, | ||
] | ||
|
||
def get_make_install_destdir_subdir( | ||
self, | ||
build: targets.Build, | ||
) -> pathlib.Path: | ||
if build.target.is_portable(): | ||
return build.get_rel_install_prefix(self) | ||
else: | ||
return super().get_make_install_destdir_subdir(build) |
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,4 @@ | ||
{prefix}/*.toml | ||
{prefix}/*.edgeql | ||
{datadir}/data/extensions/{name}-{version}/*.toml | ||
{datadir}/data/extensions/{name}-{version}/*.edgeql |
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,2 @@ | ||
{prefix}/LICENSE* | ||
{datadir}/data/extensions/{name}-{version}/LICENSE* |