Nico Krapp 2024-09-04 15:34:09 +00:00 committed by Git OBS Bridge
commit 69af291835
6 changed files with 104 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

9
python-rank-bm25.changes Normal file
View File

@ -0,0 +1,9 @@
-------------------------------------------------------------------
Wed Sep 4 15:18:42 UTC 2024 - Meera Belur <mbelur@suse.com>
- Rename github source tarball
-------------------------------------------------------------------
Fri Aug 30 16:33:36 UTC 2024 - Meera Belur <mbelur@suse.com>
- Initial Package

65
python-rank-bm25.spec Normal file
View File

@ -0,0 +1,65 @@
#
# spec file for package python-rank-bm25
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-rank-bm25
Version: 0.2.2
Release: 0
Summary: Various BM25 algorithms for document ranking
License: Apache-2.0
URL: https://github.com/dorianbrown/rank_bm25
Group: Development/Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/r/rank-bm25/rank_bm25-%{version}.tar.gz
Source1: https://github.com/dorianbrown/rank_bm25/archive/refs/tags/%{version}.tar.gz#/rank-bm25-%{version}-gh.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: %{python_module pytest}
Requires: %{python_module numpy}
BuildArch: noarch
%python_subpackages
%description
Rank-BM25: A two line search engine
A collection of algorithms for querying a set of documents and returning the ones most relevant to the query. The most common use case for these algorithms is, as you might have guessed, to create search engines.
%prep
%autosetup -p1 -n rank_bm25-%{version}
# version.py and tests are not included in the tarball from pypi
(cd ..; tar xf %{SOURCE1} rank_bm25-%{version}/{version.py,tests})
# Fix non-executable scripts
sed -i "s|^#!.*||" rank_bm25.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests
%files %{python_files}
%license LICENSE
%{python_sitelib}/rank_bm25.*
%{python_sitelib}/rank_bm25-%{version}.dist-info
%pycache_only %{python_sitelib}/__pycache__/*.pyc
%changelog

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:53f557974936b76228892d20cb89c0227eed27c2773fc3c9e68bbb7e8eebefee
size 10159

3
rank_bm25-0.2.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:096ccef76f8188563419aaf384a02f0ea459503fdf77901378d4fd9d87e5e51d
size 8347