Hello community,

here is the log from the commit of package python-physt for openSUSE:Factory 
checked in at 2020-02-10 21:56:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-physt (Old)
 and      /work/SRC/openSUSE:Factory/.python-physt.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-physt"

Mon Feb 10 21:56:37 2020 rev:3 rq:773193 version:0.4.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-physt/python-physt.changes        
2020-01-31 23:58:04.043675739 +0100
+++ /work/SRC/openSUSE:Factory/.python-physt.new.26092/python-physt.changes     
2020-02-10 21:56:41.626299455 +0100
@@ -1,0 +2,7 @@
+Mon Feb 10 15:18:02 UTC 2020 - Todd R <[email protected]>
+
+- Update to 0.4.9
+  * Changed: version.py controls the version number etc.
+  * Bug fixes
+
+-------------------------------------------------------------------

Old:
----
  physt-0.4.8.3.tar.gz

New:
----
  physt-0.4.9.tar.gz

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

Other differences:
------------------
++++++ python-physt.spec ++++++
--- /var/tmp/diff_new_pack.UCGBQu/_old  2020-02-10 21:56:42.382299873 +0100
+++ /var/tmp/diff_new_pack.UCGBQu/_new  2020-02-10 21:56:42.386299875 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         skip_python2 1
 Name:           python-physt
-Version:        0.4.8.3
+Version:        0.4.9
 Release:        0
 Summary:        Python histogram library
 License:        MIT

++++++ physt-0.4.8.3.tar.gz -> physt-0.4.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/physt-0.4.8.3/HISTORY.txt new/physt-0.4.9/HISTORY.txt
--- old/physt-0.4.8.3/HISTORY.txt       2020-01-21 11:12:54.000000000 +0100
+++ new/physt-0.4.9/HISTORY.txt 2020-02-06 12:32:35.000000000 +0100
@@ -1,3 +1,8 @@
+0.4.9 (6th February 2020)
+-------------------------
+- Changed: version.py controls the version number etc.
+- Bug fixes
+
 0.4.8 (22nd November 2019)
 --------------------------
 - Added: Binning "human" accepts kind="time"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/physt-0.4.8.3/physt/__init__.py 
new/physt-0.4.9/physt/__init__.py
--- old/physt-0.4.8.3/physt/__init__.py 2020-01-21 11:12:54.000000000 +0100
+++ new/physt-0.4.9/physt/__init__.py   2020-02-06 12:32:35.000000000 +0100
@@ -9,8 +9,7 @@
 See https://github.com/janpipek/physt
 """
 from . import binnings
-
-__version__ = '0.4.8.3'
+from .version import __version__, __author__, __author_email__, __url__
 
 
 def histogram(data, bins=None, *args, **kwargs):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/physt-0.4.8.3/physt/plotting/common.py 
new/physt-0.4.9/physt/plotting/common.py
--- old/physt-0.4.8.3/physt/plotting/common.py  2020-01-21 11:12:54.000000000 
+0100
+++ new/physt-0.4.9/physt/plotting/common.py    2020-02-06 12:32:35.000000000 
+0100
@@ -58,8 +58,11 @@
     return data
 
 
-def get_value_format(value_format: Union[Callable, str] = str) -> 
Callable[[float], str]:
+def get_value_format(value_format: Union[Callable, str, None]) -> 
Callable[[float], str]:
     """Create a formatting function from a generic value_format argument."""
+    if not value_format:
+        return str
+
     if isinstance(value_format, str):
         format_str = "{0:" + value_format + "}"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/physt-0.4.8.3/physt/plotting/matplotlib.py 
new/physt-0.4.9/physt/plotting/matplotlib.py
--- old/physt-0.4.8.3/physt/plotting/matplotlib.py      2020-01-21 
11:12:54.000000000 +0100
+++ new/physt-0.4.9/physt/plotting/matplotlib.py        2020-02-06 
12:32:35.000000000 +0100
@@ -804,7 +804,7 @@
     ax.get_figure().tight_layout()
 
 
-def _add_values(ax: Axes, h1: Histogram1D, data, *, value_format=lambda x: x, 
**kwargs):
+def _add_values(ax: Axes, h1: Histogram1D, data, *, value_format=str, 
**kwargs):
     """Show values next to each bin in a 1D plot.
 
     Parameters
@@ -813,6 +813,7 @@
     h1 : physt.histogram1d.Histogram1D
     data : array_like
         The values to be displayed
+    value_format : foratting string or callable to create the value 
representation
     kwargs : dict
         Parameters to be passed to matplotlib to override standard text params.
     """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/physt-0.4.8.3/physt/version.py 
new/physt-0.4.9/physt/version.py
--- old/physt-0.4.8.3/physt/version.py  1970-01-01 01:00:00.000000000 +0100
+++ new/physt-0.4.9/physt/version.py    2020-02-06 12:32:35.000000000 +0100
@@ -0,0 +1,6 @@
+"""Package information."""
+
+__version__ = "0.4.9"
+__url__ = "https://github.com/janpipek/physt";
+__author__ = "Jan Pipek"
+__author_email__ = "[email protected]"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/physt-0.4.8.3/setup.py new/physt-0.4.9/setup.py
--- old/physt-0.4.8.3/setup.py  2020-01-21 11:12:54.000000000 +0100
+++ new/physt-0.4.9/setup.py    2020-02-06 12:32:35.000000000 +0100
@@ -16,32 +16,57 @@
 """
 
 import itertools
+import os
 from setuptools import setup, find_packages
 
-VERSION = "0.4.8.3"
+THIS_DIR = os.path.dirname(__file__)
+
+
+def read_info():
+    """Single source of version number and other info.
+
+    Inspiration:
+    - https://packaging.python.org/guides/single-sourcing-package-version/
+    - https://github.com/psf/requests/blob/master/setup.py
+    """
+    scope = {}
+    version_file = os.path.join(THIS_DIR, "physt", "version.py")
+    with open(version_file, "r") as f:
+        exec(f.read(), scope)  # pylint: disable=exec-used
+    return scope
+
+
+INFO = read_info()
 
 options = dict(
-    name='physt',
-    version=VERSION,
+    name="physt",
+    version=INFO["__version__"],
     packages=find_packages(),
     # package_data={'': ['LICENSE', 'MANIFEST.in', 'README.md', 
'HISTORY.txt']},
-    license='MIT',
-    description='P(i/y)thon h(i/y)stograms.',
+    license="MIT",
+    description="P(i/y)thon h(i/y)stograms.",
     long_description=__doc__.strip(),
-    author='Jan Pipek',
-    author_email='[email protected]',
-    url='https://github.com/janpipek/physt',
-    package_data={"physt" : ["examples/*.csv"]},
-    install_requires = ['numpy', 'packaging'],
+    author=INFO["__author__"],
+    author_email=INFO["__author_email__"],
+    url=INFO["__url__"],
+    package_data={"physt": ["examples/*.csv"]},
+    install_requires=["numpy", "packaging"],
     python_requires="~=3.5",
-    extras_require = {
-        'all' : ['dask', 'pandas', 'matplotlib', 'folium', 'vega3', 'xarray',
-                 'protobuf', 'uproot', 'asciiplotlib', 'xtermcolor']
-    },
-    entry_points = {
-        'console_scripts' : [
+    extras_require={
+        "all": [
+            "dask",
+            "pandas",
+            "matplotlib",
+            "folium",
+            "vega3",
+            "xarray",
+            "protobuf",
+            "uproot",
+            "asciiplotlib",
+            "xtermcolor",
         ]
     },
+    entry_points={"console_scripts": []},
     classifiers=[
         "Development Status :: 3 - Alpha",
         "License :: OSI Approved :: MIT License",
@@ -50,10 +75,10 @@
         "Intended Audience :: Information Technology",
         "Intended Audience :: Science/Research",
         "Topic :: Scientific/Engineering",
-        "Topic :: Software Development :: Libraries :: Python Modules"
-    ]
+        "Topic :: Software Development :: Libraries :: Python Modules",
+    ],
 )
 
-extras = options['extras_require']
-extras['full'] = list(set(itertools.chain.from_iterable(extras.values())))
+extras = options["extras_require"]
+extras["full"] = list(set(itertools.chain.from_iterable(extras.values())))
 setup(**options)


Reply via email to