Skip to content

Commit 2932abb

Browse files
committed
init structure
1 parent e592d26 commit 2932abb

File tree

9 files changed

+51
-0
lines changed

9 files changed

+51
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
### Python ###
55
# Byte-compiled / optimized / DLL files
6+
.DS_Store
67
__pycache__/
78
*.py[cod]
89
*$py.class

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include readme.md

memory_benchmark/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
__author__ = "Memobase"
2+
__version__ = "0.0.1.dev0"
3+
__url__ = "https://github.com/memodb-io/memory-benchmark"
4+
5+
6+
print("Not ready")

memory_benchmark/datasets/__init__.py

Whitespace-only changes.

memory_benchmark/llms/__init__.py

Whitespace-only changes.

memory_benchmark/methods/__init__.py

Whitespace-only changes.

readme.md

Whitespace-only changes.

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
openai
2+
memobase
3+
transformers

setup.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import setuptools
2+
from setuptools import find_packages
3+
4+
with open("readme.md", "r") as fh:
5+
long_description = fh.read()
6+
7+
8+
vars2find = ["__author__", "__version__", "__url__"]
9+
vars2readme = {}
10+
with open("./memory_benchmark/__init__.py") as f:
11+
for line in f.readlines():
12+
for v in vars2find:
13+
if line.startswith(v):
14+
line = line.replace(" ", "").replace('"', "").replace("'", "").strip()
15+
vars2readme[v] = line.split("=")[1]
16+
17+
deps = []
18+
with open("./requirements.txt") as f:
19+
for line in f.readlines():
20+
if not line.strip():
21+
continue
22+
deps.append(line.strip())
23+
24+
setuptools.setup(
25+
name="memory-benchmark",
26+
url=vars2readme["__url__"],
27+
version=vars2readme["__version__"],
28+
author=vars2readme["__author__"],
29+
description="A unified benchmark framework for long-term memory",
30+
long_description=long_description,
31+
long_description_content_type="text/markdown",
32+
packages=find_packages(exclude=["tests"]),
33+
classifiers=[
34+
"Programming Language :: Python :: 3",
35+
"License :: OSI Approved :: MIT License",
36+
"Operating System :: OS Independent",
37+
],
38+
python_requires=">=3.11",
39+
install_requires=deps,
40+
)

0 commit comments

Comments
 (0)