From 0fed771a909b95969c4efeecc4a515f001210523e666c387cc091b16bfcc87df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 29 Apr 2019 07:21:22 +0000 Subject: [PATCH] Accepting request 698127 from home:pgajdos - version update to 3.1.0 * Extract username from session via new SessionKeyGenerator.get_web_auth_session_key_username (#290) * User.get_track_scrobbles (#298) * User.get_artist_tracks. Use User.get_track_scrobbles as a partial replacement. (#298) - python3 only package OBS-URL: https://build.opensuse.org/request/show/698127 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylast?expand=0&rev=8 --- pylast-1.8.0.tar.gz | 3 --- pylast-3.1.0.tar.gz | 3 +++ python-pylast.changes | 11 +++++++++++ python-pylast.spec | 23 ++++++++++++++++++++--- 4 files changed, 34 insertions(+), 6 deletions(-) delete mode 100644 pylast-1.8.0.tar.gz create mode 100644 pylast-3.1.0.tar.gz diff --git a/pylast-1.8.0.tar.gz b/pylast-1.8.0.tar.gz deleted file mode 100644 index c416ae1..0000000 --- a/pylast-1.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:85f8dd96aef0ccba5f80379c3d7bc1fabd72f59aebab040daf40a8b72268f9bd -size 42687 diff --git a/pylast-3.1.0.tar.gz b/pylast-3.1.0.tar.gz new file mode 100644 index 0000000..05e7de6 --- /dev/null +++ b/pylast-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7eb58682beccc0052c3284aba64a9a6454b5e89706f789ebeb2403dc1045606a +size 34551 diff --git a/python-pylast.changes b/python-pylast.changes index 25f9ceb..026e329 100644 --- a/python-pylast.changes +++ b/python-pylast.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Apr 26 08:55:22 UTC 2019 - pgajdos@suse.com + +- version update to 3.1.0 + * Extract username from session via new + SessionKeyGenerator.get_web_auth_session_key_username (#290) + * User.get_track_scrobbles (#298) + * User.get_artist_tracks. Use User.get_track_scrobbles as a + partial replacement. (#298) +- python3 only package + ------------------------------------------------------------------- Tue Dec 4 12:52:25 UTC 2018 - Matej Cepl diff --git a/python-pylast.spec b/python-pylast.spec index 0b9f797..325d3fc 100644 --- a/python-pylast.spec +++ b/python-pylast.spec @@ -1,7 +1,7 @@ # # spec file for package python-pylast # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,8 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-pylast -Version: 1.8.0 +Version: 3.1.0 Release: 0 Summary: A python interface to Last.fm License: Apache-2.0 @@ -28,6 +29,15 @@ Source0: https://files.pythonhosted.org/packages/source/p/pylast/pylast-% BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module flaky} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pyaml} +BuildRequires: %{python_module pycodestyle} +BuildRequires: %{python_module pyflakes} +BuildRequires: %{python_module pytest} +# /SECTION Requires: python-six BuildArch: noarch %python_subpackages @@ -56,10 +66,17 @@ Features: %python_install %python_exec %fdupes -s %{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}-py%{py_ver}.egg-info +%{python_sitelib}/pylast-%{version}-py*.egg-info %changelog