Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pymediainfo for 
openSUSE:Factory checked in at 2021-04-12 12:37:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pymediainfo (Old)
 and      /work/SRC/openSUSE:Factory/.python-pymediainfo.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pymediainfo"

Mon Apr 12 12:37:19 2021 rev:11 rq:884492 version:5.0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pymediainfo/python-pymediainfo.changes    
2020-11-24 22:14:30.887608716 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pymediainfo.new.2401/python-pymediainfo.changes
  2021-04-12 12:40:12.985568189 +0200
@@ -1,0 +2,13 @@
+Sun Apr 11 15:09:57 UTC 2021 - Luigi Baldoni <[email protected]>
+
+- Update to version 5.0.4
+  New features:
+  * Remove setuptools runtime requirement by replacing
+    pkg_resources with importlib.metadata
+  * __version__ is now an empty string if the package is not
+    installed
+  Miscellaneous:
+  * Use setuptools_scm programatically in Sphinx's configuration
+    instead of calling setup.py --version
+
+-------------------------------------------------------------------

Old:
----
  pymediainfo-5.0.3.tar.gz

New:
----
  pymediainfo-5.0.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pymediainfo.spec ++++++
--- /var/tmp/diff_new_pack.HKtJT0/_old  2021-04-12 12:40:13.485568770 +0200
+++ /var/tmp/diff_new_pack.HKtJT0/_new  2021-04-12 12:40:13.485568770 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pymediainfo
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %define skip_python2 1
 Name:           python-pymediainfo
-Version:        5.0.3
+Version:        5.0.4
 Release:        0
 Summary:        Python wrapper for the mediainfo library
 License:        MIT

++++++ pymediainfo-5.0.3.tar.gz -> pymediainfo-5.0.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pymediainfo-5.0.3/PKG-INFO 
new/pymediainfo-5.0.4/PKG-INFO
--- old/pymediainfo-5.0.3/PKG-INFO      2020-11-24 00:18:27.095504800 +0100
+++ new/pymediainfo-5.0.4/PKG-INFO      2021-04-11 15:07:27.006634700 +0200
@@ -1,6 +1,6 @@
-Metadata-Version: 1.2
+Metadata-Version: 2.1
 Name: pymediainfo
-Version: 5.0.3
+Version: 5.0.4
 Summary: A Python wrapper for the mediainfo library.
 Home-page: https://github.com/sbraz/pymediainfo
 Author: Louis Sautier
@@ -50,3 +50,4 @@
 Classifier: Operating System :: Microsoft :: Windows
 Classifier: License :: OSI Approved :: MIT License
 Requires-Python: >=3.6
+Description-Content-Type: text/x-rst; charset=UTF-8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pymediainfo-5.0.3/appveyor.yml 
new/pymediainfo-5.0.4/appveyor.yml
--- old/pymediainfo-5.0.3/appveyor.yml  2020-11-24 00:18:11.000000000 +0100
+++ new/pymediainfo-5.0.4/appveyor.yml  2021-04-11 15:07:11.000000000 +0200
@@ -2,6 +2,8 @@
   # Currently required to support Python 3.9
   - Visual Studio 2019
 environment:
+  # Work around https://github.com/tox-dev/tox/issues/1550
+  PYTHONIOENCODING: utf-8
   MEDIAINFO_VERSION: 20.09
   TWINE_PASSWORD:
     secure: /EO8CxTxhQVNsGNZZvU51jjHwPW524rgddNlwOAyLoA=
@@ -34,8 +36,7 @@
     - ps: "Copy-Item -Path MediaInfo.dll -Destination ${Env:PYTHON}"
     - "move MediaInfo.dll pymediainfo"
     - "move Developers\\License.html docs"
-    # TODO: remove the constraint when 
https://github.com/tox-dev/tox/issues/1550 is fixed
-    - "pip install --upgrade setuptools tox==3.8.3 twine wheel"
+    - "pip install --upgrade setuptools tox twine wheel"
 build_script:
   - "python setup.py bdist_wheel"
 test_script:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pymediainfo-5.0.3/docs/conf.py 
new/pymediainfo-5.0.4/docs/conf.py
--- old/pymediainfo-5.0.3/docs/conf.py  2020-11-24 00:18:11.000000000 +0100
+++ new/pymediainfo-5.0.4/docs/conf.py  2021-04-11 15:07:11.000000000 +0200
@@ -14,10 +14,11 @@
 # serve to show the default.
 
 import os
-import subprocess
-import sys
 
-import pkg_resources
+try:
+    from importlib import metadata
+except ImportError:
+    import importlib_metadata as metadata  # type: ignore
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
@@ -66,12 +67,11 @@
 # the repository hasn't been changed prior to installation).
 # https://github.com/pypa/setuptools_scm#usage-from-sphinx
 if os.environ.get("READTHEDOCS") == "True":
-    version = pkg_resources.get_distribution(project).version
+    version = metadata.version("pymediainfo")
 else:
-    # The project root is the parent directory
-    root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-    # Get the version from setup.py --version (inspired by jaraco.packaging)
-    version = subprocess.check_output([sys.executable, "setup.py", 
"--version"], cwd=root, universal_newlines=True).strip()
+    import setuptools_scm
+    # fallback_root must be specified for this to work with PyPI tarballs
+    version = setuptools_scm.get_version(root="..", fallback_root="..", 
relative_to=__file__)
 # The full version, including alpha/beta/rc tags.
 release = version
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pymediainfo-5.0.3/pymediainfo/__init__.py 
new/pymediainfo-5.0.4/pymediainfo/__init__.py
--- old/pymediainfo-5.0.3/pymediainfo/__init__.py       2020-11-24 
00:18:11.000000000 +0100
+++ new/pymediainfo-5.0.4/pymediainfo/__init__.py       2021-04-11 
15:07:11.000000000 +0200
@@ -12,12 +12,15 @@
 import xml.etree.ElementTree as ET
 from typing import Any, Dict, List, Optional, Tuple, Union
 
-from pkg_resources import DistributionNotFound, get_distribution
+try:
+    from importlib import metadata
+except ImportError:
+    import importlib_metadata as metadata  # type: ignore
 
 try:
-    __version__ = get_distribution("pymediainfo").version
-except DistributionNotFound:
-    pass
+    __version__ = metadata.version("pymediainfo")
+except metadata.PackageNotFoundError:
+    __version__ = ""
 
 
 class Track:
@@ -231,9 +234,7 @@
 
     @staticmethod
     def _normalize_filename(filename: Any) -> Any:
-        # TODO: wait for https://github.com/python/typeshed/pull/4582 pylint: 
disable=fixme
-        # to be included in a mypy release
-        if hasattr(os, "PathLike") and isinstance(filename, os.PathLike):  # 
type: ignore
+        if hasattr(os, "PathLike") and isinstance(filename, os.PathLike):
             return os.fspath(filename)
         if pathlib is not None and isinstance(filename, pathlib.PurePath):
             return str(filename)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pymediainfo-5.0.3/pymediainfo.egg-info/PKG-INFO 
new/pymediainfo-5.0.4/pymediainfo.egg-info/PKG-INFO
--- old/pymediainfo-5.0.3/pymediainfo.egg-info/PKG-INFO 2020-11-24 
00:18:27.000000000 +0100
+++ new/pymediainfo-5.0.4/pymediainfo.egg-info/PKG-INFO 2021-04-11 
15:07:26.000000000 +0200
@@ -1,6 +1,6 @@
-Metadata-Version: 1.2
+Metadata-Version: 2.1
 Name: pymediainfo
-Version: 5.0.3
+Version: 5.0.4
 Summary: A Python wrapper for the mediainfo library.
 Home-page: https://github.com/sbraz/pymediainfo
 Author: Louis Sautier
@@ -50,3 +50,4 @@
 Classifier: Operating System :: Microsoft :: Windows
 Classifier: License :: OSI Approved :: MIT License
 Requires-Python: >=3.6
+Description-Content-Type: text/x-rst; charset=UTF-8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pymediainfo-5.0.3/pymediainfo.egg-info/requires.txt 
new/pymediainfo-5.0.4/pymediainfo.egg-info/requires.txt
--- old/pymediainfo-5.0.3/pymediainfo.egg-info/requires.txt     2020-11-24 
00:18:27.000000000 +0100
+++ new/pymediainfo-5.0.4/pymediainfo.egg-info/requires.txt     2021-04-11 
15:07:26.000000000 +0200
@@ -1 +1,3 @@
-setuptools
+
+[:python_version < "3.8"]
+importlib_metadata
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pymediainfo-5.0.3/setup.cfg 
new/pymediainfo-5.0.4/setup.cfg
--- old/pymediainfo-5.0.3/setup.cfg     2020-11-24 00:18:27.095504800 +0100
+++ new/pymediainfo-5.0.4/setup.cfg     2021-04-11 15:07:27.006634700 +0200
@@ -7,7 +7,8 @@
 upload-dir = docs/_build/html
 
 [metadata]
-description-file = README.rst
+long_description = file: README.rst
+long_description_content_type = text/x-rst; charset=UTF-8
 
 [aliases]
 test = pytest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pymediainfo-5.0.3/setup.py 
new/pymediainfo-5.0.4/setup.py
--- old/pymediainfo-5.0.3/setup.py      2020-11-24 00:18:11.000000000 +0100
+++ new/pymediainfo-5.0.4/setup.py      2021-04-11 15:07:11.000000000 +0200
@@ -52,7 +52,7 @@
     use_scm_version=True,
     python_requires=">=3.6",
     setup_requires=["setuptools_scm"],
-    install_requires=["setuptools"],
+    install_requires=["importlib_metadata; python_version < '3.8'"],
     package_data={'pymediainfo': bin_files},
     cmdclass=cmdclass,
     classifiers=[
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pymediainfo-5.0.3/tox.ini 
new/pymediainfo-5.0.4/tox.ini
--- old/pymediainfo-5.0.3/tox.ini       2020-11-24 00:18:11.000000000 +0100
+++ new/pymediainfo-5.0.4/tox.ini       2021-04-11 15:07:11.000000000 +0200
@@ -20,7 +20,9 @@
   pytest -n auto {posargs}
 
 [testenv:docs]
-deps = sphinx
+deps =
+  setuptools_scm
+  sphinx
 commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs 
"{toxworkdir}/docs_out" --color -W {posargs}
 
 [testenv:black]

Reply via email to