commit python-pytaglib for openSUSE:Factory

2020-03-24 Thread root
Hello community,

here is the log from the commit of package python-pytaglib for openSUSE:Factory 
checked in at 2020-03-24 22:35:34

Comparing /work/SRC/openSUSE:Factory/python-pytaglib (Old)
 and  /work/SRC/openSUSE:Factory/.python-pytaglib.new.3160 (New)


Package is "python-pytaglib"

Tue Mar 24 22:35:34 2020 rev:6 rq:787685 version:1.4.6

Changes:

--- /work/SRC/openSUSE:Factory/python-pytaglib/python-pytaglib.changes  
2019-10-16 09:15:33.491425373 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytaglib.new.3160/python-pytaglib.changes
2020-03-24 22:37:15.625232818 +0100
@@ -1,0 +2,10 @@
+Mon Mar 23 11:44:33 UTC 2020 - pgaj...@suse.com
+
+- version update to 1.4.6
+  - fix #65: use tox for testing. Request re-cythonizing module with 
environment variable `PYTAGLIB_CYTHONIZE` instead of argument to `setup.py` now.
+  - fix #63: python2 tests did not pass
+  - fix #62: pyprinttags module did not work
+- deleted patches
+  - python-pytaglib-python2-localpath.patch (upstreamed)
+
+---

Old:

  python-pytaglib-python2-localpath.patch
  v1.4.5.tar.gz

New:

  v1.4.6.tar.gz



Other differences:
--
++ python-pytaglib.spec ++
--- /var/tmp/diff_new_pack.vbQ0on/_old  2020-03-24 22:37:16.629233306 +0100
+++ /var/tmp/diff_new_pack.vbQ0on/_new  2020-03-24 22:37:16.633233308 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytaglib
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,15 +18,12 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pytaglib
-Version:1.4.5
+Version:1.4.6
 Release:0
 Summary:Metadata "tagging" library based on TagLib
 License:GPL-3.0-only OR MIT
 URL:https://github.com/supermihi/pytaglib
 Source: 
https://github.com/supermihi/pytaglib/archive/v%{version}.tar.gz
-# https://github.com/supermihi/pytaglib/issues/63
-# fix  'LocalPath'object has no attribute 'endswith' for python2
-Patch0: python-pytaglib-python2-localpath.patch
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pytest-runner}
@@ -35,6 +32,7 @@
 BuildRequires:  gcc-c++
 BuildRequires:  libtag-devel
 BuildRequires:  python-rpm-macros
+Requires:   python-setuptools
 %python_subpackages
 
 %description
@@ -43,32 +41,37 @@
 
 %prep
 %setup -q -n "pytaglib-%{version}"
-%patch0 -p1
 # Remove pre-generated source
 rm -vf src/taglib.cpp
 sed -i -e "1d" src/pyprinttags.py
 
 %build
-%python_build "--cython"
+sed -i "s:\(script_name =\).*:\1 'pyprinttags':" setup.py
+export PYTAGLIB_CYTHONIZE=1
+%python_build
 
 %install
 %python_install
-mv %{buildroot}%{_bindir}/pyprinttags3 %{buildroot}/%{_bindir}/pyprinttags
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
-# https://github.com/supermihi/pytaglib/issues/62
-mkdir -p %{buildroot}%{python3_sitelib}
-install -m 644 src/pyprinttags.py %{buildroot}%{python3_sitelib}
+%python_clone -a %{buildroot}%{_bindir}/pyprinttags
 
 %check
 export LANG=en_US.UTF-8
-%python_exec setup.py test
+%pytest_arch
+
+%post
+%python_install_alternative pyprinttags
+
+%postun
+%python_uninstall_alternative pyprinttags
 
 %files %{python_files}
 %license COPYING
 %doc README.md
-%python3_only %{_bindir}/pyprinttags
-%python3_only %{python3_sitelib}/pyprinttags.py
 %{python_sitearch}/taglib*.so
+%{python_sitearch}/pyprinttags.*
 %{python_sitearch}/pytaglib-%{version}-py%{python_version}.egg-info/
+%pycache_only %{python_sitearch}/__pycache__/pyprinttags.*
+%python_alternative %{_bindir}/pyprinttags
 
 %changelog

++ v1.4.5.tar.gz -> v1.4.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytaglib-1.4.5/.circleci/config.yml 
new/pytaglib-1.4.6/.circleci/config.yml
--- old/pytaglib-1.4.5/.circleci/config.yml 2019-03-26 21:49:35.0 
+0100
+++ new/pytaglib-1.4.6/.circleci/config.yml 2020-02-26 19:51:52.0 
+0100
@@ -1,8 +1,14 @@
 version: 2
+workflows:
+  version: 2
+  test:
+jobs:
+  - tox
+
 jobs:
-  build:
+  tox:
 docker:
-  - image: python:3.7-stretch
+  - image: python:3.8-buster
 
 working_directory: ~/repo
 
@@ -10,32 +16,20 @@
   - checkout
   - restore_cache:
   keys:
-- v1-dependencies-{{ checksum "requirements.txt" }}
-# fallback to using the latest cache if no exact match is found
-- v1-dependencies-
-
+- v2-dependen

commit python-pytaglib for openSUSE:Factory

2019-10-16 Thread root
Hello community,

here is the log from the commit of package python-pytaglib for openSUSE:Factory 
checked in at 2019-10-16 09:15:32

Comparing /work/SRC/openSUSE:Factory/python-pytaglib (Old)
 and  /work/SRC/openSUSE:Factory/.python-pytaglib.new.2352 (New)


Package is "python-pytaglib"

Wed Oct 16 09:15:32 2019 rev:5 rq:738387 version:1.4.5

Changes:

--- /work/SRC/openSUSE:Factory/python-pytaglib/python-pytaglib.changes  
2019-05-16 22:08:42.970354816 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytaglib.new.2352/python-pytaglib.changes
2019-10-16 09:15:33.491425373 +0200
@@ -1,0 +2,5 @@
+Mon Oct 14 14:35:29 UTC 2019 - Matej Cepl 
+
+- Replace %fdupes -s with plain %fdupes; hardlinks are better.
+
+---



Other differences:
--
++ python-pytaglib.spec ++
--- /var/tmp/diff_new_pack.SZGb59/_old  2019-10-16 09:15:34.083423847 +0200
+++ /var/tmp/diff_new_pack.SZGb59/_new  2019-10-16 09:15:34.087423837 +0200
@@ -22,7 +22,6 @@
 Release:0
 Summary:Metadata "tagging" library based on TagLib
 License:GPL-3.0-only OR MIT
-Group:  Development/Libraries/Python
 URL:https://github.com/supermihi/pytaglib
 Source: 
https://github.com/supermihi/pytaglib/archive/v%{version}.tar.gz
 # https://github.com/supermihi/pytaglib/issues/63
@@ -36,7 +35,6 @@
 BuildRequires:  gcc-c++
 BuildRequires:  libtag-devel
 BuildRequires:  python-rpm-macros
-
 %python_subpackages
 
 %description
@@ -56,7 +54,7 @@
 %install
 %python_install
 mv %{buildroot}%{_bindir}/pyprinttags3 %{buildroot}/%{_bindir}/pyprinttags
-%python_expand %fdupes -s %{buildroot}%{$python_sitearch}
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
 # https://github.com/supermihi/pytaglib/issues/62
 mkdir -p %{buildroot}%{python3_sitelib}
 install -m 644 src/pyprinttags.py %{buildroot}%{python3_sitelib}




commit python-pytaglib for openSUSE:Factory

2019-05-16 Thread root
Hello community,

here is the log from the commit of package python-pytaglib for openSUSE:Factory 
checked in at 2019-05-16 22:08:41

Comparing /work/SRC/openSUSE:Factory/python-pytaglib (Old)
 and  /work/SRC/openSUSE:Factory/.python-pytaglib.new.5148 (New)


Package is "python-pytaglib"

Thu May 16 22:08:41 2019 rev:4 rq:703203 version:1.4.5

Changes:

--- /work/SRC/openSUSE:Factory/python-pytaglib/python-pytaglib.changes  
2018-08-10 09:53:38.898644889 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytaglib.new.5148/python-pytaglib.changes
2019-05-16 22:08:42.970354816 +0200
@@ -1,0 +2,10 @@
+Thu May  9 15:33:15 UTC 2019 - pgaj...@suse.com
+
+- version update to 1.4.5
+  * Fix published taglib.cpp
+  * Remove cython dependency from setup.py
+- added patches
+  fix  'LocalPath'object has no attribute 'endswith' for python2
+  + python-pytaglib-python2-localpath.patch
+
+---

Old:

  pytaglib-1.4.3.tar.gz

New:

  python-pytaglib-python2-localpath.patch
  v1.4.5.tar.gz



Other differences:
--
++ python-pytaglib.spec ++
--- /var/tmp/diff_new_pack.Jh74Oe/_old  2019-05-16 22:08:44.594353341 +0200
+++ /var/tmp/diff_new_pack.Jh74Oe/_new  2019-05-16 22:08:44.634353304 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytaglib
 #
-# 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
@@ -12,21 +12,25 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pytaglib
-Version:1.4.3
+Version:1.4.5
 Release:0
 Summary:Metadata "tagging" library based on TagLib
-License:GPL-3.0-or-later
+License:GPL-3.0-only OR MIT
 Group:  Development/Libraries/Python
 URL:https://github.com/supermihi/pytaglib
-Source: 
https://files.pythonhosted.org/packages/source/p/pytaglib/pytaglib-%{version}.tar.gz
+Source: 
https://github.com/supermihi/pytaglib/archive/v%{version}.tar.gz
+# https://github.com/supermihi/pytaglib/issues/63
+# fix  'LocalPath'object has no attribute 'endswith' for python2
+Patch0: python-pytaglib-python2-localpath.patch
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module pytest-runner}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
@@ -41,6 +45,7 @@
 
 %prep
 %setup -q -n "pytaglib-%{version}"
+%patch0 -p1
 # Remove pre-generated source
 rm -vf src/taglib.cpp
 sed -i -e "1d" src/pyprinttags.py
@@ -52,6 +57,9 @@
 %python_install
 mv %{buildroot}%{_bindir}/pyprinttags3 %{buildroot}/%{_bindir}/pyprinttags
 %python_expand %fdupes -s %{buildroot}%{$python_sitearch}
+# https://github.com/supermihi/pytaglib/issues/62
+mkdir -p %{buildroot}%{python3_sitelib}
+install -m 644 src/pyprinttags.py %{buildroot}%{python3_sitelib}
 
 %check
 export LANG=en_US.UTF-8
@@ -59,10 +67,9 @@
 
 %files %{python_files}
 %license COPYING
-%doc README.txt
+%doc README.md
 %python3_only %{_bindir}/pyprinttags
-%pycache_only %{python_sitearch}/__pycache__
-%{python_sitearch}/pyprinttags.py*
+%python3_only %{python3_sitelib}/pyprinttags.py
 %{python_sitearch}/taglib*.so
 %{python_sitearch}/pytaglib-%{version}-py%{python_version}.egg-info/
 

++ python-pytaglib-python2-localpath.patch ++
Index: pytaglib-1.4.5/tests/__init__.py
===
--- pytaglib-1.4.5.orig/tests/__init__.py   2019-03-26 21:48:08.0 
+0100
+++ pytaglib-1.4.5/tests/__init__.py2019-05-09 15:30:36.799060223 +0200
@@ -12,6 +12,6 @@ import os.path, shutil
 def copy_test_file(filename, tmpdir):
 """Make a temporary copy of test data file *name* (without dir) and return 
its full path."""
 source = os.path.join(os.path.dirname(__file__), 'data', filename)
-target = os.path.join(tmpdir, filename)
+target = os.path.join(tmpdir.strpath, filename)
 shutil.copyfile(source, target)
 return target



commit python-pytaglib for openSUSE:Factory

2018-08-10 Thread root
Hello community,

here is the log from the commit of package python-pytaglib for openSUSE:Factory 
checked in at 2018-08-10 09:53:34

Comparing /work/SRC/openSUSE:Factory/python-pytaglib (Old)
 and  /work/SRC/openSUSE:Factory/.python-pytaglib.new (New)


Package is "python-pytaglib"

Fri Aug 10 09:53:34 2018 rev:3 rq:628451 version:1.4.3

Changes:

--- /work/SRC/openSUSE:Factory/python-pytaglib/python-pytaglib.changes  
2017-07-17 09:09:35.361195452 +0200
+++ /work/SRC/openSUSE:Factory/.python-pytaglib.new/python-pytaglib.changes 
2018-08-10 09:53:38.898644889 +0200
@@ -1,0 +2,7 @@
+Wed Aug  8 23:17:52 UTC 2018 - jsi...@suse.de
+
+- Update to 1.4.3
+  * Fix accidental upload of the Windows version to PyPI. Hopefully fixes #42, 
#43.
+  * Fix #31: Don't use precompiled taglib.cpp on Windows
+
+---

Old:

  pytaglib-1.4.1.tar.gz

New:

  pytaglib-1.4.3.tar.gz



Other differences:
--
++ python-pytaglib.spec ++
--- /var/tmp/diff_new_pack.zqIuAK/_old  2018-08-10 09:53:39.306645549 +0200
+++ /var/tmp/diff_new_pack.zqIuAK/_new  2018-08-10 09:53:39.31064 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytaglib
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -18,20 +18,21 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pytaglib
-Version:1.4.1
+Version:1.4.3
 Release:0
 Summary:Metadata "tagging" library based on TagLib
-License:GPL-3.0+
+License:GPL-3.0-or-later
 Group:  Development/Libraries/Python
-Url:https://github.com/supermihi/pytaglib
+URL:https://github.com/supermihi/pytaglib
 Source: 
https://files.pythonhosted.org/packages/source/p/pytaglib/pytaglib-%{version}.tar.gz
+BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  libtag-devel
 BuildRequires:  python-rpm-macros
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+
 %python_subpackages
 
 %description
@@ -40,10 +41,12 @@
 
 %prep
 %setup -q -n "pytaglib-%{version}"
+# Remove pre-generated source
+rm -vf src/taglib.cpp
 sed -i -e "1d" src/pyprinttags.py
 
 %build
-%python_build
+%python_build "--cython"
 
 %install
 %python_install
@@ -55,8 +58,8 @@
 %python_exec setup.py test
 
 %files %{python_files}
-%defattr(-,root,root)
-%doc COPYING README.txt 
+%license COPYING
+%doc README.txt
 %python3_only %{_bindir}/pyprinttags
 %pycache_only %{python_sitearch}/__pycache__
 %{python_sitearch}/pyprinttags.py*

++ pytaglib-1.4.1.tar.gz -> pytaglib-1.4.3.tar.gz ++
 4333 lines of diff (skipped)




commit python-pytaglib for openSUSE:Factory

2017-07-17 Thread root
Hello community,

here is the log from the commit of package python-pytaglib for openSUSE:Factory 
checked in at 2017-07-17 09:09:34

Comparing /work/SRC/openSUSE:Factory/python-pytaglib (Old)
 and  /work/SRC/openSUSE:Factory/.python-pytaglib.new (New)


Package is "python-pytaglib"

Mon Jul 17 09:09:34 2017 rev:2 rq:509955 version:1.4.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pytaglib/python-pytaglib.changes  
2017-07-05 23:56:49.613853011 +0200
+++ /work/SRC/openSUSE:Factory/.python-pytaglib.new/python-pytaglib.changes 
2017-07-17 09:09:35.361195452 +0200
@@ -1,0 +2,5 @@
+Fri May 26 12:11:03 UTC 2017 - jeng...@inai.de
+
+- Ensure neutrality of description.
+
+---



Other differences:
--
++ python-pytaglib.spec ++
--- /var/tmp/diff_new_pack.r8CZFe/_old  2017-07-17 09:09:36.257069273 +0200
+++ /var/tmp/diff_new_pack.r8CZFe/_new  2017-07-17 09:09:36.261068709 +0200
@@ -35,8 +35,8 @@
 %python_subpackages
 
 %description
-pytaglib is an audio metadata (“tag”) library for Python).
-It relies on the popular TagLib C++ library.
+pytaglib is an audio metadata (“tag”) library for Python.
+It relies on the TagLib C++ library.
 
 %prep
 %setup -q -n "pytaglib-%{version}"