diff --git a/0001-add-setup.py.patch b/0001-add-setup.py.patch new file mode 100644 index 0000000000000000000000000000000000000000..b707b1f0647dfafa575511a665857625e1d8d550 --- /dev/null +++ b/0001-add-setup.py.patch @@ -0,0 +1,51 @@ +--- c/setup.py 1970-01-01 08:00:00.000000000 +0800 ++++ a/setup.py 2022-11-07 15:41:34.959687524 +0800 +@@ -0,0 +1,48 @@ ++from setuptools import find_packages, setup ++ ++with open("README.md") as f: ++ long_description = f.read() ++ ++ ++def local_scheme(version): ++ """Skip the local version (eg. +xyz of 0.6.1.dev4+gdf99fe2) ++ to be able to upload to Test PyPI""" ++ return "" ++ ++ ++setup( ++ name="pylast", ++ description="A Python interface to Last.fm and Libre.fm", ++ long_description=long_description, ++ long_description_content_type="text/markdown", ++ author="Amr Hassan and Contributors", ++ author_email="amr.hassan@gmail.com", ++ url="https://github.com/pylast/pylast", ++ license="Apache-2.0", ++ keywords=["Last.fm", "music", "scrobble", "scrobbling"], ++ packages=find_packages(where="src"), ++ package_dir={"": "src"}, ++ use_scm_version={"local_scheme": local_scheme}, ++ setup_requires=["setuptools_scm"], ++ extras_require={ ++ "tests": ["flaky", "pytest", "pytest-cov", "pytest-random-order", "pyyaml"] ++ }, ++ python_requires=">=3.7", ++ classifiers = [ ++ "Development Status :: 5 - Production/Stable", ++ "License :: OSI Approved :: Apache Software License", ++ "Programming Language :: Python :: 3", ++ "Programming Language :: Python :: 3 :: Only", ++ "Programming Language :: Python :: 3.7", ++ "Programming Language :: Python :: 3.8", ++ "Programming Language :: Python :: 3.9", ++ "Programming Language :: Python :: 3.10", ++ "Programming Language :: Python :: 3.11", ++ "Programming Language :: Python :: Implementation :: CPython", ++ "Programming Language :: Python :: Implementation :: PyPy", ++ "Topic :: Internet", ++ "Topic :: Multimedia :: Sound/Audio", ++ "Topic :: Software Development :: Libraries :: Python Modules", ++] ++ ++) diff --git a/pylast-4.2.1.tar.gz b/pylast-4.2.1.tar.gz deleted file mode 100644 index 34f06edff0e66ef11ee606b31f7224e48e2afadd..0000000000000000000000000000000000000000 Binary files a/pylast-4.2.1.tar.gz and /dev/null differ diff --git a/pylast-5.1.0.tar.gz b/pylast-5.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..652cb385979037cfaab52d7734c168aab6ecfab0 Binary files /dev/null and b/pylast-5.1.0.tar.gz differ diff --git a/python-pylast.spec b/python-pylast.spec index 08dbe83a9e606eaa18f66d69753a34ff7348c5de..c8ea7f498a605e84dc42427b691b997da18ab2ca 100644 --- a/python-pylast.spec +++ b/python-pylast.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-pylast -Version: 4.2.1 -Release: 2 +Version: 5.1.0 +Release: 1 Summary: A Python interface to Last.fm and Libre.fm License: Apache-2.0 URL: https://github.com/pylast/pylast -Source0: https://files.pythonhosted.org/packages/fc/1d/521b850ae5ce6ec5f43f9f9178028ed68ed854f99ac1ca71ba366371aefe/pylast-4.2.1.tar.gz +Source0: https://files.pythonhosted.org/packages/cf/2e/6e6bf26d26a2f3b8c66ddb617a854a3ca933f9ef028b1e7f7f962c0ed1c3/pylast-5.1.0.tar.gz +Patch0: 0001-add-setup.py.patch BuildArch: noarch Requires: python3-flaky @@ -19,21 +20,24 @@ A Python interface to Last.fm (and other API compatible social networks). %package -n python3-pylast Summary: A Python interface to Last.fm and Libre.fm -Provides: python-pylast +Provides: python-pylast = %{version}-%{release} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm + %description -n python3-pylast A Python interface to Last.fm (and other API compatible social networks). %package help Summary: Development documents and examples for pylast Provides: python3-pylast-doc + %description help A Python interface to Last.fm (and other API compatible social networks). %prep -%autosetup -n pylast-4.2.1 +%autosetup -n pylast-%{version} +%patch0 %build %py3_build @@ -73,8 +77,12 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Mon Nov 07 2022 wangjunqi - 5.1.0-1 +- Update package to version 5.1.0 + * Fri May 20 2022 liukuo - 4.2.1-2 - License compliance rectification * Wed Sep 29 2021 Python_Bot - 4.2.1-1 - Package Init +