commit python-physt for openSUSE:Factory

2020-02-10 Thread root
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 
+
+- 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.0 +0100
+++ new/physt-0.4.9/HISTORY.txt 2020-02-06 12:32:35.0 +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.0 +0100
+++ new/physt-0.4.9/physt/__init__.py   2020-02-06 12:32:35.0 +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.0 
+0100
+++ new/physt-0.4.9/physt/plotting/common.py2020-02-06 12:32:35.0 
+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.0 +0100
+++ new/physt-0.4.9/physt/plotting/matplotlib.py2020-02-06 
12:32:35.0 +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.0 +0100
+++ new/physt-0.4.9/physt/version.py2020-02-06 12:32:35.0 +0100
@@ -0,0 +1,6 @@
+"""Package information."""
+
+__version__ = "0.4.9"
+__url__ = "https://github.com/janpipek/physt;
+__author__ = "Jan Pipek"
+__author_email__ = 

commit python-physt for openSUSE:Factory

2020-01-31 Thread root
Hello community,

here is the log from the commit of package python-physt for openSUSE:Factory 
checked in at 2020-01-31 23:56:55

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


Package is "python-physt"

Fri Jan 31 23:56:55 2020 rev:2 rq:768851 version:0.4.8.3

Changes:

--- /work/SRC/openSUSE:Factory/python-physt/python-physt.changes
2019-12-10 22:41:51.149821820 +0100
+++ /work/SRC/openSUSE:Factory/.python-physt.new.26092/python-physt.changes 
2020-01-31 23:58:04.043675739 +0100
@@ -1,0 +2,8 @@
+Thu Jan 30 17:24:44 UTC 2020 - Todd R 
+
+- Update to 0.4.8.3
+  * Added: Binning "human" accepts kind="time"
+  *- Added: find_human_width and related methods in bin_utils
+  *- Fix: No labels and color cycling in scatter plots for collections
+
+---

Old:

  physt-0.4.8.2.tar.gz

New:

  physt-0.4.8.3.tar.gz



Other differences:
--
++ python-physt.spec ++
--- /var/tmp/diff_new_pack.tYfUdn/_old  2020-01-31 23:58:05.571676531 +0100
+++ /var/tmp/diff_new_pack.tYfUdn/_new  2020-01-31 23:58:05.571676531 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-physt
 #
-# 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
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:   python-physt
-Version:0.4.8.2
+Version:0.4.8.3
 Release:0
 Summary:Python histogram library
 License:MIT

++ physt-0.4.8.2.tar.gz -> physt-0.4.8.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/physt-0.4.8.2/MANIFEST.in 
new/physt-0.4.8.3/MANIFEST.in
--- old/physt-0.4.8.2/MANIFEST.in   2019-11-22 15:20:21.0 +0100
+++ new/physt-0.4.8.3/MANIFEST.in   2020-01-21 11:12:54.0 +0100
@@ -1,5 +1,8 @@
+include HISTORY.txt
 include LICENSE
 include MANIFEST.in
 include README.md
-include HISTORY.txt
-include physt/example/*.csv
\ No newline at end of file
+include requirements.txt
+
+recursive-include physt *.*
+grafts tests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/physt-0.4.8.2/physt/__init__.py 
new/physt-0.4.8.3/physt/__init__.py
--- old/physt-0.4.8.2/physt/__init__.py 2019-11-22 15:20:21.0 +0100
+++ new/physt-0.4.8.3/physt/__init__.py 2020-01-21 11:12:54.0 +0100
@@ -10,7 +10,7 @@
 """
 from . import binnings
 
-__version__ = '0.4.8.2'
+__version__ = '0.4.8.3'
 
 
 def histogram(data, bins=None, *args, **kwargs):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/physt-0.4.8.2/physt/plotting/common.py 
new/physt-0.4.8.3/physt/plotting/common.py
--- old/physt-0.4.8.2/physt/plotting/common.py  2019-11-22 15:20:21.0 
+0100
+++ new/physt-0.4.8.3/physt/plotting/common.py  2020-01-21 11:12:54.0 
+0100
@@ -59,16 +59,19 @@
 
 
 def get_value_format(value_format: Union[Callable, str] = str) -> 
Callable[[float], str]:
-"""Create a formatting function from a generic value_format argument.
-"""
-if value_format is None:
-value_format = ""
+"""Create a formatting function from a generic value_format argument."""
 if isinstance(value_format, str):
 format_str = "{0:" + value_format + "}"
 
-def value_format_(x): return format_str.format(x)
+def value_format_(x):
+return format_str.format(x)
 
-return value_format_
+return value_format_
+
+if callable(value_format):
+return value_format
+
+raise TypeError("`value_format` must be a string or a callable.")
 
 
 def pop_kwargs_with_prefix(prefix: str, kwargs: dict) -> dict:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/physt-0.4.8.2/physt/plotting/matplotlib.py 
new/physt-0.4.8.3/physt/plotting/matplotlib.py
--- old/physt-0.4.8.2/physt/plotting/matplotlib.py  2019-11-22 
15:20:21.0 +0100
+++ new/physt-0.4.8.3/physt/plotting/matplotlib.py  2020-01-21 
11:12:54.0 +0100
@@ -163,7 +163,7 @@
 _, cmap_data = _get_cmap_data(data, kwargs)
 kwargs["color"] = cmap(cmap_data)
 elif "color" in kwargs or "c" in kwargs:
-kwargs["color"] = kwargs.pop("color", kwargs["c"])
+kwargs["color"] = kwargs.pop("color", kwargs.get("c", None))
 
 _apply_xy_lims(ax, h1, data, kwargs)
 _add_ticks(ax, h1, kwargs)