Skip to content

Commit

Permalink
try remove typing extension from dependency and try running on py312 env
Browse files Browse the repository at this point in the history
  • Loading branch information
Guest400123064 committed Apr 27, 2024
1 parent 6c87844 commit 3b41ef7
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- name: Support longpaths
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![codecov](https://codecov.io/gh/Guest400123064/bbm25-haystack/graph/badge.svg?token=IGRIRBHZ3U)](https://codecov.io/gh/Guest400123064/bbm25-haystack)
[![code style - Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)](https://github.com/python/mypy)
[![Python 3.9](https://img.shields.io/badge/python-3.9%20|%203.10%20|%203.11-blue.svg)](https://www.python.org/downloads/release/python-390/)
[![Python 3.9](https://img.shields.io/badge/python-3.9%20|%203.10%20|%203.11%20|%203.12-blue.svg)](https://www.python.org/downloads/release/python-390/)

# Better BM25 In-Memory Document Store

Expand Down
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ build-backend = "hatchling.build"
[project]
name = "bbm25-haystack"
dynamic = ["version"]
description = 'Haystack 2.x In-memory Document Store with Enhanced Efficiency'
description = 'Haystack 2.x In-memory BM25 Document Store with Enhanced Efficiency'
readme = "README.md"
requires-python = ">=3.9"
license = "Apache-2.0"
keywords = ["Document Search", "BM25", "LLM Agent", "RAG", "Haystack"]
authors = [
{ name = "Yuxuan Wang", email = "[email protected]" },
{ name = "Guest400123064", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"haystack-ai",
"sentencepiece",
"typing_extensions",
]

[project.urls]
Expand All @@ -41,6 +41,7 @@ dependencies = [
"coverage[toml]>=6.5",
"pytest",
"pytest-cov",
"hypothesis",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
Expand All @@ -55,7 +56,7 @@ cov = [
]

[[tool.hatch.envs.all.matrix]]
python = ["3.9", "3.10", "3.11"]
python = ["3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.lint]
detached = true
Expand Down
2 changes: 1 addition & 1 deletion src/bbm25_haystack/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]>
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion src/bbm25_haystack/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]>
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
from bbm25_haystack.bbm25_retriever import BetterBM25Retriever
Expand Down
2 changes: 1 addition & 1 deletion src/bbm25_haystack/bbm25_retriever.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]>
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
from typing import Any, Optional
Expand Down
2 changes: 1 addition & 1 deletion src/bbm25_haystack/bbm25_store.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]>
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
import heapq
Expand Down
2 changes: 1 addition & 1 deletion src/bbm25_haystack/filters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]>
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
from collections.abc import Iterable
Expand Down
2 changes: 1 addition & 1 deletion tests/test_document_store.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]>
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
import pandas as pd
Expand Down
2 changes: 1 addition & 1 deletion tests/test_retriever.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Yuxuan Wang <[email protected]>
# SPDX-FileCopyrightText: 2024-present Guest400123064 <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
from typing import Any
Expand Down

0 comments on commit 3b41ef7

Please sign in to comment.