forked from pool/python-pylast
- Update to 5.5.0 * Add py.typed and "Typing :: Typed" classifier (#476) * Update types and run mypy on GitHub Actions (#478) * Double read timeout to fix 'The read operation timed out' (#477) - from version 5.4.0 * Add support for Python 3.14 and PyPy3.11 (#473) * Add type hints using autotyping (#463) * Drop support for Python 3.8 (#461) * Replace deprecated classifier with licence expression (PEP 639) (#475) * Generate __version__ at build to avoid slow importlib.metadata (#460) * Remove unnecessary start=0 from range() (#474) * Replace pre-commit/action with faster tox-dev/action-pre-commit-uv (#465) OBS-URL: https://build.opensuse.org/request/show/1254369 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylast?expand=0&rev=30
83 lines
2.5 KiB
RPMSpec
83 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python-pylast
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-pylast
|
|
Version: 5.5.0
|
|
Release: 0
|
|
Summary: A python interface to Last.fm
|
|
License: Apache-2.0
|
|
URL: https://github.com/pylast/pylast
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pylast/pylast-%{version}.tar.gz
|
|
BuildRequires: %{python_module hatch_vcs}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
Requires: python-httpx
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module coverage}
|
|
BuildRequires: %{python_module flaky}
|
|
BuildRequires: %{python_module httpx}
|
|
BuildRequires: %{python_module pyaml}
|
|
BuildRequires: %{python_module pycodestyle}
|
|
BuildRequires: %{python_module pyflakes}
|
|
BuildRequires: %{python_module pytest}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
A Python interface to Last.fm and other API-compatible websites such as Libre.fm
|
|
|
|
Features:
|
|
- Simple public interface.
|
|
- Access to all the data exposed by the Last.fm webservices.
|
|
- Scrobbling support.
|
|
- Full object-oriented design.
|
|
- Proxy support.
|
|
- Internal caching support for some webservices calls (disabled by default).
|
|
- No extra dependencies but python itself.
|
|
- Support for other API-compatible networks like Libre.fm
|
|
- Python3-friendly (Starting from 0.5).
|
|
|
|
%prep
|
|
%setup -q -n pylast-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}/%{python_sitelib}
|
|
|
|
%check
|
|
# every test file has:
|
|
# Integration (not unit) tests for pylast.py
|
|
# almost all skipped, need internet access
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license COPYING
|
|
%dir %{python_sitelib}/pylast
|
|
%{python_sitelib}/pylast
|
|
%{python_sitelib}/pylast-%{version}.dist-info
|
|
|
|
%changelog
|