14
0
forked from pool/python-trakit

Required by python-knowit (2nd attempt)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-trakit?expand=0&rev=1
This commit is contained in:
2025-05-15 20:31:19 +00:00
committed by Git OBS Bridge
commit 22e7be1ef3
5 changed files with 112 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-trakit.changes Normal file
View File

@@ -0,0 +1,9 @@
-------------------------------------------------------------------
Mon May 12 12:58:42 UTC 2025 - Luigi Baldoni <aloisio@gmx.com>
- Switch to github tarball to have test support
-------------------------------------------------------------------
Sat May 3 08:06:47 UTC 2025 - Luigi Baldoni <aloisio@gmx.com>
- Initial package (v0.2.2)

76
python-trakit.spec Normal file
View File

@@ -0,0 +1,76 @@
#
# spec file for package python-trakit
#
# Copyright (c) 2025 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/
#
Name: python-trakit
Version: 0.2.2
Release: 0
Summary: Guess additional information from track titles
License: MIT
URL: https://github.com/ratoaq2/trakit
Source0: https://github.com/ratoaq2/trakit/archive/refs/tags/%{version}.tar.gz#/trakit-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
# TEST requirements
BuildRequires: %{python_module PyYAML >= 6.0}
BuildRequires: %{python_module Unidecode}
BuildRequires: %{python_module babelfish >= 0.6.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rebulk >= 3.1.0}
# /TEST
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-babelfish >= 0.6.0
Requires: python-rebulk >= 3.1.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-PyYAML >= 6.0
BuildArch: noarch
%python_subpackages
%description
TrakIt is a track name parser created to solve a common, yet very specific
problem, that is vagueness in metadata information.
%prep
%autosetup -n trakit-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/trakit
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -k 'not test_generate_config'
%post
%python_install_alternative trakit
%postun
%python_uninstall_alternative trakit
%files %{python_files}
%license LICENSE
%doc README.md
%python_alternative %{_bindir}/trakit
%{python_sitelib}/trakit
%{python_sitelib}/trakit-%{version}.dist-info
%changelog

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

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2ac726a4eb70ed3869a02e6a7d10c8fe192ac735f0ae1fa7c45589fff0a8cd39
size 43207