Skip to content

Commit

Permalink
Register vectorstore package (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepbuzin authored Nov 15, 2024
1 parent f5438e3 commit d2e0853
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
31 changes: 31 additions & 0 deletions edgedbpkg/edgedb_ext/vectorstore/__init__.py
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)
4 changes: 4 additions & 0 deletions edgedbpkg/edgedb_ext/vectorstore/install.list
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
2 changes: 2 additions & 0 deletions edgedbpkg/edgedb_ext/vectorstore/no_install.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{prefix}/LICENSE*
{datadir}/data/extensions/{name}-{version}/LICENSE*

0 comments on commit d2e0853

Please sign in to comment.